Initializes a new instance of the
CADPolyLine class.
Namespace:
CADImport
Assembly: CADImport (in CADImport.dll)
Syntax
Visual Basic (Declaration) |
Public Sub New() |
Example
<p>Creating a new
CADPolyLine object example:</p>
<p>[C#]</p>
| Copy Code |
---|
CreateNewImage();
CADPolyLine poly = new CADPolyLine();
poly.Color = CADConst.clNone;
CADVertex vert;
int i = 0;
while(i != 11)
{
vert = new CADVertex();
vert.Point = GetRealPoint(100 + i*20, 100 + (i%2)*20);
poly.Entities.Add(vert);
i++;
}
poly.LineWeight = 0.1;
poly.Loaded(cadImage.Converter);
poly.Handle = poly.GetHashCode();
poly.KeyEnt = poly.Handle.ToString();
cadImage.Converter.Loads(poly);
cadImage.Converter.OnCreate(poly);
cadImage.CurrentLayout.Entities.Add(poly);
EditorCADPictureBox.Invalidate();
|
Platforms
Version Information
.NET Framework
Supported in: 2.0 - 4, NET6
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
See Also