0 Members and 1 Guest are viewing this topic.
IMHO not in the acad.lsp !!!
Also, do a test on the drawing name. If its Drawing?? then run your command, if its already got a name, dont run it. I have some example code if you need it
Quote from: CmdrDuh on August 01, 2006, 09:55:54 AMAlso, do a test on the drawing name. If its Drawing?? then run your command, if its already got a name, dont run it. I have some example code if you need itcool, can you post it here??
(if (not (wcmatch (getvar 'DWGNAME) "Drawing*.dwg")) (progn ))
Why not DWGTITLED ?
(if (= (getvar 'dwgtitled) 1) (progn ))
(setq cprofile (strcase (getvar "cprofile")))......(if (vl-string-search "Section of profile name" cprofile)(do this....))(if (vl-string-search "Section of another one" cprofile)(do that....))