Vectorworks, Inc Employee SBarrettWalker Posted March 1, 2017 Vectorworks, Inc Employee Share Posted March 1, 2017 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 Quote Link to comment
Pat Stanford Posted March 1, 2017 Share Posted March 1, 2017 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.) 2 Quote Link to comment
Vectorworks, Inc Employee SBarrettWalker Posted March 1, 2017 Author Vectorworks, Inc Employee Share Posted March 1, 2017 Thanks Pat! That is exactly what I needed! Quote Link to comment
AlanW Posted March 1, 2017 Share Posted March 1, 2017 Pat I just watch in awe at your knowledge of vectorscripting and your so willingness to respond all the time. thanks 1 Quote Link to comment
DomC Posted March 1, 2017 Share Posted March 1, 2017 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. Quote Link to comment
Miguel Barrera Posted March 4, 2017 Share Posted March 4, 2017 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. Quote Link to comment
Recommended Posts
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.