- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a problem with this lisp file to insert a block.
This is the lisp file:
(defun c:kastbasis ()
(command "view" "top")
(command "dimstyle" "Restore" "Model 40")
(command "insert" "D:\Utilities\ACAD\ACad Sjablonen\kastbasis.dwg" (getpoint "\nSelect insertion point: ")
"1" "0" )
(princ)
)
I get an error message, this is it. All the backslashes are gone...
How can I resolve this?
Current dimension style: Layout 2 Annotative: No
Enter a dimension style option
[ANnotative/Save/Restore/STatus/Variables/Apply/?] <Restore>: Restore
Enter a dimension style name, [?] or <select dimension>: Model 40
Current dimension style: Model 40 Annotative: No
Command: insert Enter block name or [?]: D:UUtilitiesACADACad
Sjablonenkastbasis.dwg
"UUtilitiesACADACad Sjablonenkastbasis.dwg": Can't find file in search path:
C:\Users\Rikkes\Documents\ (current directory)
D:\Utilities\ACAD\Huis\Living\
C:\Program Files (x86)\MSPT\
C:\Users\Rikkes\appdata\roaming\autodesk\autocad 2011\r18.1\enu\support\
C:\programdata\caelink\
C:\program files\autodesk\autocad 2011\support\
C:\program files\autodesk\autocad 2011\fonts\
C:\program files\autodesk\autocad 2011\help\
C:\program files\autodesk\autocad 2011\support\color\
C:\Program Files\Autodesk\AutoCAD 2011\drv\
C:\Program Files\Autodesk\AutoCAD 2011\
*Invalid*
; error: Function cancelled
Solved! Go to Solution.