AutoCAD Map 3D Developer

Reply
Valued Contributor
Posts: 61
Registered: ‎04-14-2010
Message 1 of 3 (221 Views)

Linking ObjectId with MgSelectionBase

221 Views, 2 Replies
05-30-2011 01:14 PM

Is there a way that I can find layer (MgLayerBase), className and other FDO information of feature through ObjectId?

How can I link MgSelectionBase feature with ObjectId

 

Thanks

 

 

ADN Support Specialist
Posts: 535
Registered: ‎06-09-2009
Message 2 of 3 (192 Views)

Re: Linking ObjectId with MgSelectionBase

06-14-2011 11:55 PM in reply to: kob4lt

Hi,

 

Did you check the following functions ?

 

MgLayerBase::GetName()

MgLayerBase::GetFeatureClassName()

 

I am not very clear about your statement on "through ObjectId? ". What ObjectId you are referring here ?

Is this MgLayerBase::GetObjectId() ?

 

Thanks,

 



Partha Sarkar
Developer Technical Services
Autodesk Developer Network

Valued Mentor
Posts: 269
Registered: ‎10-06-2008
Message 3 of 3 (185 Views)

Re: Linking ObjectId with MgSelectionBase

06-15-2011 06:09 PM in reply to: kob4lt

Take a look at AcMapFeatureEntityService 

 

There's a method (GetFeatures?) to get an MgSelectionBase object from a collection of AutoCAD object ids

 

- Jackie

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
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

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

Ask the Community