Initializes a new instance of the
CADLine class.
Namespace:
CADImport
Assembly: CADImport (in CADImport.dll)
Syntax
Visual Basic (Declaration) |
Public Sub New() |
Example
<p>Creating a new
CADLine object example:</p>
<p>[C#]</p>
| Copy Code |
---|
CreateNewImage();
CADLine ln1 = new CADLine();
ln1.Color = CADConst.clNone;
ln1.Point = GetRealPoint(100, 100);
ln1.Point1 = GetRealPoint(300, 300);
ln1.LineWeight = 0.1;
ln1.Loaded(cadImage.Converter);
ln1.Handle = ln1.GetHashCode();
ln1.KeyEnt = ln1.Handle.ToString();
cadImage.CurrentLayout.Entities.Add(ln1);
cadImage.Converter.OnCreate(ln1);
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