How to Create Selectionset From Objectids?

How to Create Selectionset From Objectids?

viper_007
Advocate Advocate
1,504 Views
3 Replies
Message 1 of 4

How to Create Selectionset From Objectids?

viper_007
Advocate
Advocate

Hi, everyone.

I'v tried to make objects selected (not just highlighted) from ObjectIds and the selected ones will be manipulated by other commands. But I can't figure out how to do.

Could you help me, please?

聚傲气于一身,显傲骨之精华
0 Likes
Accepted solutions (1)
1,505 Views
3 Replies
Replies (3)
Message 2 of 4

_gile
Consultant
Consultant
Accepted solution

Hi,

 

You can use the Editor.SetImpliedSelection() method passing it a selection set or an objectId array..

 

From the object browser because not documented:

 

public void SetImpliedSelection(Autodesk.AutoCAD.DatabaseServices.ObjectId[] selectedObjects)
public void SetImpliedSelection(Autodesk.AutoCAD.EditorInput.SelectionSet selectionSet)


Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 3 of 4

viper_007
Advocate
Advocate

Thank you very much.

聚傲气于一身,显傲骨之精华
0 Likes
Message 4 of 4

Anonymous
Not applicable

Dear friend:

when you use the method "SetImpliedSelection()",did  the problem occur that the CAD runs like death when the programme comes at the method? My CAD vision is 2012,what about yours?

 

0 Likes