Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Run propulate command as part of save

3 REPLIES 3
Reply
Message 1 of 4
JDeano
641 Views, 3 Replies

Run propulate command as part of save

Hey all. Is there a way to run the propulate command when saving a file. I want to keep all information; filename, titleblock and drawing properties all up to date. Can you automate such a thing? Thanks!

3 REPLIES 3
Message 2 of 4
paullimapa
in reply to: JDeano

You can create a Lisp funcion to Undefine the Save command:

(command"_.Undefine""_.Save")

 

and then define a custom Save command that includes the following code:

 

(command"_.Propulate""_Update""_Current")

(command"_.Save""")

 

 

Area Object Link | Attribute Modifier | Dwg Setup | Feet-Inch Calculator | Layer Apps | List on Steroids | VP Zoom Scales
Exchange App Store


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 3 of 4
JDeano
in reply to: paullimapa

Aplogies my friend but could you be more specific with the process, I am very new to this and am not sure what you mean. Thank you though!

Message 4 of 4
paullimapa
in reply to: JDeano

There are many ways to skin a cat...and this is only one.

Use a text editor program like Notepad and create a lisp file naming it Save.lsp

Enter the following lines of code in the body of this file:

 

(command"_.Undefine""_.Save") ; Undefine the Save command

; define a custom Save command that executes Propulate command and then save

(defun c:save ()

 (command"_.Propulate""_Update""_Current") ; run Propulate command

 (command"_.Save""""_Y")(princ) ; run standard save command

)

 

Then in AutoCAD type Appload,

Under Startup Suite, click Contents

Add the Save.lsp file into the window.

Click Close 2x to dismiss all dialog windows

 

Now open the drawing you want to run the new Save command and give it a try.

When you type the Save command, it should  now run the new Save command you defined which is preceded with the Propulate command.

 

 

Area Object Link | Attribute Modifier | Dwg Setup | Feet-Inch Calculator | Layer Apps | List on Steroids | VP Zoom Scales
Exchange App Store


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost