I have a drawing with a few views:
Now I am looking for a way to get the feature name of the bounding box sketch. In this case, the full name will be:
"Bounding-Box1@RM6@Drawing View5"
I already found a way to get the name of the bounding box. Now I only need to get the full name of the reference model, in this case, "rotate sheet metal part-6". Any idea on how to achieve this?
I already tried to get the drawing view feature, then get its subfeatures. There is a DetailFolder (which isn't mentioned in the API help), a reference plane and a sketch.
SolidworksApi/macros
I can't believe my luck. I was looking through all the properties for a view when in debug mode, then found the RootDrawingComponent property:
2016 SOLIDWORKS API Help - RootDrawingComponent Property (IView) 2016 SOLIDWORKS API Help - RootDrawingComponent Property (IView)
The name of this component is rotated sheet metal-6. Yay!
This is also even more evidence that a drawing really is an assembly. So I'll add it to my article
I think SOLIDWORKS drawings are assemblies - and it blew my mind