![]() |
Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2025.
|
Provide CAD objects edition and utility methods. More...
Functions | |
| Object | Convert (SFeature feature) |
| Convert a feature into a CAD object. | |
| Object | Discretize (SShape shape) |
| Convert the SShape into a discretized SPoly and a discretized SMultiline. | |
| Object | Export (string filename, Array< SShape > compTable, SMatrix coordinateSystemMatrix=SMatrix()) |
| Export a table of CAD objects in a IGES or STEP file. | |
| Object | GetCOECoordinateSystems (string filename) |
| Get the coordinate systems embedded in the given COE file. | |
| Object | Import (string filename) |
| Import a IGES or STEP file into a CAD object. | |
| Object | ImportCOE (string filename, boolean groupByType=true, string UCSName="") |
| Import a COE file. | |
Provide CAD objects edition and utility methods.
| Object SCADUtil::Convert | ( | SFeature | feature | ) |
| Object SCADUtil::Discretize | ( | SShape | shape | ) |
Convert the SShape into a discretized SPoly and a discretized SMultiline.
| ret.ErrorCode | (number) The error code
|
| ret.Poly | (SPoly) The discretized SPoly |
| ret.MultiTbl | (Array<SMultiline>) The array of discretized SMultiline |
| Object SCADUtil::Export | ( | string | filename, |
| Array< SShape > | compTable, | ||
| SMatrix | coordinateSystemMatrix = SMatrix() ) |
Export a table of CAD objects in a IGES or STEP file.
| filename | (string) The IGES or STEP filename |
| compTable | (Array<SShape>) The table of CAD objects to export |
| coordinateSystemMatrix | (SMatrix) The matrix to define a UCS used for the export (or identity to use the WCS) |
| ret.ErrorCode | (number) The error code
|
| Object SCADUtil::GetCOECoordinateSystems | ( | string | filename | ) |
Get the coordinate systems embedded in the given COE file.
| filename | (string) The COE filename |
| ret.ErrorCode | (number) The error code
|
| ret.StringTbl | (Array<string>) The table of the coordinate system names |
| Object SCADUtil::Import | ( | string | filename | ) |
Import a IGES or STEP file into a CAD object.
| filename | (string) The IGES or STEP filename |
| ret.ErrorCode | (number) The error code
|
| ret.Shape | (SShape) The imported CAD object. |
| Object SCADUtil::ImportCOE | ( | string | filename, |
| boolean | groupByType = true, | ||
| string | UCSName = "" ) |
Import a COE file.
| filename | (string) The COE filename |
| groupByType | (boolean) Should we group all objects of the same COE type? |
| UCSName | (string) The UCS name used for the import (or empty to use the WCS) |
| ret.ErrorCode | (number) The error code
|
| ret.Layers | (Array<Object>) Associative array containing all layers. Layer data can be accessed with its name like so: var layerData = Layers[layerName];
|