Author Topic: How to call acedSSSetFirst make the entity highlight in .NET?  (Read 2257 times)

0 Members and 1 Guest are viewing this topic.

gswang

  • Newt
  • Posts: 117
How to call acedSSSetFirst make the entity highlight in .NET?
« on: December 08, 2014, 01:58:58 AM »
How to call acedSSSetFirst make the entity highlight in .NET? :-(

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: How to call acedSSSetFirst make the entity highlight in .NET?
« Reply #1 on: December 08, 2014, 02:48:48 AM »

Have a look at post 4 here :

http://forums.autodesk.com/t5/net/zoom-to-selected-entities/td-p/2554656

public static bool SelectObjects(ObjectId[] ids);
Declaring Type: Autodesk.AutoCAD.Internal.Utils
Assembly: acmgd, Version=20.0.0.0
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

gile

  • Gator
  • Posts: 2507
  • Marseille, France
Re: How to call acedSSSetFirst make the entity highlight in .NET?
« Reply #2 on: December 08, 2014, 04:21:45 AM »
Hi,

You can also have a look at the Editor.SetImpliedSelection() method which accepts as well an ObjectId[] or a SelectionSet as argument.
Speaking English as a French Frog

gswang

  • Newt
  • Posts: 117
Re: How to call acedSSSetFirst make the entity highlight in .NET?
« Reply #3 on: December 08, 2014, 08:13:51 AM »
Thank you Kerry and gile, i have already succeeded.   :-D :-)