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

    Ruby coder needed. Custom plugin/script

    Scheduled Pinned Locked Moved Developers' Forum
    10 Posts 2 Posters 7 Views 2 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
      ptasznick
      last edited by

      Dear All,
      I'm looking for a person who can write a custom script for cash.

      I'm having problems to find certain people doing those things online.

      I need a script that takes all groups and components within a model or a selection (with all nested items), reads the material name given to that group/component and writes this name into a parameter that can be accessed with LayOut Auto-text feature. In worst case this can be written to the Instance parameter of each entity.

      Please - write me a quotation for such service.

      Thank You

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        https://sketchucation.com/pluginstore?pln=TIG_ComponentDescriptor already manipulates the component's description with details about the component.
        It won't seem too hard to adjust it to do instances/groups and add the material's name ?
        Then the Layout auto-text can use the description to add into some text ?
        What other attribute were you thinking of to take this extra data ?

        TIG

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

          I will check out Component Descriptor - and yes - this seems to be close to what I need.

          Only parameter that is visible to normal user and allows for labeling in Layout is the Instance parameter. It is also common for groups and components (at least the name "Instance" is the same). Every other parameter like advanced ones or user created are component only parameters and I need to label groups also. Don't want to model everything with components only.

          Basically - if I have antyhing that I want to label by name - I will write the name in component Definition parameter. Groups don't have names, and that's fine.

          I just need a tool to automatically put the Material Name in the instance parameter of each component and group. Original contents of Instance parameter can be deleted / substituted with Material Name.

          Hope this clarifies.

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by TIG

            If you really want the component-instance or group to have a name after the container's material then its quite simple - a few lines of code...
            I'll mock something up for you to try...

            TIG

            1 Reply Last reply Reply Quote 0
            • TIGT Offline
              TIG Moderator
              last edited by

              Do you want it to work on all instances/groups [even nested ones] or on preselected ones ?

              TIG

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

                Best option is to for this to work on selected entities, with all nested components/groups inside this selection.

                1 Reply Last reply Reply Quote 0
                • TIGT Offline
                  TIG Moderator
                  last edited by

                  OK - give me a day or two [my personal life has unexpected complications] and I'll come back to you...

                  TIG

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

                    That is most appreciated.

                    1 Reply Last reply Reply Quote 0
                    • TIGT Offline
                      TIG Moderator
                      last edited by

                      Here's v1.0.0 of ContainerNameMaterial
                      Install the RBZ using the Extension Manager
                      Code is Set up by ContainerNameMaterial.rb.
                      Sets up menu item under Plugins|Extensions
                      When it's run it processes all selected containers [groups & instances] and their nested containers.
                      If the container has a material it's renamed to match.
                      Otherwise it's left unchanged.
                      One step undo-able...

                      It's not encrypted, so read the code RB file to see how it works...


                      ContainerNameMaterial.rbz

                      TIG

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

                        Wow. Works flawlessly. Tested on different scenarios with different hierarchy and nested objects. Also - as expected - everything is 'taggable' in Layout.

                        Thank You very much.


                        works flawlessly

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

                        Advertisement