For each specification type, the
emxEngineeringCentral.properties
file contains a property
that defines the base type of the object. Add or edit one or more of these line:
type_CADDrawing.BaseTypeObjectGenerator = type_CADDrawing
type_CADModel.BaseTypeObjectGenerator = type_CADModel
type_PartSpecification.BaseTypeObjectGenerator = type_PartSpecification
type_DrawingPrint.BaseTypeObjectGenerator = type_DrawingPrint
type_ECADModel.BaseTypeObjectGenerator = type_CADModel
type_MCADModel.BaseTypeObjectGenerator = type_CADModel
type_MCADAssembly.BaseTypeObjectGenerator = type_CADModel
type_MCADAssemblyInstance.BaseTypeObjectGenerator = type_CADModel
type_MCADComponent.BaseTypeObjectGenerator = type_CADModel
type_MCADComponentInstance.BaseTypeObjectGenerator = type_CADModel
type_MCADParameterizedAssemblyModel.BaseTypeObjectGenerator = type_CADModel
type_MCADParameterizedComponentModel.BaseTypeObjectGenerator = type_CADModel
type_MCADParameterizedModel.BaseTypeObjectGenerator = type_CADModel
type_Sketch.BaseTypeObjectGenerator = type_Sketch
type_Markup.BaseTypeObjectGenerator = type_Markup
The app uses these definitions in autonaming
to get the base type of a subtype to determine which object generator
to use. If the base types setting for SubTypeObjectGenerator = true
,
then the app uses it to generate the new object. Otherwise,
it uses the base type object generator to generate an
object of that type.
If you create a specification subtype, you must define a base
type generator property for it in the properties file. Set the value for this property depending on your business requirements.
For example, if
you create a specification subtype, XCADModel, derived from CADModel,
you would add this property to the properties file:
type_XCADModel.BaseTypeObjectGenerator = type_CADModel
When users create a specification of the XCADModel type,
the app uses the CADModel object type generator to create
the object.