Jump to content
Developer Wiki and Function Reference Links ×

layer-layer


Recommended Posts

Maybe I'm overlooking something, but I can't find a way to copy an object from one layer to another.

We can set the class of an object, but not his layer.

We can set the active layer, but cannot copy-paste an object.

Am I missing something or can't you bring objects from one layer to another?

Can this be done in C++ with the VW SDK? If yes, how do you run the SDK and how do you use it?

Link to comment
  • Vectorworks, Inc Employee

In 12.5 and later you can use the FUNCTION CreateDuplicateObject(objectToDuplicate, containerHandle :HANDLE) :HANDLE; to copy an object to a new layer.

In earlier versions use:

FUNCTION HDuplicate(objectHandle :HANDLE; x :REAL; y :REAL) :HANDLE;

Then you can change the layer of an object by VS using the SetParent call.

Kevin

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