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

how to get the objectid of a line in a blockreference by mouse select?

1 REPLY 1
SOLVED
Reply
Message 1 of 2
swaywood
544 Views, 1 Reply

how to get the objectid of a line in a blockreference by mouse select?

how to get the objectid of a line in a blockreference by mouse select?

 

anybody done this? please give me some code. thanks.

1 REPLY 1
Message 2 of 2
matt.worland
in reply to: swaywood

Minimilist code:

Dim myDoc As Document = Application.DocumentManager.MdiActiveDocument
Dim myEd As Editor = myDoc.Editor
Dim myPEO As New PromptNestedEntityOptions("Select line in block:")
Dim myPER As PromptNestedEntityResult = myEd.GetNestedEntity(myPEO )
myPER .ObjectId

 This should return the object ID of the entity selected.

 

matt

If my reply was helpful, please give a "Thumbs Up" or "Accept as Solution"

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