AutoCAD Architecture Customization

AutoCAD Architecture Customization

Valued Mentor
Posts: 2,322
Registered: ‎11-18-2003
Message 1 of 1 (104 Views)

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

104 Views, 0 Replies
08-24-2011 09:24 AM

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))))

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.