-
Define a custom type.
For example, define a new type "ACAD Engine Drawing" that is derived from parent type "MCAD Drawing" or "ACAD Drawing" . Choose an appropriate parent type depending on the planned use of the new custom type.
- Register the new custom types. For more information, see Registering Your Own Administrative Objects in the Studio Modeling Configuration Guide.
-
Add types to policies.
-
Determine the policy that will be used to govern these types.
-
Open the MQL and search for the policies that govern the major type and versioned type.
To list the available GCOs with their Bus ID and revision, run the following command MQL>temp query bus *Global* * * select id;
To modify a GCO attribute from a GCO, run the following command MQL>modify bus <busname> <attributename> "<attribute value>";
For example, to modify GCO attributes for Connector for AutoCAD GCO with Bus ID 12345, MQL>modify bus 12345 MCADInteg-RenameFilesInServer True ;
- Edit the policy that will govern the iteration using the "Governed Types" tab, add the new created type as governed type to this policy.
- Edit the policy that governs the revision and using the "Governed Types" tab, add new created type as governed type to this policy.
Perform this step only if any direct or indirect parent type of the new created type is not already added as governed type. If any direct or indirect parent type of the new created type is already added as a governed type, then the new created type need not be explicitly added as governed type. For example, to use the "AutoCAD Design" and "AutoCAD Versioned Design" policies: Add the type "ACAD Engine Drawing" as governed type to "AutoCAD Versioned Design" policy. "ACAD Engine Drawing" need not be added explicitly to "AutoCAD Design" policy, as "CAD Drawing" that is an indirect parent of "ACAD Engine Drawing" is already added as a governed type to this policy.
-
Add mappings to GCO using the following steps:
- Using the MQL, search the Global Config object for AutoCAD integration.
- Open the Edit Attributes dialog box.
- Search the
MCADInteg-TypeFormatMapping attribute and add the following line to the existing mapping: Syntax <CAD Type>|<Custom type>,<format>
For example, component|ACAD Engine Drawing,drw
assembly|ACAD Engine Drawing,drw
- Search the
MCADInteg-TypePolicyMapping attribute and add the following lines to the existing mapping:
Syntax <Custom type>|<Revision object policy
1>,<Revision object policy 2>
For example, ACAD Engine Drawing|AutoCAD Design,Design Policy
- Search the
IEF-Pref-MCADInteg-DefaultTypePolicySettings attribute and add the following line to the existing mapping:Notes:
- In case the custom type is going to be governed by multiple
policies, then this mapping will define which one of them will be
the default policy.
- In case the custom type is going to be governed by a single
policy, then this policy name should be mentioned as default.
Syntax (DEFAULTVALUE)<Custom type>|<Revision object policy>
For example, (DEFAULTVALUE)ACAD Engine Drawing|AutoCAD Design - Search the
MCADInteg-BusTypemapping attribute and edit the existing mapping for the CAD type to specify the 3DEXPERIENCE platform type that should be used for a particular CAD type.Syntax
<CAD Type>|<Custom type 1>,<Custom type 2>
For example,
assembly|ACAD Engine Drawing,ACAD Drawing
component|ACAD Engine Drawing,ACAD Drawing
For example, If the mapping is specified as, component|ACAD Engine Drawing,ACAD Drawing and an AutoCAD drawing is saved to 3DEXPERIENCE platform, it is saved to an object of type "ACAD Engine Drawing" . If the mapping is specified as, component|ACAD Drawing,ACAD Engine Drawing
and a simple AutoCAD drawing is saved to 3DEXPERIENCE platform, it is
saved to an object of type "ACAD Drawing" .
|