![]() |
Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2025.
|
Provide BIM objects edition methods. More...
Public Types | |
| enum | BIMRepresentationTypeEnum { BIM_FLAT = 0 , BIM_COLOR = 1 } |
| The different representation types for SBIM. More... | |
Public Types inherited from SComp | |
| enum | VisibilityEnum { HIDDEN_ONLY = 0 , VISIBLE_ONLY = 1 , ANY_VISIBILITY = 2 } |
| Visible criteria. More... | |
Public Member Functions | |
| Object | ApplyFilter (string filter="", Array< string > storeyNames=[]) |
| Edit content of the SBIM with given filters. | |
| Object | ConvertPolys () |
| Convert all filtered geometries into a table of meshes. | |
| SBIM (SBIM other) | |
| Construct an SBIM by copying the SBIM Other. | |
| SetBIMRepresentation (BIMRepresentationTypeEnum representation) | |
| The representation of the component is modified. | |
| string | toString () |
| Get the type of the variable. | |
| string | ValuesToString () |
| Get a debug string representation of the SBIM. | |
Public Member Functions inherited from SComp | |
| AddToDoc () | |
| Add the object to the document. | |
| ApplyTransformation (SMatrix matrix) | |
| Apply a geometric transformation to the current object by making a product with the given matrix. | |
| Object | GetBoundingBox (SMatrix ucs=null) |
| Calculate the bounding box of the object. | |
| Object | GetColors () |
| Get the colors of the object. | |
| string | GetFolderName () |
| Get the name of the folder containing the object. | |
| string | GetName () |
| Return the object's name. | |
| string | GetPath () |
| Return the full path of an SComp in the tree. | |
| Invert () | |
| Invert the normal of the object. | |
| boolean | IsInDoc () |
| Return if the object is in the document or not. | |
| boolean | IsVisible () |
| Get the visibility of the object. | |
| 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. | |
| RemoveFromDoc () | |
| Remove the object from the document. | |
| SetClippable (boolean clipping) | |
| Set clippable or not. | |
| SetColors (number red, number green, number blue) | |
| Set the colors of the object. | |
| SetName (string objectName) | |
| Set the object's name. | |
| SetTransparency (number alpha) | |
| Set the transparency of the object. | |
| SetVisibility (boolean visible) | |
| Set the object to be visible, or not visible. | |
| string | toString () |
| Get the type of the variable. | |
| Translate (SVector vector) | |
| Make a translation of the current object with an SVector. | |
Static Public Member Functions | |
| static Array< SBIM > | All (VisibilityEnum visCrit=SComp.ANY_VISIBILITY) |
| Get all the SBIM in the document. | |
| static Object | FromClick () |
| Launch an interaction to select a SBIM in the scene. | |
| static Object | FromFile (string filename, string filter="", Array< string > storeyNames=[]) |
| Import a BIM file (.rvt, .ifc) and apply filters. | |
| static Array< SBIM > | FromName (string name) |
| Search all the SBIM with the given name. | |
| static Array< SBIM > | FromSel () |
| Get all the selected SBIM. | |
| static Object | GetMetadata (SPoly mesh) |
| Get all metadata associated to the given mesh as map of key and value for each metadata. | |
| static SBIM | New (SBIM other) |
| Construct an SBIM by copying the SBIM Other. | |
Static Public Member Functions inherited from SComp | |
| static Array< SComp > | All (VisibilityEnum visCrit=SComp.ANY_VISIBILITY) |
| Get all the SComp in the document. | |
| static Object | FromClick () |
| Launch an interaction to select a SComp in the scene. | |
| static Array< SComp > | FromName (string name) |
| Search all the SComp with the given name. | |
| static Array< SComp > | FromSel () |
| Get all the selected SComp. | |
Provide BIM objects edition methods.
Require the AEC license
| SBIM::SBIM | ( | SBIM | other | ) |
|
static |
Get all the SBIM in the document.
| visCrit | (VisibilityEnum) Visible selection criteria
|
| Object SBIM::ApplyFilter | ( | string | filter = "", |
| Array< string > | storeyNames = [] ) |
Edit content of the SBIM with given filters.
| filter | (string) Load elements that contain this filter in the metadata (not case sensitive) |
| storeyNames | (Array<string>) Load only elements that are in the given storeys (not case sensitive) |
| ret.ErrorCode | (number) The error code.
|
| Object SBIM::ConvertPolys | ( | ) |
Convert all filtered geometries into a table of meshes.
| ret.ErrorCode | (number) The error code
|
| ret.PolyTbl | (Array<SPoly>) The resulting converted meshes |
|
static |
Launch an interaction to select a SBIM in the scene.
|
static |
Import a BIM file (.rvt, .ifc) and apply filters.
| filename | (string) BIM file to load |
| filter | (string) Load elements that contain this filter in the metadata (not case sensitive) |
| storeyNames | (Array<string>) Load elements that are in the given storeys (not case sensitive) |
| ret.ErrorCode | (number) The error code.
|
| ret.BIMObject | (SBIM) The imported BIM |
|
static |
|
static |
|
static |
Get all metadata associated to the given mesh as map of key and value for each metadata.
| mesh | (SPoly) The mesh to read metadata. |
| SBIM::SetBIMRepresentation | ( | BIMRepresentationTypeEnum | representation | ) |
The representation of the component is modified.
| representation | (BIMRepresentationTypeEnum) The BIM representation type
|
| string SBIM::toString | ( | ) |
Get the type of the variable.