This code works with Lee Macs Steal.lsp script.
(Steal "C:\\DWG_WITH_BLOCKS.dwg"
'(
(
"Blocks"
("MECHCP16")
)
)
)
However I want to pass in the ("MECHCP16") using a variable:
(setq BlockName "MECHCP12")
(Steal "C:\\DWG_WITH_BLOCKS.dwg"
'(
(
"Blocks"
(BlockName)
)
)
)
This gives me: Error: bad argument type: stringp BLOCKNAME
I read into Steal.lsp and it required a List for input, so I did this:
(setq BlockName (list "MECHCP12"))
(Steal "C:\\DWG_WITH_BLOCKS.dwg"
'(
(
"Blocks"
(BlockName)
)
)
)
It gives me this error: Error: bad argument type: stringp BLOCKNAME
Any idea how I can get this working? Any suggestions are welcome.
Thank you.