Jump to content
Andy Haengaertner

How can I replace the content of an auto hybrid using "set parent"?

Recommended Posts

Hi there,


Does anybody know how I can replace the content of an existing auto hybrid using a script? I tried DOMc "SetParent" Node but unfortunately it seems that this do not work for auto hybrids.


Any tipps how I can do this?


Thanks in advance



Share this post

Link to post


You have to browse the container-nesting of the object to find out, how they are nested. Sometings the Content node works, sometings you need commands like vs.GetCustomObjectProfileGroup(objectHand) etc.

As you can see, the autohybrid from an extrude is pretty good nested. Try first to replace the object (delete and set new object to it's parent). Maybe you have to reset object after that manipulation. Or maybe you will crash if you delete the content and do not attach a new contend (maybe start with add an additional object to the exitsting).


Not tested any of this, but that's the way I would try to crack the riddle. 




Share this post

Link to post

Got it

Your Autohybrid content has it's own origin you have to compensate this. My first script works but the autohybrid is already wrecked. by use parent node wrong. So be careful what object you put in what other object. Worst case you put them somewhere you can't delete them anymore.




Share this post

Link to post

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.

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.


7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114


© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

  • Create New...