.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How select an object via it's ObjectId or handle

2 REPLIES 2
Reply
Message 1 of 3
Irvin
2506 Views, 2 Replies

How select an object via it's ObjectId or handle

Hello there,

 

Question,

 

I have a list of blocks in a datagrid. When i double click a certain record it gets the objectid or handle.

Now i know how too highlight the object. But i don't want to highlight the entity but select it so i can change it's property's in the property pallet.

 

In the first screen shot you see the code i have. wicht highligts the record but the propperty pallet display no object selected.

forum-1.jpg

 

But i want it to work like the next picture.

 

forum-2.jpg

 

So the question is. When i know an entity's objectid or handle how do i select that entity programticly.

 

Kind regards,

 

Irvin

2 REPLIES 2
Message 2 of 3
BabylonLion
in reply to: Irvin

Autodesk.AutoCAD.Internal.Utils.SelectObjects(ObjectId[] Ids);

 

Message 3 of 3
Irvin
in reply to: BabylonLion

Hello there,

 

Thanks for your reply. This helped me in a good direction.

I have one problem with it.

 

When i doubleclick my record in my grid on my pallet nothing happens until the pallet lost his focus. And i need to be able to  walktrough the grid. Any sugestions?

 

Kind regards,

 

Irvin

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost