Interface for STEPPlugin modeling functions. More...
import "STEPPlugin.idl";
Public Member Functions | |
void | ExportSTEP (in GEOM::GEOM_Object theObject, in string theFileName, in GEOM::length_unit theUnit) |
Export the given shape into a file with given name in STEP format. More... | |
GEOM::ListOfGO | ImportSTEP (in string theFileName, in boolean theIsIgnoreUnits, in boolean IsCreateAssemblies) |
Import a shape from the STEP file. More... | |
string | ReadValue (in string theFileName, in string theParameterName) |
Read a value of parameter from a file, containing a shape. More... | |
boolean | IsDone () |
To know, if the operation was successfully performed. More... | |
void | SetErrorCode (in string theErrorID) |
Set the operation error code. More... | |
string | GetErrorCode () |
Get the operation error code. More... | |
long | GetStudyID () |
Get ID of study, where the operation is defined. More... | |
void | StartOperation () |
Opens a new transaction. More... | |
void | FinishOperation () |
Closes the previously opened trasaction. More... | |
void | AbortOperation () |
Aborts the previously opened transaction. More... | |
Interface for STEPPlugin modeling functions.
void ExportSTEP | ( | in GEOM::GEOM_Object | theObject, |
in string | theFileName, | ||
in GEOM::length_unit | theUnit | ||
) |
Export the given shape into a file with given name in STEP format.
theObject | Shape to be stored in the file. |
theFileName | Name of the file to store the given shape in. |
theUnit | the length unit. |
GEOM::ListOfGO ImportSTEP | ( | in string | theFileName, |
in boolean | theIsIgnoreUnits, | ||
in boolean | IsCreateAssemblies | ||
) |
Import a shape from the STEP file.
theFileName | The file, containing the shape. |
theIsIgnoreUnits | If True, file length units will be ignored (set to 'meter') and result model will be scaled, if its units are not meters. If False (default), file length units will be taken into account. |
IsCreateAssemblies | If True, for each assembly compound is created in the result. If False Compounds that contain a single shape are eliminated from the result. |
string ReadValue | ( | in string | theFileName, |
in string | theParameterName | ||
) |
Read a value of parameter from a file, containing a shape.
theFileName | The file, containing the shape. |
theParameterName | Specify the parameter. For example, pass "LEN_UNITS" to obtain length units, in which the file is written. |
|
inherited |
To know, if the operation was successfully performed.
|
inherited |
Set the operation error code.
theErrorID | is a string describing the error occured |
|
inherited |
Get the operation error code.
|
inherited |
Get ID of study, where the operation is defined.
|
inherited |
Opens a new transaction.
|
inherited |
Closes the previously opened trasaction.
|
inherited |
Aborts the previously opened transaction.