CanvasApplication Object

The CanvasApplication object provides helper functions, information about 3D Canvas' current state and allows you to get the active Scene.

General GetGridDetails
  GetPath
Scene GetActiveScene
Helper Functions RotatePoint
  FormatScientific

 

GetPath

Gets the path of 3D Canvas.

Syntax

object.GetPath() as Variant

GetActiveScene

Gets the active scene.

Syntax

object.GetActiveScene() As CanvasScene

GetGridDetails

Gets details about 3D Canvas' grid.

Syntax

object.GetGridDetails(GridOriginX As Variant,
GridOriginY As Variant,
GridOriginZ As Variant,
GridSize As Variant,
GridInterval As Variant)

RotatePoint

Rotates a Point around a given axis.

Syntax

object.RotatePoint(PointX As Variant,
PointY As Variant,
PointZ As Variant,
AxisX As Variant,
AxisY As Variant,
AxisZ As Variant,
Angle As Variant,
ResultPointX As Variant,
ResultPointY As Variant,
ResultPointZ As Variant)

Remarks

Angle is in Radians. pi Radians = 180 Degrees.

FormatScientific

Translates the provided number into a string appropriate for an export function.

Syntax

object.FormatScientific(Number As Variant) As Variant

Remarks

This function ensures that an export function always formats numbers in a correct way regardless of the regional settings of the computer. 3D File formats are universally stored using the English numbering style where "one and one half" is represented as "1.50". Microsoft Windows however outputs numbers using the regional settings of the computer. This will not work for most export formats since they often delimit items with commas.