Jump to content

Edit an existing symbol

Recommended Posts

Is there a way to insert an object into an existing symbol? I can't find any relevant calls in the "Object-Symbols" section of the developer page. Any help would be greatly appreciated.




Share this post

Link to post

Get handles to the object you want to make part of the symbol and to the Symbol Definition. Then use Boolean:=SetParent(ObjHand, ContainerHand);


(Sorry for the Vectorscript version. I am not up to speed enough to do Python of the top of my head.)

  • Like 2

Share this post

Link to post

Pat I just watch in awe at your knowledge of vectorscripting and your so willingness to respond all the time.  


  • Like 1

Share this post

Link to post


Always a relevation, an input from the master :-)) Me rookie scripter got so many inputs from Pat and other adepts, thanks at this at this point. 


Share this post

Link to post

You could also use the following command to copy an object into a container object:


                objectToDuplicate   :;
                containerHandle     :) : ;


objectToDuplicate   HANDLE   The object to be duplicated
containerHandle   HANDLE  

The container to the newly duplicated object

Duplicates the specified object and inserts the new object into the container. If container is nil, the new object will be inserted in the active container.
I use this to copy objects in a symbol into a pio where I can change the look of the objects without changing the symbol definition.

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...