Comp is the built in Child object used to access "Component" level methods in the 3D CAD Environment.
The object does not need to be created, assigned to or stored directly.
It is used only as an organizational unit for all the methods in the main CAD object.
See the Sub Topics for Help specific to the members of the Component object
None. This is an object.
It provides complete methods, properties and possibly other objects.
The object is of Type "CP.Client.CompActionObject" but the type is exposed directly in script as a "CompActionObject" type.
A component is often referred to as a "Feature" or a "Component Feature".
The Feature Object and Component Object have methods that overlap (perform the same effective action) but some methods are specific to a feature and some specific to a component.
This object can only be retrieved by using the CAD parent object followed by a "."
Eg. CAD.Comp.Method(parameter) ' not a real method call, just a structure example.
Access a method in the "Comp" object layer
Dim exist as boolean = CAD.Comp.Exists("Model1.asm","28")
' This method checks to see is feature by the ID of 28 exists in the model named Model1.asm
Store a reference to the Comp object (just to demonstrate the object type and assignment format)
Dim CAO as CompActionObject = CAD.Comp
' at this point "CAO" can be used instead of "CAD.Comp" and will do the exact same thing.
Dim exist as boolean = CAO.Exists("Model1","28")