How to block?
Posted: 26 Jul 2016, 09:04
Hi,
I'd like to define(make) "block" between circle and hatch.
This is my source:
show me a sample source,please.
Thanks,
JHYoon
I'd like to define(make) "block" between circle and hatch.
This is my source:
Code: Select all
private void button1_Click(object sender, EventArgs e)
{
//circle
CreateNewImage();
CADCircle vCircle = new CADCircle();
vCircle.Color = Color.Red;
vCircle.Point = new DPoint(100, 100, 0);
vCircle.Radius = 20;
PlaceEntity(vCircle);
//Hatch
CAD2DEllipse vEllipse = new CAD2DEllipse();
vEllipse.CenterPoint = vCircle.Point;
vEllipse.MajorPoint = new CAD2DPoint(20, 0);
vEllipse.Radius = 1;
CAD2DBoundaryList vBoundaryList = new CAD2DBoundaryList();
vBoundaryList.Add(vEllipse);
CADCurvePolygon vHatch = new CADCurvePolygon();
vHatch.BoundaryData.Add(vBoundaryList);
vHatch.Color = Color.Green;
cadImage.Converter.Loads(vHatch);
cadImage.CurrentLayout.AddEntity(vHatch);
/////////////////////////////
//Let me know how to define block with both circle and hatch?
////////////////////////////
}
Thanks,
JHYoon