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

Combining 2 LISP routines?

0 REPLIES 0
Reply
Message 1 of 1
Drafter_Joe
213 Views, 0 Replies

Combining 2 LISP routines?

Hi!

 

I have a LISP routine, GOCHNGPLT, that I wonder if it can be combined with another, GETPLOTDEVICES, so that GOCHNGPLT only runs if it has to?  I don't understand either AutoLISP or VisualLISP well enough to easily figure this out.  

 

GETPLOTDEVICES returns a list of each layout and the plotter for each.  GOCHNGPLT changes a plotter to a "default" plotter.  

 

I need the plotter used in GOCHNGPLT to be checked against the plotter in each layout and only change the layouts that use a different plotter, if I want it to at the time, or quietly exit before the dialog box opens if the plotters in all the layouts are the same as the one in GOCHNGPLT.  I can see that a loop is required with conditional statements, but I don't know how to use VLISP to do that.  

 

I have attached the LISP files so that the post will not be any longer than necessary.

 

Any advice or ideas are most welcome!

 

Thank you for your time and attention!

 

Joe   

0 REPLIES 0

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

Post to forums  

Autodesk Design & Make Report

”Boost