Ruby coder needed. Custom plugin/script
-
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
-
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 ? -
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.
-
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... -
Do you want it to work on all instances/groups [even nested ones] or on preselected ones ?
-
Best option is to for this to work on selected entities, with all nested components/groups inside this selection.
-
OK - give me a day or two [my personal life has unexpected complications] and I'll come back to you...
-
That is most appreciated.
-
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...
-
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.
Advertisement