PDA

View Full Version : How can I make a list to load a block



MikeP
22nd Oct 2009, 04:48 pm
Here is what im trying to do


(defun c:ssl (/ insert)
(command "-insert" "Q:\Lisp\SS Legs.dwg")
(princ)
)

lpseifert
22nd Oct 2009, 05:03 pm
in lisp you can't use a \ as a folder separator. You need to use either / or \\.
also the command insert isn't a variable so you needn't declare it.

MikeP
22nd Oct 2009, 05:06 pm
in lisp you can't use a \. You need to use either / or \\.
also the command insert isn't a variable so you needn't declare it.

ok thanks. but that didnt really help me. it works just fine if I tell just give the name of the block with out a location. but this lisp will not work on another machine.

mdbdesign
22nd Oct 2009, 05:20 pm
What about button macro
-insert;NAME OF BLOCK;\;;0;\\\\
less typing than lisp...

MikeP
22nd Oct 2009, 06:22 pm
What about button macro
-insert;NAME OF BLOCK;\;;0;\\\\
less typing than lisp...


i dont use buttons. I use keyboard faster

alanjt
22nd Oct 2009, 06:24 pm
ok thanks. but that didnt really help me. it works just fine if I tell just give the name of the block with out a location. but this lisp will not work on another machine.

If you only specify the block name, it must exist in a Support Path or in the current drawing's directory.

MikeP
22nd Oct 2009, 06:33 pm
it works. but its a multi leader, im using 09 and hes is using 07 so multileaders are not compatible in 07 from 09

alanjt
22nd Oct 2009, 06:39 pm
it works. but its a multi leader, im using 09 and hes is using 07 so multileaders are not compatible in 07 from 09

So, what's the question? How to get a multileader into an 07 machine? Try dxf'ing it out or Export To Autocad, should convert it to proxy objects.

MikeP
22nd Oct 2009, 06:44 pm
So, what's the question? How to get a multileader into an 07 machine? Try dxf'ing it out or Export To Autocad, should convert it to proxy objects.


you answered my quesion. his machine needed to have a support path added. once added, I realized that the multileader wont work for his version. its works for me, so that all im worried about

alanjt
22nd Oct 2009, 06:54 pm
you answered my quesion. his machine needed to have a support path added. once added, I realized that the multileader wont work for his version. its works for me, so that all im worried about

Oh ok, good deal. That's crazy that you are working with someone and they are using a different version than you.

MikeP
22nd Oct 2009, 07:00 pm
Oh ok, good deal. That's crazy that you are working with someone and they are using a different version than you.

yeah its a long story about why, but we are actually using a total of 3 different versions here

alanjt
22nd Oct 2009, 07:26 pm
yeah its a long story about why, but we are actually using a total of 3 different versions here
:shock::shock: Crazyness.

MikeP
22nd Oct 2009, 07:31 pm
:shock::shock: Crazyness.


you have no idea. we use 2 different machining programs and each one is only computable with a different verson