Over 1.096.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips.
Try the new precise Engineering calculator and the updated Barcode generator.
New AutoCAD 2026 commands and variables.
Discussion forum
?CAD discussions, advices, exchange of experience

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
|
Post Reply ![]() |
Author | |
CAD-Addict ![]() Newbie ![]() Joined: 21.Jan.2010 Location: Spain Status: Offline Points: 1 |
![]() Posted: 21.Jan.2010 at 16:01 |
Hi,
I found the tip on how to add the select similar option that ACA has to plain autocad here the tip tells u to create a button or a shortcut menu with the following command as macro (cadr(sssetfirst nil (ssget"_X"(list(cons 0(cdr(assoc 0(entget(car(entsel"\nSelect object and all similar: ")))))))))) the string of commands works fine when I paste it in the command line, but when I create a button or a shortcut menu entry for this, the string is entered only this way (cadr(sssetfirst nil (ssget"_X"(list(cons 0(cdr(assoc 0(entget(car(entsel" missing the last part of the string and thus making the command not work any clues? I am using AutoCAD 2010. Thanks
|
|
www.CAD-Addict.com
|
|
![]() |
|
Vladimir Michl ![]() Moderator Group ![]() Arkance Systems CZ Joined: 26.Jul.2007 Location: Czech Republic Using: Autodesk software Status: Offline Points: 2120 |
![]() |
You can define a function in a LSP file loaded through a MNL file or ACADDOC.LSP. Then simply call that function:
(defun XXX ()
(cadr(ssetfirst .....)
)
(XXX)
Please note that the Subscription Advantage Pack for AutoCAD 2010 (plus version 2011...) already contains the
SELECTSIMILAR command.
|
|
Vladimir Michl (moderator)
ARKANCE - https://arkance.world - Autodesk Platinum Partner |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0,055 seconds.