Initializing the Z-axis value to zero
Posted: 21 Oct 2020, 07:01
Hello
When checking if a box of polyline contains a point (DPoint) or rect (DRect) of CADLWPolyline or CADText, I use the 'Contains' method of CADLWPolyline or CADText Entities.
However, if the Z-axis values are different, you cannot get the correct result.
I do not use Z-axis values. So I would like to initialize the z-axis values of all entities.
Is there a way for it?
When checking if a box of polyline contains a point (DPoint) or rect (DRect) of CADLWPolyline or CADText, I use the 'Contains' method of CADLWPolyline or CADText Entities.
Code: Select all
if (dPolyline.Box.Contains(cadText.Box.Center))
{
Console.WriteLine("Contained");
}
I do not use Z-axis values. So I would like to initialize the z-axis values of all entities.
Is there a way for it?