isa Keyword  

Definition

Creates a typed object or instantiates an object.

Syntax

ObjectName isa ObjectType 

or

ObjectName isa InstanceName

where:

  • ObjectName is the name of the object to be created.
  • ObjectType is the type of the object to be created.
  • InstanceName is the name of the object to be instantiated.

Example

In the example below, S0 is an instance of the Sketch.0 feature which is imported from the GPS.CATPart document.

import "E:\GPS.CATPart";
myGps isa CATPart
  {
   myPart isa Part
      {
        PartB isa BodyFeature
          {
            S0 isa Sketch.0 {}
            pad0 isa Pad("S0")
            ...
          }
      }
  }
The name of the created object must be different from the object type
 (Box isa Box is incorrect).