AnsweredAssumed Answered

selecting features with PropertyManagerPageSelectionbox

Question asked by Jeroen Van Schaik on Jun 12, 2012
Latest reply on Jun 12, 2012 by Jeroen Van Schaik

Hello, I'm trying to get a selectionbox that allows me to select features in the feature tree, as well as other items such as faces and dimensions. currently I'm using a PropertyManagerPageSelectionbox but this allows me to select just about anything except a feature tree items. the list here http://help.solidworks.com/2012/English/api/swconst/SolidWorks.interop.swconst~SolidWorks.interop.swconst.swSelectType_e.html#3 doesn't give any type corresponding to a generic feature.

 

when using the filters for the PropertyManagerPageSelectionbox I've tried setting it to swSelectType_e.swSelEVERYTHING as I've been unable to find any item in the swSelectType_e list which correstponds to an item in the feature tree, but even this option doesn't allow the selection of features in the tree, however with the swSelectType_e.swSelSKETCHES filter I can select sketches in the feature tree.

 

Others have asked how to acces other items such as bodies https://forum.solidworks.com/message/272572

 

I've thought about letting the user select a face and then try to get the face from the feature, but this seems to be a pretty ineficient way to do it, and would only allow selection of features that have surfaces.

 

so my question is:

1. is there a way to select features from the tree using a PropertyManagerPageSelectionbox?

2. if not, how can I get a UI box that can select features from the tree?

 

Thanks for your help

Outcomes