Measurement

The measurement instance.

#.new Measurement()

Constructor.

Returns: object - returns the measurement instance

#.measureSystem

Get or set the measure system which will be used in current diagram.

Enumerations: Metric = 1, Imperial = 2.

Default value is Imperial system.

Kind: instance property of Measurement

Returns: number - returns the current measure system value.

#.getLen()

Get the length value with the unit in current measure system.

Kind: instance method of Measurement

Returns: string - returns the length

#.getArea()

Get the area value with the unit in current measure system.

Kind: instance method of Measurement

Returns: string - returns the area

#.getVolume()

Get the volume value with the unit in current measure system.

Kind: instance method of Measurement

Returns: string - returns the volume

#.getUsage(usage,prod)

Get the product usage value with the unit in current measure system.

Kind: instance method of Measurement

Returns: string - returns the product usage

Param Type Description
usage number the logical usage value
prod Product the product object which will be used to calculate the usage

Invoke example:

let perimeter = diag.measure.getLen(room1.floor.region.perimeter);
let area = diag.measure.getArea(room1.floor.region.signedArea);

results matching ""

    No results matching ""