.NET

Reply
Valued Contributor
swaywood
Posts: 90
Registered: ‎08-22-2013
Message 1 of 2 (160 Views)
Accepted Solution

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

160 Views, 1 Replies
03-10-2014 04:44 AM

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

 

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

Active Contributor
matt.worland
Posts: 34
Registered: ‎11-13-2006
Message 2 of 2 (144 Views)

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

03-10-2014 09:14 AM 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

matt worland

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community