SOLIDWORKS API Object Model Overview
The ISldWorks
object is the application object; it is the top-level object in the SOLIDWORKS
API object hierarchy. All of the other SOLIDWORKS objects are located
below the ISldWorks object in the object hierarchy and can be accessed
directly or indirectly.
If an object can only be accessed indirectly, then you must reference
that object from another object higher in the object hierarchy. For example,
the ISketchSpline
object can only be accessed indirectly; it cannot exist on its own. You
must reference the ISketchSpline object from the ISketchSegment
object because it exists only within the context of the ISketchSegment
object.
Most of the SOLIDWORKS API objects correspond to user-interface functionality;
however, several SOLIDWORKS API objects provide functionality only accessible
through the SOLIDWORKS API. For example, the IFeature
object lets you access features in the FeatureManager design tree,
but the IAttribute
object is a SOLIDWORKS API-only object because there is no corresponding
user-interface functionality.