CAD import objects
CadImporter
[Desktop Automation]
Properties
None.
Methods
Name | Syntax | Description |
---|---|---|
loadmodel | cadmodel = importer:loadmodel(filename:string, maximumsurfacedeviation:number, angletolerance:number, maximumedgelength:number) | |
loadmodel | loadmodel(filename:string, detaillevel:integer) | Alternative syntax. Detail levels 1 to 5 correspond to Netfabb's built-in levels of "extra low", "low", "medium", "high", and "extra high". |
CADImportModel
[Desktop Automation]
Sometimes a CAD File consists of several single files. You can access the number of single entities by the property entitycount
and get an entity's name by the method getentityname(index)
. You can create a mesh with all entities using the method createmesh
, or you can create a mesh with a single entity using the method createsinglemesh
.
Properties
Name | Syntax | Description |
---|---|---|
entitycount | entities = cadmodel.entitycount | Holds the number of entities of the cadmodel |
trianglecount | triangles = cadmodel.trianglecount | Holds the number of triangles of the cadmodel |
Methods
Name | Syntax | Description |
---|---|---|
createsinglemesh | mesh = cadmodel:createsinglemesh (EntityIndex:Number); | Creates a mesh with a single entity |
createmesh | mesh = cadmodel:createmesh() | Creates a mesh with all entities |
getentityname | name = cadmodel:getentityname( EntityIndex:Number); | Returns the entity's name |