CADability dotNET
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)
The dimension object represents a dimensioning in a model and is a GeoObject.
To use a dimension object you must at least set the properties DimensionStyle, DimLineRef,
DimLineDirection, and add two points with the AddPoint(GeoPoint) method. Example:
Namespace: CADability.GeoObjectCopyC#
// assuming "project" is a reference to a Project Dimension d = Dimension.Construct(); d.DimensionStyle = project.DimensionStyleList.Current; d.DimLineRef = new GeoPoint(200, 200, 0); d.DimLineDirection = GeoVector.XAxis; d.AddPoint(new GeoPoint(100, 100, 0)); d.AddPoint(new GeoPoint(200, 100, 0)); d.AddPoint(new GeoPoint(300, 100, 0)); project.GetActiveModel().Add(d);
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)
Syntax
C# |
---|
[SerializableAttribute] public class Dimension : IGeoObjectImpl, ISerializable, IDimensionStyle, IGeoObjectOwner |
Visual Basic |
---|
<SerializableAttribute> _ Public Class Dimension _ Inherits IGeoObjectImpl _ Implements ISerializable, IDimensionStyle, IGeoObjectOwner |
Visual C++ |
---|
[SerializableAttribute] public ref class Dimension : public IGeoObjectImpl, ISerializable, IDimensionStyle, IGeoObjectOwner |