Version 0.60.0

Document Variables

A number of switches and values can be accessed in a global scope as 'document' variables:

Paramater Type Default Value Description
document.name string "My Object" Contains the name of the project. Can be set in order to define a custom name.
document.finalize bool varying Contains an information whether a final construction is requested.
document.expose_opar int 0 Command to define in what way open parameters shall be exposed to the UI or a controlling application. For more information see the page about open parameter visibility.
document.gamma float Angular tesselation parameter γ.
document.smin float 0.01 Resolution tesselation parameter smin.
document.render_vis_smooth bool false Command to enable visual smoothing.
document.unit string "mm" Defines a reference length unit. Allowed values are "mu", "mm", "cm", "in", "ft", "m".
document.version string varying Returns the trCAD version.

🗙

Search results for