Message 1 of 8
LISP help
Not applicable
08-07-2019
05:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am creating a standards LISP routine to load when opening a drawing. I added a (defun c:___) to it to make screecasting easier. The problem is it is pausing at the end and requiring me to left click out of it after it is run. Looking for a fix for it to complete smoothly. Is there some code I need to put at the end of it to close out the code?
Here is the code so far:
(defun c:stdtest () (vl-load-com) (vlax-for pc (vla-get-plotconfigurations (vla-get-ActiveDocument (vlax-get-acad-object))) (vla-delete pc) ) (command "._-psetupin" "R:/cad/sams plot files/plotting.dwg" "BRIDGEHALF") (command "._-psetupin" "R:/cad/sams plot files/plotting.dwg" "BRIDGEFULL") (command "._-psetupin" "R:/cad/sams plot files/plotting.dwg" "BRIDGECOLOR") (command "._-psetupin" "R:/cad/sams plot files/plotting.dwg" "BRIDGEPDF") (c:SetNamePageSetupAllLayouts "BRIDGEHALF" T) (command "dimlayer" "PEN5") ;;;Sets dimension layer to PEN5 (setvar "dimassoc" 0) ;;;Turns off dimension associativity (command "._insert" "GENTITLE=R:\\design\\Michael\\Blocks\\Title Blocks\\Borders\\GENTITLE.dwg") ;;;Redefine GENTITLE block (command) (command "._insert" "MISCTITLE=R:\\design\\Michael\\Blocks\\Title Blocks\\Borders\\MISCTITLE.dwg") ;;;Redefine MISCTITLE block (command) (command "._insert" "SITETITLE=R:\\design\\Michael\\Blocks\\Title Blocks\\Borders\\SITETITLE.dwg") ;;;Redefine SITETITLE block (command) (command "._insert" "Standard_Styles=R:\\design\\Michael\\Blocks\\Standards\\Standard Styles.dwg" "0,0" "" "" "") ;;;Insert Standard Styles (Dimension styles, text styles, layers and linetypes) (setvar "pdmode" 35) (command "._-dwgunits" "2" "2" "4" "no" "no") (prompt "\nStandards Loaded") (princ) )
Thanks!
Michael
Screencast will be displayed here after you click Post.
5fea7ab8-9987-4c2d-b64a-68bbb5ed4e7c