Community
how to get the objectid of a line in a blockreference by mouse select?
anybody done this? please give me some code. thanks.
Solved! Go to Solution.
Solved by matt.worland. Go to Solution.
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