Property DimensionZ
DimensionZ
Height of the object (in the object measurement units).
Declaration
public double DimensionZ { get; set; }
Property Value
Type | Description |
---|---|
double |
Remarks
You can use Unit
Examples
The following example shows how to convert an object's dimension from catalog units to scene units.
public bool OnObjectPlaceAfter(int unused)
{
var appli = new Appli();
Scene scene = appli.Scene;
Scene.Object placedObject = appli.CallParamsInfo.ActiveObject;
double objectDimensionInSceneUnits
= scene.UnitConvertFrom(
placedObject.Unit, placedObject.DimensionX);
// The following code does exact the same conversion as previous
objectDimensionInSceneUnits = Appli.UnitConvert(
placedObject.Unit, scene.Unit, placedObject.DimensionX);
MessageBox.Show("Object's dimension in scene unit is: "
+ objectDimensionInSceneUnits.ToString()
+ scene.Unit.ToString());
return true;
}