CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 4992
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

 

HelpCAD discussion

 
CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.

How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedSelect similar plain autocad not working

 Post Reply Post Reply
Author
CAD-Addict View Drop Down
Newbie
Newbie


Joined: 21.Jan.2010
Location: Spain
Status: Offline
Points: 1
Direct Link To This Post Topic: Select similar plain autocad not working
    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
Back to Top
Vladimir Michl View Drop Down
Moderator Group
Moderator Group

Arkance Systems CZ

Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 2018
Direct Link To This Post Posted: 21.Jan.2010 at 22:14
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 Systems - arkance-systems.cz - Autodesk reseller
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,357 seconds.