GeometryImport

Defines a GeometryImport.

Declaration Syntax

public class GeometryImport : DataModelObject, IRemovableDataModelObjectPreAction, IRemovableDataModelObject, IRemovableDataModelObjectPostAction, IFolderDataModelObject

Table 229: Members

Property

Children

Gets the list of children.

Property

Comments

Gets the list of associated comments.

Property

DataModelObjectCategory

Gets the current DataModelObject's category.

Property

Figures

Gets the list of associated figures.

Property

Images

Gets the list of associated images.

Property

InternalObject

Gets the internal object. For advanced usage only.

Property

Parts

List of parts created by the most recent import operation.

Method

AddComment()

Creates a new child Comment.

Method

AddFigure()

Creates a new child Figure.

Method

AddImage(string)

Creates a new child Image. If a filePath is provided, the image will be loaded from that file, if not, the image will be a screen capture of the Geometry window.

Method

GetChildren<ChildrenType>(bool, IList<ChildrenType>)

Gets the list of children, filtered by type.

Method

GetChildren(DataModelObjectCategory, bool, IList<IDataModelObject>)

Gets the list of children, filtered by type.

Method

GetFormat()

Gets the format of the geometry file/data for the most recent import.

Method

GetGeometryURI()

Gets the Geometry URI for the most recent import. The Universal Resource Identifier, which on disk would be "file://..."

Method

GetPreferences()

Gets the preferences for most recent import operations with the geometry file/data.

Method

Import(string, Format, GeometryImportPreferences)

Import/reload geometry from the CAD file using the provided preferences. *** If no preference argument is provided, i.e., null is used (also the default argument), then default values from Mechanical preferences will be used (Mechanical: File -> Options: Import; this will need to be implemented). Previously used preferences are always purged during an import operation. *** The parts will be read into the Geometry.