Export Utilities
Methods Introduced:
The method
pfcSession.BaseSession.IsConfigurationSupported checks whether the specified assembly configuration is valid for a particular model and the specified export format. The input parameters for this method are:
• Configuration—Specifies the structure and content of the output files.
• Type—Specifies the output file type to create.
The method returns a true value if the configuration is supported for the specified export type.
The method
pfcSession.BaseSession.IsGeometryRepSupported checks whether the specified geometric representation is valid for a particular export format. The input parameters are :
• Flags—The type of geometry supported by the export operation.
• Type—The output file type to create.
The method returns a true value if the geometry combination is valid for the specified model and export type.
The methods
pfcSession.BaseSession.IsConfigurationSupported and
pfcSession.BaseSession.IsGeometryRepSupported must be called before exporting an assembly to the specified export formats except for the
CADDS and
STEP2D formats. The return values of both the methods must be true for the export operation to be successful.
Use the method
pfcModel.Model.Export to export the assembly to the specified output format.