Joshua, once you have the IFace2 pointer you need only use IFace2::GetFeature to get the pointer to the owning feature, then you can use IFeature::Name to get the feature name.
In my parts, some faces have a name. Is it possible to get the name of the faces involved in the mate (if the entities are faces and if they have a name, of course!)
Ready to start learning the SolidWorks API? Sign up for FREE membership here.Keep up with new videos, macros, and training events by joining our mailing list:
Sharing is caring …
Nice effort !!!
Thank you…
I love how this macro works. Is there a way to list the names of the features used for a mate? E.g. a concentric mate would list:
Concentric1
Component = Base
Feature = M6 X 1.0 Tapped Hole
Component = Mounting Plate
Feature = C’bore for M6
———————————————————————
I would literally use this every day for checking!!!
Joshua, once you have the IFace2 pointer you need only use IFace2::GetFeature to get the pointer to the owning feature, then you can use IFeature::Name to get the feature name.
Thank you for this macro!
In my parts, some faces have a name. Is it possible to get the name of the faces involved in the mate (if the entities are faces and if they have a name, of course!)
Thank in advance
Christophe, I have a blog post called Mating Automation Techniques: Pros and Cons that covers this.