Jump to content
sbarrett

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.

 

Thanks,

Sarah

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.  

thanks

  • 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:

 

 CreateDuplicateObject(
                objectToDuplicate   :;
                containerHandle     :) : ;

Parameters

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

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.

×