-
Represent the custom derived output type using the
userfile_extension
convention.
In a case where the file has a .zip extension,
this type should be userfile_zip.
- Update the
MCADInteg-BusTypeMapping
attribute in GCO as follows:userfile_zip|Derived Output
-
Update the GCO attribute
MCADInteg-TypeClassMapping as follows:
TYPE_DERIVEDOUTPUT_LIKE|userfile_zip
-
Categorize this derived output type depending on the CAD type and update the GCO attribute
MCADInteg-TypeDerivedOutputMapping.
In this case if .zip files are used for all types parts, assemblies and
drawings, then the following mappings must be added:
-
assembly|userfile_zip
-
component|userfile_zip
drawing|userfile_zip
-
Add the format for the derived
output type in the MQL.
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;
Note:
In this case, you can add the format ZIP.
- Search for the
Attribute with name
CAD Type using MQL. - Open this attribute for editing
and go to the Ranges tab.
- Add to the range of the values the type representation
userfile_extension for this custom derived output type.In this case, it would be userfile_zip
- Add this newly added format to the allowed
formats of the following policies:
- Derived Output Policy
- Design Policy
- Versioned Design Policy
- Update the GCO attribute
MCADInteg-TypeFormatMapping
as follows:userfile_zip|Derived Output, ZIP
Result:
All the derived outputs will be checked in with separate formats of
the same derived output object or the CAD Type Object depending on the
user setting as follows:
- If the
MCADInteg-CreateDerivedOutoutObj flag in the
GCO is set to TRUE, the derived outputs will be checked in the corresponding
formats of the same Derived Output object linked to the CAD Model.
- If the
MCADInteg-CreateDerivedOutoutObj flag in
the GCO is set to FALSE, the derived outputs will be checked in the
corresponding formats of the same CAD Model object.
Note:
If you select Delete Files
on checkin, Connector for AutoCAD
will delete these derived output files after checkin.