Creating selection sets

Creating selection sets

Anonymous
Not applicable
279 Views
4 Replies
Message 1 of 5

Creating selection sets

Anonymous
Not applicable
Is there a way to create a selection of only one object? I have a routine
that I want the user to be able to only pick one object and then continue
the remaining code. This way I won't have to cycle through the selection
set.

Thanks
0 Likes
280 Views
4 Replies
Replies (4)
Message 2 of 5

Ed__Jobe
Mentor
Mentor
Use the GetEntity method. You don't even need to use a selection set. It returns the entity.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 3 of 5

Anonymous
Not applicable
Thanks,  If I only new it was that
easy.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Use
the GetEntity method. You don't even need to use a selection set. It returns
the entity.
0 Likes
Message 4 of 5

Anonymous
Not applicable
Another question, is there a way to use the
GetEntity method and filter on the object type or xdata?


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Use
the GetEntity method. You don't even need to use a selection set. It returns
the entity.
0 Likes
Message 5 of 5

Ed__Jobe
Mentor
Mentor
No, but you can easily check the object's type and prompt again if it's not what you want.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes