Over 1.105.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
Try the new precise Engineering calculator.
New AutoCAD 2026 commands and sys.variables and env.variables,.
Discussion forum
?CAD discussions, advices, exchange of experience
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.
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 | |
vetlel
Newbie
Joined: 13.Aug.2007 Status: Offline Points: 3 |
Topic: using a selectionPosted: 13.Aug.2007 at 18:11 |
|
Cheers!
I came around that, but for some reason it didn't work. But at least i know i am on the right track now... I will keep you posted how things turn out. |
|
![]() |
|
Vladimir Michl
Moderator Group
Arkance Systems CZ Joined: 26.Jul.2007 Location: Czech Republic Using: Autodesk software Status: Offline Points: 2143 |
Posted: 13.Aug.2007 at 18:04 |
|
Aha - not LISP but VBA. You can try: SurfacesSS.SelectOnScreen |
|
|
Vladimir Michl (moderator)
ARKANCE - https://arkance.world - Autodesk Platinum Partner |
|
![]() |
|
vetlel
Newbie
Joined: 13.Aug.2007 Status: Offline Points: 3 |
Posted: 13.Aug.2007 at 17:45 |
|
Mmmm, lisp? lost me there.
It is some code written for autocad 2002 (MDT6) Here is a small part of the code i have: <code> intCodes(0) = 0 varCodeValues(0) = "assurface" ' Layer selection intCodes(1) = 8 varCodeValues(1) = ComboBoxlayer.Text surfacesSS.Select acSelectionSetAll, , , intCodes, varCodeValues </code> What it does now, is that it selects all the entities that correspond with certain criterias in the layer you tell it to look. I would like it to do the same but now not looking in a certain layer, but selecting within a selection you made in autocad (when it turns blue) Hope i explained myself a little better now... |
|
![]() |
|
Vladimir Michl
Moderator Group
Arkance Systems CZ Joined: 26.Jul.2007 Location: Czech Republic Using: Autodesk software Status: Offline Points: 2143 |
Posted: 13.Aug.2007 at 17:07 |
|
Was it a LISP macro?
The object selection function - (ssget) - has a lot of options allowing to select interactively, by layer, or by other properties, plus combinations of these.
E.g.:
(ssget '((0 . "CIRCLE"))) -- selects all circles in user selected objects
(ssget "_X" '((0 . "CIRCLE"))) -- selects all circles in the whole drawing
(ssget "_X" '((8 . "MYLAYER"))) -- selects all objects in the MYLAYER layer
(ssget "_W") -- starts a plain window-selection
etc.
|
|
|
Vladimir Michl (moderator)
ARKANCE - https://arkance.world - Autodesk Platinum Partner |
|
![]() |
|
vetlel
Newbie
Joined: 13.Aug.2007 Status: Offline Points: 3 |
Posted: 13.Aug.2007 at 16:51 |
|
Hello all,
I have written a macro many years ago that uses surfaces in a user selectable layer, and processes these surfaces through loads of complicated code. Seeing it is years ago, and i got a little rusty in the mean time: Is it possible for a macro to use the selection you made on the screen in autocad instead of a layer? I hope my question is clear... Any pointers would be greatly appreciated Patrick. |
|
![]() |
|
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,208 seconds.
![CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]](/common/arkance_186.png)


using a selection

Topic Options


