Transforms a three-dimensional CAD point into a two-dimensional screen point.
Namespace:
CADImport
Assembly: CADImport (in CADImport.dll)
Syntax
Visual Basic (Declaration) |
Public Overridable Function GetPoint( _ ByVal P As DPoint _ ) As Point |
Parameters
-
P
-
Type: DPoint
A DPoint object representing a point in three-dimensional coordinate system.
Return Value
A
Point object representing a point in two-dimensional coordinate system.
Example
<p>Example use GetPoint method:</p>
<p>[C#]</p>
| Copy Code |
---|
...
CADLine ln = cadImage.Converter.Entities[0] as CADLine;
if(ln != null)
{
Point p1 = cadImage.GetPoint(ln.Point);
Point p2 = cadImage.GetPoint(ln.Point1);
Console.Write(String.Format("Line X1={0} Y1={1} X2={2} Y2={3}", p1.X, p1.Y, p2.X, p2.Y))
}
|
Platforms
Version Information
.NET Framework
Supported in: 2.0 - 4, NET6
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
See Also