sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    New to DC: topic for my simple questions to the pros

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    74 Posts 3 Posters 56.4k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      pibuz
      last edited by

      Hi again! I want to have to possibility to have the Definition Name of a DC to be displayed in the Options Dialog, so that if I rename a DC I have its correct name on the dialog. Is that possible?

      WEB (ita) - https://filipposcarso.wixsite.com/ordinentropico

      1 Reply Last reply Reply Quote 0
      • P Offline
        pcmoor
        last edited by

        The components instance name is already tied to both the attribute and option dialog, this can be updated on the fly. This works if you do not use the name attribute and only after loading the component.
        Otherwise the component definition name can be accessed via a ruby script and placed into an attribute value.

        1 Reply Last reply Reply Quote 0
        • P Offline
          pibuz
          last edited by

          Thanks! And what would this ruby script be?

          WEB (ita) - https://filipposcarso.wixsite.com/ordinentropico

          1 Reply Last reply Reply Quote 0
          • P Offline
            pcmoor
            last edited by

            see the link to topic

            https://sketchucation.com/forums/viewtopic.php?f=289&t=71346

            1 Reply Last reply Reply Quote 0
            • P Offline
              pibuz
              last edited by

              thanks Moor!
              Sorry, but maybe I misexplained what I need, I'm attaching an example.

              In this case I'd like that if I rename the component to whatever else, I get the new name in the Option dialog title. At the moment, this wont' happen: it keeps titling "elemento da prelevare_shell".


              190913_template prelievo da magazzino.skp

              WEB (ita) - https://filipposcarso.wixsite.com/ordinentropico

              1 Reply Last reply Reply Quote 0
              • P Offline
                pcmoor
                last edited by

                you can use the component instance name to give each instance an unique name which is reflected in all the dialog, which is the natural inbuilt way

                Capture.jpg

                otherwise set
                Name = _name
                in the DC then
                use a button from the toolbar extension to fire the code snippet to alter the _name attribute, which reads the current definition name, updates the original name to update the option dialog

                Capture2.JPG

                1 Reply Last reply Reply Quote 0
                • P Offline
                  pibuz
                  last edited by

                  Sorry Moor, I don't understand. In the file I sent you, if I change the Instance name of "elemento da prelevare_shell" NOTHNG CHANGES in any window...

                  WEB (ita) - https://filipposcarso.wixsite.com/ordinentropico

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    pcmoor
                    last edited by

                    saveas the DC to a folder then bring it into another file, for some reason it does not initially work within its created file, after that, should work, regardless of the number of changes, the references are still maintained

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      pibuz
                      last edited by

                      OH BIG THANKS! I WAS MISSING THE FACT THAT IT DOESN'T WOTK ON THE ORIGINAL FILE!

                      WEB (ita) - https://filipposcarso.wixsite.com/ordinentropico

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        pibuz
                        last edited by

                        Hi again! is there a way I can LOCK the rotation of a DC along specific axis'?
                        I have a panel which I don't want users to be able to use as ceiling, so I only want it to be rotateable along its blue axis

                        WEB (ita) - https://filipposcarso.wixsite.com/ordinentropico

                        1 Reply Last reply Reply Quote 0
                        • P Offline
                          pibuz
                          last edited by

                          It's me again!

                          I'm struggling since a couple days about one thing I think should be doable but I can't get in any way
                          to work in my DC.

                          Basically I have a wall, made of two side pillars and a series of panels in the middle. My wall can be stretched to match some precise measures, which I set. The measures are exact multiples of the panels but may also admit an half-panel on the end, if needed.

                          When I stretch the wall, the start pillar must stay still (works now), the end pillar must reach the final point (works now) and in the middle I want the panel to copy a number of times. It works when I fix the length of the panels to a value, but I'm not able to tell SketchUp that it must stretch the last panel to half its dimension if needed.

                          Do you guys know a way to do that? Thanks in advance!!!


                          sistema Arty_v3.skp

                          WEB (ita) - https://filipposcarso.wixsite.com/ordinentropico

                          1 Reply Last reply Reply Quote 0
                          • P Offline
                            pcmoor
                            last edited by

                            Hi

                            To work out the number divide the opening by the whole door size and convert to integer
                            To get the remainder take this number times the size from opening

                            For door lenx, use condition if remainder then the last copy (= copies) is to be remainder

                            There were some issues with the geometry and scaling, first applied lenX to two faces, then had to make a group of the edges so that it obeyed the formula rather than its natural scale

                            made outline to size to opening, added some copy function to the support


                            sistema Arty_v3.skp

                            1 Reply Last reply Reply Quote 0
                            • P Offline
                              pibuz
                              last edited by

                              Thanks a lot pc!!! I'll have a look at it immediately!

                              EDIT
                              Everything is clear, I don't understand the syntax of these two formulas though:

                              =parete Arty!d_mod_num-1 +if(parete Arty!remain,1,0)
                              Here I don't understand the space between "-1" and "+if" and I don't know the meaning of the "parete Arty!remain" without any checks to perform.

                              =if(and(parete Arty!remain,copy=copies),parete Arty!remain,98)
                              Here I don't understand the meaning of "parete Arty!remain" without any checks: what will it solve into?

                              MANY MANY THANKS!

                              WEB (ita) - https://filipposcarso.wixsite.com/ordinentropico

                              1 Reply Last reply Reply Quote 0
                              • P Offline
                                pcmoor
                                last edited by

                                The condition is either true or false, 0 or any negative number is read as false whereas any positive number is true.
                                A bit of a short cut in logic.

                                The space is not required for mathematical functions, just there for my own readability

                                1 Reply Last reply Reply Quote 0
                                • P Offline
                                  pibuz
                                  last edited by

                                  I have a new question for the community: I have an attribute which ALWAYS include alternatively the words "OPACO" "LUCIDO" or "SEMILUCIDO" (name of the material applied). The words are always at the end of the text string, but the number of digits before may change.

                                  I want another attribute to report ONLY the occuring word from case to case.

                                  EG: my material attribute returns "grey RAL7040 OPACO", I want another attribute to report only "OPACO".

                                  Is there a way to do this?

                                  WEB (ita) - https://filipposcarso.wixsite.com/ordinentropico

                                  1 Reply Last reply Reply Quote 0
                                  • K Offline
                                    kostiaarh
                                    last edited by

                                    @pibuz said:

                                    I have a new question for the community: I have an attribute which ALWAYS include alternatively the words "OPACO" "LUCIDO" or "SEMILUCIDO" (name of the material applied). The words are always at the end of the text string, but the number of digits before may change.

                                    I want another attribute to report ONLY the occuring word from case to case.

                                    EG: my material attribute returns "grey RAL7040 OPACO", I want another attribute to report only "OPACO".

                                    Is there a way to do this?

                                    try so: =RIGHT(Material, 5)

                                    1 Reply Last reply Reply Quote 0
                                    • P Offline
                                      pibuz
                                      last edited by

                                      Thanks Kostiaarh!

                                      Sadly this formula returns always the last 5 characters, while the number of letters I have to report varies from 5, 6 and 10 digits.

                                      WEB (ita) - https://filipposcarso.wixsite.com/ordinentropico

                                      1 Reply Last reply Reply Quote 0
                                      • P Offline
                                        pcmoor
                                        last edited by

                                        You can use find with the item to be found included in the text to avoid the error , and test if the result is within the length of the original text

                                        Note that semi is placed before in the conditional statements otherwise will not be selected


                                        using find without error.skp

                                        1 Reply Last reply Reply Quote 0
                                        • P Offline
                                          pibuz
                                          last edited by

                                          wonderful! Thanks!!

                                          WEB (ita) - https://filipposcarso.wixsite.com/ordinentropico

                                          1 Reply Last reply Reply Quote 0
                                          • P Offline
                                            pibuz
                                            last edited by

                                            hi guys! I have a new question: I have a DC which features a choice between type1 and type2. I'd like to have an hyperlink to a pdf showing the technical specs of each choice, so I uploaded both pdfs to an S3 amazon server to have get a valid url.

                                            Is there a way I can insert the <a href> tag inside a formula, so that the hyperlink changes based on the type1/type2 choice?


                                            condiz. monoblocco Gazebo.skp.zip

                                            WEB (ita) - https://filipposcarso.wixsite.com/ordinentropico

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 2 / 4
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement