PdcMaterial.Units: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
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..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 10: Line 10:


'''Parameters - Description'''<br />
'''Parameters - Description'''<br />
0 - UnitPiece<br />
0 - pdcUnitPiece<br />
1 - UnitMeter<br />
1 - pdcUnitMeter<br />
2 - UnitKilo<br />
2 - pdcUnitKilo<br />
3 - UnitLiter<br />
3 - pdcUnitLiter<br />
4 - UnitArea
4 - pdcUnitArea<br />
5 - pdcUnitVolume


== Code example ==
== Code example ==

Latest revision as of 08:21, 6 July 2015

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 - pdcUnitPiece
1 - pdcUnitMeter
2 - pdcUnitKilo
3 - pdcUnitLiter
4 - pdcUnitArea
5 - pdcUnitVolume

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