![]() |
Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2024.
|
Allow to regroup SMultiline in a single SComp entity: a set of polylines. More...
Public Types | |
| enum | ExternalContourOptionEnum { EXTERNAL_2D_CALCULATION = 0 , EXTERNAL_3D_CALCULATION = 1 } |
| To know whether the external contour calculation should output a 2D Contour or a 3D Contour. More... | |
| enum | SetMultilineRepresentationTypeEnum { SETMULTILINE_SEGMENTS = 0 , SETMULTILINE_VERTICES = 1 , SETMULTILINE_INSPECTION = 2 } |
| The different representation types for SSetMultiline. More... | |
Public Types inherited from SComp | |
| enum | VisibilityEnum { HIDDEN_ONLY = 0 , VISIBLE_ONLY = 1 , ANY_VISIBILITY = 2 } |
| Visible criteria. More... | |
Public Member Functions | |
| Array< SMultiline > | Explode () |
| Explode the SSetMultiline. This function will explode the set and will duplicate all the contained SMultiline. More... | |
| Object | ExternalContour (ExternalContourOptionEnum calculationOption) |
| Calculate the external contour of a SSetMultiline. The direction used to calculate the external contour is the best plane of the SSetMultiline. More... | |
| Object | Save (string filePath, SMatrix coordinateSystemMatrix=SMatrix()) |
| Save the SSetMultiline into a file. More... | |
| SetLineWidth (number width) | |
| Set the thickness of the SSetMultiline. More... | |
| SetSetMultilineRepresentation (SetMultilineRepresentationTypeEnum representation) | |
| Modify the representation of the SSetMultiline. More... | |
| ShowName (boolean showName) | |
| Show or hide the name of the SSetMultiline in the scene. More... | |
| SSetMultiline () | |
| Default constructor to create an empty new SSetMultiline. More... | |
| SSetMultiline (Array< SMultiline > theMultiTable) | |
| Construct a new SSetMultiline from a table of SMultiline. More... | |
| string | toString () |
| Get the type of the variable. More... | |
Public Member Functions inherited from SComp | |
| AddToDoc () | |
| Add the object to the document. More... | |
| ApplyTransformation (SMatrix matrix) | |
| Apply a geometric transformation to the current object by making a product with the given matrix. More... | |
| Object | GetBoundingBox (SMatrix ucs=null) |
| Calculate the bounding box of the object. More... | |
| Object | GetColors () |
| Get the colors of the object. More... | |
| string | GetFolderName () |
| Get the name of the folder containing the object. More... | |
| string | GetName () |
| Return the object's name. More... | |
| string | GetPath () |
| Return the full path of a SComp in the tree. More... | |
| Invert () | |
| Invert the normal of the object. More... | |
| boolean | IsInDoc () |
| Return if the object is in the document or not. More... | |
| boolean | IsVisible () |
| Get the visibility of the object. More... | |
| MoveToGroup (string groupPath, boolean moveInsideTopParent=true) | |
| Move the object to the document group represent by the given path. If some groups, in the path, don't exist, they will be created. More... | |
| RemoveFromDoc () | |
| Remove the object from the document. More... | |
| SetClippable (boolean clipping) | |
| Set clippable or not. More... | |
| SetColors (number red, number green, number blue) | |
| Set the colors of the object. More... | |
| SetName (string objectName) | |
| Set the object's name. More... | |
| SetTransparency (number alpha) | |
| Set the transparency of the object. More... | |
| SetVisibility (boolean visible) | |
| Set the object to be visible, or not visible. More... | |
| string | toString () |
| Get the type of the variable. More... | |
| Translate (SVector vector) | |
| Make a translation of the current object with an SVector. More... | |
Static Public Member Functions | |
| static Array< SSetMultiline > | All (VisibilityEnum visCrit=SComp.ANY_VISIBILITY) |
| Get all the SSetMultiline in the document. More... | |
| static Object | FromClick () |
| Launch an interaction to select a SSetMultiline in the scene. More... | |
| static Array< SSetMultiline > | FromName (string name) |
| Search all the SSetMultiline with the given name. More... | |
| static Array< SSetMultiline > | FromSel () |
| Get all the selected SSetMultiline. More... | |
| static SSetMultiline | New () |
| Default constructor to create an empty new SSetMultiline. More... | |
| static SSetMultiline | New (Array< SMultiline > theMultiTable) |
| Construct a new SSetMultiline from a table of SMultiline. More... | |
Static Public Member Functions inherited from SComp | |
| static Array< SComp > | All (VisibilityEnum visCrit=SComp.ANY_VISIBILITY) |
| Get all the SComp in the document. More... | |
| static Object | FromClick () |
| Launch an interaction to select a SComp in the scene. More... | |
| static Array< SComp > | FromName (string name) |
| Search all the SComp with the given name. More... | |
| static Array< SComp > | FromSel () |
| Get all the selected SComp. More... | |
Allow to regroup SMultiline in a single SComp entity: a set of polylines.
SSetMultine acts as a polyline group. It is helpful to apply common edition methods to a set of polylines at once.
The different representation types for SSetMultiline.
| Enumerator | |
|---|---|
| SETMULTILINE_SEGMENTS | By default, segments are displayed. |
| SETMULTILINE_VERTICES | Segments and vertices are displayed. |
| SETMULTILINE_INSPECTION | Only available with inspection information. |
| SSetMultiline::SSetMultiline | ( | ) |
Default constructor to create an empty new SSetMultiline.
| SSetMultiline::SSetMultiline | ( | Array< SMultiline > | theMultiTable | ) |
Construct a new SSetMultiline from a table of SMultiline.
| theMultiTable | (Array<SMultiline>) The table of SMultiline |
|
static |
Get all the SSetMultiline in the document.
| visCrit | (VisibilityEnum) Visible selection criteria
|
| Array< SMultiline > SSetMultiline::Explode | ( | ) |
Explode the SSetMultiline. This function will explode the set and will duplicate all the contained SMultiline.
| Object SSetMultiline::ExternalContour | ( | ExternalContourOptionEnum | calculationOption | ) |
Calculate the external contour of a SSetMultiline. The direction used to calculate the external contour is the best plane of the SSetMultiline.
| calculationOption | (ExternalContourOptionEnum) To know whether the external contour calculation should output a 2D Contour or a 3D Contour
|
| ret.ErrorCode | (number) The error code
|
| ret.SetMulti | (SSetMultiline) The external contours |
|
static |
Launch an interaction to select a SSetMultiline in the scene.
| ret.ErrorCode | (number) The error code
|
| ret.SetMulti | (SSetMultiline) The selected SSetMultiline |
|
static |
Search all the SSetMultiline with the given name.
| name | (string) The name to find |
|
static |
Get all the selected SSetMultiline.
|
static |
Default constructor to create an empty new SSetMultiline.
|
static |
Construct a new SSetMultiline from a table of SMultiline.
| theMultiTable | (Array<SMultiline>) The table of SMultiline |
Save the SSetMultiline into a file.
| filePath | (string) The complete file path to save into |
| coordinateSystemMatrix | (SMatrix) The matrix to define a UCS used for the export (or identity to use the WCS) |
| ret.ErrorCode | (number) The error code
|
| SSetMultiline::SetLineWidth | ( | number | width | ) |
Set the thickness of the SSetMultiline.
| width | (number) The width to set |
| SSetMultiline::SetSetMultilineRepresentation | ( | SetMultilineRepresentationTypeEnum | representation | ) |
Modify the representation of the SSetMultiline.
| representation | (SetMultilineRepresentationTypeEnum) The multiline representation type
|
| SSetMultiline::ShowName | ( | boolean | showName | ) |
Show or hide the name of the SSetMultiline in the scene.
| showName | (boolean) The visibility state |
| string SSetMultiline::toString | ( | ) |
Get the type of the variable.