Adding Acadentity to a selectionset

Adding Acadentity to a selectionset

Anonymous
Not applicable
409 Views
2 Replies
Message 1 of 3

Adding Acadentity to a selectionset

Anonymous
Not applicable

Hi,

I am creating an entity in VBA and want to add the same to a selection set. How do i do it.

Dim newline as Acadentity
Set newLine = ThisDrawing.ModelSpace.AddLine(startpoint, EndPoint)
' now i want to add this to a selection set
Additems is used to add a selection set to another so how can i add this item to a selection set.

Could someone help me in this regard.

 

 

0 Likes
410 Views
2 Replies
Replies (2)
Message 2 of 3

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> and want to add the same to a selection set

Look to >>>that sample<<< directly within the help about SelectionSet==>AddItems.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 3 of 3

Anonymous
Not applicable

OOh ok, got it,

Instead of defining as a single entity, i define it as array of entities so that i can add it back to the selection set.

 

0 Likes