Dieter @ DWorks Posted August 7, 2007 Share Posted August 7, 2007 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? Quote Link to comment
Vectorworks, Inc Employee klinzey Posted August 7, 2007 Vectorworks, Inc Employee Share Posted August 7, 2007 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 Quote Link to comment
Dieter @ DWorks Posted August 7, 2007 Author Share Posted August 7, 2007 k, thx Quote Link to comment
VectorGeek Posted August 8, 2007 Share Posted August 8, 2007 Thanks Mr. Linzey - very helpful. I was always using DoMenuTextByName, with Copy and Paste (with an active layer change in between). This is much simpler. V-Geek. 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.