Assembly: VM.API.Pre.dll This class implements APIs for Geometry.
Inheritance
object ← GeometryAPIExtension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)Methods
ExportCAD(IDocument, string, IEnumerable<Obj>, string)
Export the geometry.Parameters
document IDocument
The document to export the geometry.
filePath string
The file path of the geometry.
objectList IEnumerable<Obj>
The result type of the geometry.
value string
The unit type of the geometry.
Exceptions
ArgumentNullException Will be thrown if ‘document’, ‘filePath’ argument is null. ArgumentException Will be thrown if the type of ‘document’ is not SubSystemDocument and PartDocument. ArgumentException Will be thrown if the exetension of ‘filePath’ is not ‘sab’, ‘.sat’, ‘CATPart’, ‘CATProduct’, ‘x_t’, ‘x_b’, ‘stp’, ‘step’. ArgumentException Will be thrown if the type of ‘objectList’ is not SolidBody and Body.ImportCAD(IDocument, string, ResultType, CadImportUnitType, bool, CadImportColorType, Color?)
Import the geometry.Parameters
document IDocument
The document to import the geometry.
filePath string
The file path of the geometry.
resultType ResultType
The result type of the geometry.
unitType Document3D.CadImportUnitType
The unit type of the geometry.
useHealing bool
The flag of use healing of geometry.
colorType Document3D.CadImportColorType
The color type of the geometry.
color Color?
The color of the geometry.
Exceptions
ArgumentNullException Will be thrown if ‘document’ is null. ArgumentException Will be thrown if the type of ‘document’ is not SubSystemDocument and PartDocument. ArgumentException Will be thrown if the exetension of ‘filePath’ is not ‘sab’, ‘.sat’, ‘CATPart’, ‘CATProduct’, ‘x_t’, ‘x_b’, ‘stp’, ‘step’.ReplaceCAD(IDocument, string, ResultType, CadImportUnitType, bool, CadImportColorType, Color?, bool, string[])
Replace the geometry.Parameters
document IDocument
The document to replace the geometry.
filePath string
The file path of the geometry.
resultType ResultType
The result type of the geometry.
unitType Document3D.CadImportUnitType
The unit type of the geometry.
useHealing bool
The flag of use healing of geometry.
colorType Document3D.CadImportColorType
The color type of the geometry.
color Color?
The color of the geometry.
replaceAllGeometries bool
The flag of replace all geometries of geometry.
attributes string[]
The attributes of geometry.