CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
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.
Plex.Earth connects AutoCAD and Google Earth
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

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.
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.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic Closedusing a selection

 Post Reply Post Reply
Author
vetlel View Drop Down
Newbie
Newbie


Joined: 13.Aug.2007
Status: Offline
Points: 3
Direct Link To This Post Topic: using a selection
    Posted: 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.
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: 2121
Direct Link To This Post 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
Back to Top
vetlel View Drop Down
Newbie
Newbie


Joined: 13.Aug.2007
Status: Offline
Points: 3
Direct Link To This Post 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...
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: 2121
Direct Link To This Post 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
Back to Top
vetlel View Drop Down
Newbie
Newbie


Joined: 13.Aug.2007
Status: Offline
Points: 3
Direct Link To This Post 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.
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,066 seconds.