dbroada Posted November 6, 2008 Share Posted November 6, 2008 for example how can i import a layer from a different dwg. with commands onlytbh, I'm not sure you can but you can use the -LAYER command o construct it from scratch. To import a file there are several ways. If you put your blocks in a common folder and you add that folder to your search path then -INSERT BlockName will work. Alternatively you can specify where to find the file, -INSERT C:\MyBlocks\BlockName Quote Link to comment Share on other sites More sharing options...
serdas Posted November 6, 2008 Author Share Posted November 6, 2008 yes correct thank you i am giving a try hopefully i will be able to make it thanks Quote Link to comment Share on other sites More sharing options...
serdas Posted November 6, 2008 Author Share Posted November 6, 2008 It only needs patience and the better your understanding of basic AutoCAD commands the better. There are a couple of "gotchas", particularly when the question is asked differently between "live" and a script but in general the script should look identical to how you wouldtype on the command line. If you have a script, print it out and type it in the commond line, line by line. If you need a script step through on the command line and write each line on paper (or notepad) noting everything AutoCAD expects as an answer. I have attached a simple script we create to batch plot some drawings. This has an odity in that I draw a line and imediately erase it. Why? Because usually AutoCAD thinks a print is a change to the drawing and asks if you want to discard changes but sometimes it doesn't. Putting in a line forces the question to be asked. Since I'm discarding all changes I needn't erase the line but never mind. The resume is just something I now put at the end of all my scripts. Notepad sometimes puts a blank line at the end which AutoCAD interprets as "repeat last command". Resume is a sort of "do nothing" command so it doesn't matter if it gets repeated. WHICH COMMAND IS RESUME THANK YOU Quote Link to comment Share on other sites More sharing options...
dbroada Posted November 6, 2008 Share Posted November 6, 2008 resume actually restarts a script that has been stopped early. I just use it to prevent spare lines at the end of a script from repeating the last command. Quote Link to comment Share on other sites More sharing options...
serdas Posted November 6, 2008 Author Share Posted November 6, 2008 Waht Is It Look Like Thanks 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.