Zoe the 3rd Posted January 9, 2012 Share Posted January 9, 2012 Hello! I'm new to scripting, I dabbled a bit in AutoLisp years ago, but since my new AutoCAD LT doesn't support lisps I haven't retained that knowledge. Anyway... I am trying to write a script that will use the MOVE command and displace an object by a set distance. (I have to do this thousands of times over.) However I do not know how to select the object from with in the script. Anyone know how to do that? Quote Link to comment Share on other sites More sharing options...
ReMark Posted January 9, 2012 Share Posted January 9, 2012 Is the object a block? Quote Link to comment Share on other sites More sharing options...
Zoe the 3rd Posted January 9, 2012 Author Share Posted January 9, 2012 Nope. They are usually rectangles or polylines. I'm also now looking into macros... I know zip-diddly about macros, but they seam like they might work. The macro gets to the user input easy enough, but then I don't know how to get it back to running my selections. So far I have: ^C^Cmove \d0,-20 but it stops after the \ and won't go back to my selection of "d". Quote Link to comment Share on other sites More sharing options...
BIGAL Posted January 12, 2012 Share Posted January 12, 2012 Try select first then ^c^cmove 0,0 0,-20 Quote Link to comment Share on other sites More sharing options...
Zoe the 3rd Posted January 22, 2012 Author Share Posted January 22, 2012 That worked!! Staving off carpal tunnel for yet another year. Thank you BIGAL! Quote Link to comment Share on other sites More sharing options...
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.