GeomDocument Class
The commands in the GeomDocument class are described below.
.
More...
Public Member Functions | |
| void | ClearAllJcfRegionIds () |
| Deletes the inheritance information from JCF. | |
| void | CompressMesh () |
| Removes unused nodes from current mesh. When this command is executed, the operation history is cleared. | |
| ReferenceObject * | CreateReferenceFromElementEdge (String &id) |
| Specifies an element edge ID and creates ReferenceObject. More... | |
| ReferenceObject * | CreateReferenceFromElementFace (String &id) |
| Specifies an element face ID and creates ReferenceObject. More... | |
| ReferenceObject * | CreateReferenceFromIdentifier (String &id) |
| Specifies an ID and creates ReferenceObject. More... | |
| ReferenceObject * | CreateReferenceFromItem (ItemObject *object) |
| Creates ReferenceObject from ItemObject. More... | |
| ReferenceObject * | CreateReferenceFromNode (String &id) |
| Specifies a node ID and creates ReferenceObject. More... | |
| void | ExportData (String &filename, bool forceUseKeepMeshId=false) |
| Exports the file by specifying the path and extension (*.sat, *.sab, *.dxf, *.jmdl). More... | |
| void | ExportGeometryAndMesh (String &filename, bool forceUseKeepMeshId=false) |
| Exports the geometry and mesh to JCF file. More... | |
| String | FullPath () |
| Returns the full path of the document. More... | |
| Assembly * | GetAssembly () |
| Returns the root assembly. More... | |
| AssemblyManager * | GetAssemblyManager () |
| Returns AssemblyManager. More... | |
| BuildMessage * | GetBuildMessage (int index) |
| Returns the messages in the model creation. More... | |
| DesignTable * | GetDesignTable () |
| Returns DesignTable. More... | |
| DirectCreationManager * | GetDirectCreationManager () |
| Returns DirectCreationManager. More... | |
| MeasureManager * | GetMeasureManager () |
| Returns MeasureManager. More... | |
| MeshManager * | GetMeshManager () |
| Returns MeshManager. More... | |
| PartManager * | GetPartManager () |
| Obtains PartManager. More... | |
| GeomSelection * | GetSelection () |
| Returns the selected object, such as part, face, edge, and vertex. More... | |
| SketchManager * | GetSketchManager () |
| Returns SketchManager object that provides commands (such as trimming or moving part) for editing basic shape. More... | |
| VolumeCalculationManager * | GetVolumeCalculationManager () |
| Returns VolumeCalculationManager. More... | |
| bool | HasErrorMessage () |
| Returns true as a return value if there is an error message. More... | |
| bool | HasIntersection () |
| Checks interference among solids (or regions). More... | |
| bool | HasIntersectionGeomAndMesh () |
| Checks interference in solids and mesh blocks (or regions and mesh blocks). More... | |
| bool | HasWarningMessage () |
| Returns true as a return value if there is a warning message. More... | |
| int | NumBuildMessages () |
| Returns the number of messages in the model creation. More... | |
| void | RenumberElementId () |
| Renumbers the ID of elements. | |
| void | RenumberNodeId () |
| Renumbers the ID of nodes. | |
| void | Save () |
| Saves data in the user folder. | |
| void | SaveAs (String &filename) |
| Saves data by specifying the file path. More... | |
| void | SaveModel (bool save_jproj) |
| Saves assembly created with Geometry Editor. More... | |
| void | SetBlockUpdate (bool flag) |
| Specifies whether or not to stop running an automatic update of the screen display. More... | |
| void | SetFileSaveConfirmation (bool flag) |
| Specifies whether or not to display or hide the dialog confirming whether or not to save a file after the Geometry Editor has ended. More... | |
| void | UpdateModel (bool save_jproj, bool replace) |
| Updates model created with Geometry Editor. More... | |
| void | UpdateView () |
| Runs the automatic update of the screen display manually if the automatic update is not running. | |
GeomDocument Class
The commands in the GeomDocument class are described below.
.
The GeomDocument class includes the commands for the following operation.
| ReferenceObject * GeomDocument::CreateReferenceFromElementEdge | ( | String & | id | ) |
Specifies an element edge ID and creates ReferenceObject.
| id | Element edge ID of the object to reference |
| ReferenceObject * GeomDocument::CreateReferenceFromElementFace | ( | String & | id | ) |
Specifies an element face ID and creates ReferenceObject.
| id | Element face ID of the object to reference |
| ReferenceObject * GeomDocument::CreateReferenceFromIdentifier | ( | String & | id | ) |
Specifies an ID and creates ReferenceObject.
| id | ID of the object to reference |
| ReferenceObject * GeomDocument::CreateReferenceFromItem | ( | ItemObject * | object | ) |
Creates ReferenceObject from ItemObject.
| object | ItemObject object |
| ReferenceObject * GeomDocument::CreateReferenceFromNode | ( | String & | id | ) |
Specifies a node ID and creates ReferenceObject.
| id | Node ID of the object to reference |
| void GeomDocument::ExportData | ( | String & | filename, |
| bool | forceUseKeepMeshId = false |
||
| ) |
Exports the file by specifying the path and extension (*.sat, *.sab, *.dxf, *.jmdl).
| filename | File path |
| void GeomDocument::ExportGeometryAndMesh | ( | String & | filename, |
| bool | forceUseKeepMeshId = false |
||
| ) |
Exports the geometry and mesh to JCF file.
| filename | File path |
| String GeomDocument::FullPath | ( | ) |
Returns the full path of the document.
| Assembly * GeomDocument::GetAssembly | ( | ) |
Returns the root assembly.
The root assembly is the assembly at the top of the treeview in the [Treeview] tab in [Model Manager] in the work plane.
| AssemblyManager * GeomDocument::GetAssemblyManager | ( | ) |
Returns AssemblyManager.
| BuildMessage * GeomDocument::GetBuildMessage | ( | int | index | ) |
Returns the messages in the model creation.
| index | Message index of the object to reference |
| DesignTable * GeomDocument::GetDesignTable | ( | ) |
Returns DesignTable.
| DirectCreationManager * GeomDocument::GetDirectCreationManager | ( | ) |
Returns DirectCreationManager.
| MeasureManager * GeomDocument::GetMeasureManager | ( | ) |
Returns MeasureManager.
| MeshManager * GeomDocument::GetMeshManager | ( | ) |
Returns MeshManager.
| PartManager * GeomDocument::GetPartManager | ( | ) |
Obtains PartManager.
| GeomSelection * GeomDocument::GetSelection | ( | ) |
Returns the selected object, such as part, face, edge, and vertex.
For more information about the commands in the Selection class, see " GeomSelection ".
| SketchManager * GeomDocument::GetSketchManager | ( | ) |
Returns SketchManager object that provides commands (such as trimming or moving part) for editing basic shape.
| VolumeCalculationManager * GeomDocument::GetVolumeCalculationManager | ( | ) |
Returns VolumeCalculationManager.
| bool GeomDocument::HasErrorMessage | ( | ) |
Returns true as a return value if there is an error message.
| bool GeomDocument::HasIntersection | ( | ) |
Checks interference among solids (or regions).
| bool GeomDocument::HasIntersectionGeomAndMesh | ( | ) |
Checks interference in solids and mesh blocks (or regions and mesh blocks).
| bool GeomDocument::HasWarningMessage | ( | ) |
Returns true as a return value if there is a warning message.
| int GeomDocument::NumBuildMessages | ( | ) |
Returns the number of messages in the model creation.
| void GeomDocument::SaveAs | ( | String & | filename | ) |
Saves data by specifying the file path.
| filename | File path |
| void GeomDocument::SaveModel | ( | bool | save_jproj | ) |
Saves assembly created with Geometry Editor.
| save_jproj | 1/True=on : Project is also saved.
0/False=off : Project is not saved.
|
| void GeomDocument::SetBlockUpdate | ( | bool | flag | ) |
Specifies whether or not to stop running an automatic update of the screen display.
The display speed becomes slower when complicated geometry with multiple shapes, such as vertices and lines, are created.
In this case, the automatic update of the screen display can stop running if necessary.
| flag | True=on : Stop running the automatic update
False=off : Start running the automatic update
|
The automatic update must be set to "False" after creating the geometry.
| void GeomDocument::SetFileSaveConfirmation | ( | bool | flag | ) |
Specifies whether or not to display or hide the dialog confirming whether or not to save a file after the Geometry Editor has ended.
| flag | True=on : Displays dialog confirming whether or not to save a file
False=off : Does not display dialog confirming whether or not to save a file
|
| void GeomDocument::UpdateModel | ( | bool | save_jproj, |
| bool | replace | ||
| ) |
Updates model created with Geometry Editor.
| save_jproj | 1/True=on : Project is also saved.
0/False=off : Project is not saved.
|
| replace | 1/True=on : Replace model.
0/False=off : Update model.
|