evCreate API 5.7 Help

Ev3DImportOptions Interface

The Ev3DImportOptions TS interface defines a blueprint of a JS object with the configurational settings for importing a given 3D model into an Envision document.

Properties

An EvRenderOptions object has the following properties:

optional compressionLevel: Ev3DDataCompressionLevel;

A member of the Ev3DDataCompressionLevel enumeration, the compression level of the imported 3D model.

The default value is no compression.

optional configuration: string;

A string, a CAD configuration that should be imported.

optional fitToPage: boolean;

A Boolean, a switch to control whether the bounding box of the new 3D model item should (true) or should not (false) fit the size of the page where the new 3D model item will be inserted.

The default value is true.

optional importPmi: boolean;

A Boolean, a switch to control whether the product and manufacturing information (PMI) included in the given 3D model should be imported.

The default value is false.

optional overridePmiColor: string;

A string, an RGB color value represented as a hex triplet in the #rrggbb format that should substitute the color given in the PMI of the imported 3D model.

This property will be ignored if importPmi is false.

If this property is not given, the PMI color will be imported with the given 3D model.

optional substitutePmiFontsWith: EvPmiSubstituteFont;

A member of the EvPmiSubstituteFont enumeration, a font that should substitute the font given in the PMI of the imported 3D model.

This property will be ignored if importPmi is false.

If this property is not given, the PMI font will be imported with the given 3D model.

optional tesselationQuality: EvTesselationQuality;

A member of the EvTesselationQuality enumeration, the tessellation quality of the imported 3D model.

The higher the quality is, the slower the import operation will be.

The default value is "medium".

optional useBrep: boolean;

A Boolean, a switch to control whether the boundary representation (BREP) geometry of the new 3D model item should (true) or should not (false) be used if it is included in the model.

The default value is false.

Examples

TS

{ compressionLevel: Ev3DDataCompressionLevel.High, configuration: "abc", fitToPage: false, importPmi: true, overridePmiColor: "#B3282E", substitutePmiFontsWith: EvPmiSubstituteFont.Roboto, tesselationQuality: EvTesselationQuality.ExtraHigh, useBrep: false }

JS

{ compressionLevel: "high", configuration: "abc", fitToPage: false, importPmi: true, overridePmiColor: "#B3282E", substitutePmiFontsWith: "roboto", tesselationQuality: "extra_high", useBrep: false }
07 April 2025