Extracting Creo+ Geometry as Interface Data
The methods defined in this section allow you to extract interface data from Creo geometry. You can use this data to create the import feature.
Methods Introduced:
The method
wfcPart.WPart.GetInterfaceData extracts information about the geometry of a part as a
InterfaceData object. The interface data can be used to extract all geometric data in order to convert it to another geometric format. Pass the information about the curves, edges, and surfaces of a part as an object of type
ConversionOptions.
The method
wfcPart.wfcPart.ConversionOptions_Create creates a data object of type
ConversionOptions that contains information about the curves, edges, and surfaces of a part.
The method
wfcPart.ConversionOptions.GetEdgeRepresentation gets the information about the representation of edges in a part as a
EdgeRepresentation object. Use the method
wfcPart.ConversionOptions.SetEdgeRepresentation to set the parameters for the representation of edges in a part.
The method
wfcPart.wfcPart.EdgeRepresentation_Create creates a data object that contains information about the representation of edges in a part. The parameters of this method are:
The method
wfcPart.ConversionOptions.GetCurveConversionOption returns the conversion option set for curves during the data exchange. Use the method
wfcPart.ConversionOptions.SetCurveConversionOption to set the curve conversion option.
The method
wfcPart.ConversionOptions.GetSurfaceConversionOption returns the conversion option set for surfaces during the data exchange. Use the method
wfcPart.ConversionOptions.SetSurfaceConversionOption to set the surface conversion option.
The method
wfcModel.wfcModel.InterfaceData_Create creates a data object of type that contains the interface data.
The method
wfcModel.InterfaceData.GetSurfaceData returns an array of surface data for the specified interface data. Use the method
wfcModel.InterfaceData.SetSurfaceData to set the surface data for a part import.
The method
wfcModel.InterfaceData.GetEdgeDescriptor returns an array of edge data for the specified interface data. Use the method
wfcModel.InterfaceData.SetEdgeDescriptor to set the edge data for a part import.
The method
wfcModel.InterfaceData.GetQuiltData returns an array of quilt data for the specified interface data. Use the method
wfcModel.InterfaceData.SetQuiltData to set the quilt data for a part import.
The method
wfcModel.InterfaceData.GetDatumData returns an array of datum data for the specified interface data. Use the method
wfcModel.InterfaceData.SetDatumData to set the datum data for a part import.
The method
wfcModel.InterfaceData.GetAccuracytype gets the type of accuracy for the interface data using the enumerated type
wfcModel.Accuracytype. Use the method
wfcModel.InterfaceData.SetAccuracytype to set the type of accuracy. The valid values are:
• ACCU_RELATIVE—Specifies the comparative ratio of the smallest model dimension to the part size. Creo application can display geometry equal to or greater than the ratio without any error. This is the default accuracy type in a model.
• ACCU_ABSOLUTE—Specifies the absolute accuracy of a model that defines the smallest allowable size of the unit that Creo application can display or interpret without any error.
Refer to theCreo Help for more information on accuracy.
The method
wfcModel.InterfaceData.GetAccuracy returns the value of the accuracy for the specified model. Use the method
wfcModel.InterfaceData.SetAccuracy to set the accuracy for the specified model.
The method
wfcModel.InterfaceData.GetOutline returns the maximum and minimum values of x, y, and z coordinates for the display outline of the bounding box that contains the interface data. Use the method
wfcModel.InterfaceData.SetOutline to set the display outline for the bounding box to contain the interface data.
The method
wfcSession.WSession.GetDataSourceType returns the type of the interface source data in session using the enumerated type
wfcSession.IntfDataSourceType. The valid values are:
• INTF_DATA_SOURCE_FILE—Specifies that the data source is from a file.
• INTF_DATA_SOURCE_MEMORY—Specifies that the data source is of neutral type.