Jump to content

Process DWG


Kemion

Recommended Posts

Greetings,

 

I'm collecting lsp files to automate certain tasks to prepare a drawing for use as an XREF background - I've found a few that should serve what I need to do - now I'd like to script everything together in this order:

 

1. 'Save' command on the current drawing

2. Run a group of lisps in sequence

3. 'SaveAs' to a relative folder with a modified version of the original file name

4. Close the drawing

5. Re-open the original

 

Also, what are some recommended reference books for Autolisp?

Link to comment
Share on other sites

Just write down every step when you do it manually thats a script, I would use a lisp to write the script getting original dwg name + new name, lat line is (command "script" "do1-4")

 

save

(load "1")(load "2")(load "3")

saveas \\temp\\freds\newstuff\\mynew1

close

Link to comment
Share on other sites

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

×
×
  • Create New...