I am trying to select the Front Plane, which has been renamed in the part template file.
I have enumerated the part features and found the three plane features. I have tried using GetSpecificFeature2 to convert the IFeature to an IRefPlane and doing a straight cast
IRefPlane* refPlane = (IRefPlane*)feature;
I then try to use IGetRefPlaneParams and get_Transform to get the plane normal to see if it is the Front Plane. The code keeps crashing and the examples don't help. There are so few useful C++ examples.
Does anyone know how to achieve this in unmanaged C++?
SolidworksApi macros