Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have this line in my script :
(command "_.BURST" (ssadd ent) "")
I'm getting an error "Unknown command"
Why???
Solved! Go to Solution.
I have this line in my script :
(command "_.BURST" (ssadd ent) "")
I'm getting an error "Unknown command"
Why???
Solved! Go to Solution.
(sssetfirst nil (ssadd ent)) ;makes your selection both gripped and selected.
(c:burst)
To me, that's the way to send the command.
BURST is an Express Tools command written in AutoLISP. To call it you would need to use
(c:burst)
If you are feeding items from a selection set into it as part of your script you will need to dig down into the AutoLISP file itself.
@Sea-Haven wrote:.... (command "BURST" ent "")
That has the same problem as in Message 1, because BURST is not a native AutoCAD command, so it cannot be used in an AutoLisp (command) function. The suggestion by @tramber in Message 2 is the approach to take. The way to call an AutoLisp-defined command is the (C:YourCommandName) approach. And since that cannot take User selection or inputs or variables internally, as native AutoCAD commands in a (command) function can, you need to have your selection already selected/highlighted when you call it, which is what the (sssetfirst) function does. [And it can be a selection of more than one object when you need that.]
Thank you all. I used tramber approch and its working. Thanks tramber/