Mostly Nice Posted May 19, 2011 Posted May 19, 2011 Right... Perhaps someone can help me with this... I'm trying to create a series of shortcuts via Lisp Routines to insert a deseried block upon command. I dont need it to scale upon insert, just with 'Pick Point on Screen' With unform scale at 1,1,1. (defun c:LVL( / ) (command "INSERT" "Z:\CAD Systems\CAD Block List\HPS_Level.dwg") ) (princ) Does .LSP not allow for back slashes? "CAD SystemsCAD Block ListHPS_Level.dwg": Can't find file in search Quote
dbroada Posted May 19, 2011 Posted May 19, 2011 try with forward slashes or double backslashes instead. Quote
Lee Mac Posted May 19, 2011 Posted May 19, 2011 A single backslash is used to pass a escape character, such as the newline character: "\n" or tab: "\t", hence, if you need to pass a backslash, you need to mark it as a literal using another backslash: "\\". So the path would be: (defun c:LVL ( / ) (command "_.-INSERT" "Z:\\CAD Systems\\CAD Block List\\HPS_Level.dwg") ) (princ) Quote
Mostly Nice Posted May 19, 2011 Author Posted May 19, 2011 Nice! How can i use the below values in this lisp routine? Unit-scaling inserted database...Units: Millimeters Conversion: 1.0000 Specify insertion point or [basepoint/Scale/X/Y/Z/Rotate]: nil Specify insertion point or [basepoint/Scale/X/Y/Z/Rotate]: Enter X scale factor, specify opposite corner, or [Corner/XYZ] : Enter Y scale factor : Specify rotation angle : Quote
Lee Mac Posted May 19, 2011 Posted May 19, 2011 Include a 'pause': (defun c:LVL ( / ) (command "_.-INSERT" "Z:\\CAD Systems\\CAD Block List\\HPS_Level.dwg" pause "" "" "") (princ) ) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.