PdcMaterial.Units

From External Bemet Wiki
Revision as of 09:34, 22 May 2012 by Mike (talk | contribs) (Created page with "== Declaration == Units as pdcUnitKind == Description == Returns the unit == Notes == This property returns the unit property of the current material. The stated table show...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Declaration

Units as pdcUnitKind

Description

Returns the unit

Notes

This property returns the unit property of the current material. The stated table shows the possible unit return types.

Parameters - Description
0 - UnitPiece
1 - UnitMeter
2 - UnitKilo
3 - UnitLiter
4 - UnitArea

Code example

This code example returns the unit for the first material.

dim objCalc

dim objMat

  set objCalc = pdc.ActiveCalculation
  set objMat = objCalc.MaterialList(0)
  msgbox objMat.Unit

Availability