Message 1 of 2
How to get geometry information from SelectSet object

Not applicable
10-14-2015
06:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I want to get geometry information from selected entity(part or assembly).
I am using following code to get SelectSet.
SelectSet selectedEntity = m_application.ActiveDocument.SelectSet;
for (int entityCount = 1; entityCount <= selectedEntity.Count; entityCount++)
{
ComponentOccurrence compOccurrence = (ComponentOccurrence)m_application.ActiveDocument.SelectSet[entityCount];
}
From the compOccurrence I can get gemotry information easily. It is working if assembly is selected and not working if single face is selected of a part.
I need help to identify if single face, sketch or assembly is selected. And how to get geometry data if face of a part is selected.
Thanks
Sonam