Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 3
g.kitchen
293 Views, 2 Replies

"-insert"

Ok I've got something wrong here...

Can -insert be used with a filepath instead of a block name/ for an undefined block?

If i type "-insert"
Then paste the file path "Y:\Block Library 2007\Miscellaneous Symbols & Text\Detailing Symbols\Revision-Mark.dwg"
The command line asks for the XY scale and rotation and inserts the block

BUT

(command "-insert" "Y:\Block Library 2007\Miscellaneous Symbols & Text\Detailing Symbols\Revision-Mark.dwg" "0,0" "1" "1" "0")

does not work. The command line says it is searching for:

"Block Library 2007Miscellaneous Symbols & TextDetailing SymbolsRevision-Mark.dwg"

and that the search path cannot be found, so I added it, but it didnt help...

How can I insert and undefined block without specifying the search path, just the file path?
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: g.kitchen

Since you are inputting the path with a LISP funtion, you need to either use
forward slashes or double up on the backslashes like so:

(command "-insert" "Y:/Block Library 2007/Miscellaneous Symbols &
Text/Detailing Symbols/Revision-Mark.dwg" "0,0" "1" "1" "0")

OR

(command "-insert" "Y:\\Block Library 2007\\Miscellaneous Symbols &
Text\\Detailing Symbols\\Revision-Mark.dwg" "0,0" "1" "1" "0")

Paul

wrote in message news:6238569@discussion.autodesk.com...
Ok I've got something wrong here...

Can -insert be used with a filepath instead of a block name/ for an
undefined block?

If i type "-insert"
Then paste the file path "Y:\Block Library 2007\Miscellaneous Symbols &
Text\Detailing Symbols\Revision-Mark.dwg"
The command line asks for the XY scale and rotation and inserts the block

BUT

(command "-insert" "Y:\Block Library 2007\Miscellaneous Symbols &
Text\Detailing Symbols\Revision-Mark.dwg" "0,0" "1" "1" "0")

does not work. The command line says it is searching for:

"Block Library 2007Miscellaneous Symbols & TextDetailing
SymbolsRevision-Mark.dwg"

and that the search path cannot be found, so I added it, but it didnt
help...

How can I insert and undefined block without specifying the search path,
just the file path?
Message 3 of 3
g.kitchen
in reply to: g.kitchen

Oh so simple! It was causing such a headache, thanks!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost