cabaq Posted October 6, 2011 Share Posted October 6, 2011 Hello I have several DWG's I'd like to make some changes to. I've tried Autoscript (the freeware) but I can't even make it draw a circle without errors. What I would like to do is the following: select all move selection from specified point to specified point if possible: set -dwgunits to meter purgeall save as DWG 2010 close Anyone who can point me in the right direction on this one? What's the easiest way? I'm using AutoCAD Civil3D 2011. Thanks! Quote Link to comment Share on other sites More sharing options...
ReMark Posted October 6, 2011 Share Posted October 6, 2011 I think you are on the right track. Did you take a look at AutoDesk's ScriptPro? Quote Link to comment Share on other sites More sharing options...
SLW210 Posted October 6, 2011 Share Posted October 6, 2011 Have you tried using the Action Recorder? Quote Link to comment Share on other sites More sharing options...
designerstuart Posted October 6, 2011 Share Posted October 6, 2011 i think this could be done with a very simple script, if you are happy to do the saveas bit yourself. Quote Link to comment Share on other sites More sharing options...
designerstuart Posted October 6, 2011 Share Posted October 6, 2011 (edited) or am i being too simple? select all move 0,0,0 [insert new point here] -units [insert preferences here] -purge all y saveas Edited October 6, 2011 by designerstuart forgot to purge Quote Link to comment Share on other sites More sharing options...
BIGAL Posted October 7, 2011 Share Posted October 7, 2011 Like above in a script re units you can set the individual parts via a setvar without having to do all. example (SETVAR "LUNITS" 2) Also add "Open dwgname" to start and after saveas "dwgname close" just repeat as many times as required changing dwgname, start script in any dwg. you can also do lisp in your script so could ask for new pt each time open dwgname select all move 0,0,0 (setq pt (getpoint)) !pt (SETVAR "LUNITS" 2) -purge all y saveas dwgname2 close 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.