AutoCAD Map 3D Developer
Welcome to Autodesk’s AutoCAD Map 3D Developer Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D Developer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Selected features in the editor window

1 REPLY 1
Reply
Message 1 of 2
PedroCaleiro
393 Views, 1 Reply

Selected features in the editor window

Hi again, 🙂

now I'm trying to detect which features the user has selected in the Map 3D window. I'm using the following code, but always get a selected features count of 0:

MgStringCollection msc = new MgStringCollection();
msc.Add("n_equip");
AcMapSelection ams = new AcMapSelection(map);
int iFeaCnt = ams.GetSelectedFeaturesCount(maplayer, sSchema + ":CableClass");
if(iFeaCnt > 0)
{
MgFeatureReader mfr = ams.GetSelectedFeatures(maplayer, sSchema + ":CableClass", msc);
[...]

What should I be doing instead?
1 REPLY 1
Message 2 of 2
nebanuit
in reply to: PedroCaleiro

Hi, I have the same question/problem. Could anyone help please?

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

Post to forums  

Autodesk Design & Make Report

”Boost