AutoCAD Architecture Customization
Welcome to Autodesk’s AutoCAD Architecture Customization Forums. Share your knowledge, ask questions, and explore popular AutoCAD Architecture Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I can prog check if a Sch Style is in dwg: A better way?

0 REPLIES 0
Reply
Message 1 of 1
mdhutchinson
274 Views, 0 Replies

I can prog check if a Sch Style is in dwg: A better way?

Okay... I have kludged way of checking if a Schedule Style is in the drawing...

 

I snag the list of schedule styles from the text screen and check the list.

The following is the lisp code to do this.

Surely their is a better way...

 

(setq logfilemode (getvar "logfilemode"))
(setq filename (getvar "logfilename"))
(setvar "logfilemode" 0)
(vl-file-delete (getvar "logfilename"))
(setvar "logfilemode" 1)
(command "-scheduleadd" "?" (command))
(setvar "logfilemode" 0)
(setq textscreen (readfile filename))
(setvar "logfilemode" logfilemode)
(setq exists (not (null (member ScheduleName textscreen))))

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