Jump to content
Sign in to follow this  
Guest

duplicate

Recommended Posts

I ran into this before. I believe I used LObject for the Last Object in the document. Your duplicated object should be the last object until another is created.

HTH,

Raymond

Share this post


Link to post

Sorry, on second thought, I believe it was LActLayer for the last object on the active layer. When dupliated, your new object will be on top, and therefore the last object on the active layer.

HTH,

Raymond

Share this post


Link to post

I think I heard something at the VS-List about LNewObj giving you the handle to the last object created by your script, BUT that objects created with 'DoMenuBy...' (such as 'Paste' on Raymond's terrific duplicate script) would 'escape the internal VS sequence'.

You could try creating a dummy object (usually a locus, and we call him Waldo) getting it's handle, doing your your stuff, locating the objects in relation to Waldo and then deleting him.

Share this post


Link to post
Guest

How do you find the handle to the duplicate you just made? I figured that LNewObj would give me it but all I get is Nil. Lactlayer just gives me the handle to the line I duplicated.

Any Ideas?

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.

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.

Sign in to follow this  

 

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