(COMMAND "SELECTSIMILAR") Unknown command "SELECTSIMILAR".

(COMMAND "SELECTSIMILAR") Unknown command "SELECTSIMILAR".

baleti3266
Advocate Advocate
84 Views
5 Replies
Message 1 of 6

(COMMAND "SELECTSIMILAR") Unknown command "SELECTSIMILAR".

baleti3266
Advocate
Advocate

Does anyone know why trying to invoke "SELECTSIMILAR" command from autolisp doesn't work? I thought all commands are exposed to autolisp.
Running (COMMAND "SELECTSIMILAR") returns an error: Unknown command "SELECTSIMILAR".

 
 
 
 
0 Likes
Accepted solutions (1)
85 Views
5 Replies
Replies (5)
Message 2 of 6

baleti3266
Advocate
Advocate

strange, looks like running `(COMMAND ".SELECTSIMILAR")` (with a dot at the beginning) works. Does anyone know why dot is necessary? I assume it has something to do with selectsimilar being built in some different way than other commands, but would be curious to know exactly why

0 Likes
Message 3 of 6

pendean
Community Legend
Community Legend

@baleti3266 Works fine here, are you by chance using a non-English language pack?

pendean_0-1757425384074.png

 

IMHO there is something to be said to always use the "dot" to ensure you are activating the core command in a LISP.

0 Likes
Message 4 of 6

cadffm
Consultant
Consultant
Accepted solution

Hi,

 

what product you are talking? Share a screenshot of ABOUT dialog pls

 

It looks like something/someone undefined this command, but if so - also typing by hand it won't work.

Does Command: SELECTSIMILIAR<enter> starts the selectsimilar command, or the selectsimilarmode?

If not:

Command: REDEFINE<enter>SELECTSIMILAR<enter>

 

Try selectsimilar again, in commandline, with or without lisp.

If it works now, something/someone undefined this command.

Sebastian

0 Likes
Message 5 of 6

baleti3266
Advocate
Advocate

interesting, thanks all
@cadffm autocad architecture 2026

baleti3266_0-1757427565920.png


Does Command: SELECTSIMILIAR<enter> starts the selectsimilar command

Yes, I think so:

baleti3266_1-1757427604024.png

 

> Command: REDEFINE<enter>SELECTSIMILAR<enter>

> Try selectsimilar again

 

You are right, now (COMMAND "SELECTSIMILAR") works. Strange, now sure how it happened (searching for "selectsimilar" or "similar" in .my lsp scripts didn't show anything)

0 Likes
Message 6 of 6

cadffm
Consultant
Consultant

That's strange.

 

Usually! If a command is "undefined", you can't start that command in commandline.

 

But if it works after redefine..

Perhaps a special thing I didn't know about.

Perhaps a special for ACA

 

Sebastian

0 Likes