Jump to content
Developer Wiki and Function Reference Links ×

Add Objects to Symbol Definition Relative to Symbol Instance?


Recommended Posts

Does anyone have a script to add items to a symbol definition? But the trick is that these are 3D elements that are correctly placed relative to a symbol instance.

 

Basically the situation is a complicated imported drawing. I have grabbed a bunch of parts and converted them to a symbol and then reused that symbol in multiple places throughout the drawing.

 

But now I have realized that there are additional pieces that should have been part of the symbol definition. This is for about 20 different symbol definitions and 100s of instances. And there might be 10 to 100s or parts that need to be added to the symbol def.

 

If I try and Cut and Paste in Place, the part does not go to the correct location because the symbol definition uses local coordinates.

 

So what I am looking for is a script that will correct for the difference between the global coordinates and the symbol def local coordinates.

 

Select and object or objects, run the script. Script asks to pick the symbol instance the parts are aligned too. Set Parent on the parts to the symbol definition and then moved them in X/Y/Z to the correct local coordinate.  Not sure if I also need to work on rotation for this particular case, but handling rotation for the long term would be good also.

 

Ideas before I roll my sleeves up and try and make this work?

 

@Sam Jones @michaelk @MullinRJ

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...