Inserting entity to cadinsert
Posted: 15 Nov 2019, 12:03
I am creating a circle and adding the circle to CADBlock and to CADInsert as mentioned in the code below. But circle is not visible on screen only dot is visible vInsert.Box.Wdth and height is 0.
Please guide me to add entity to block and vinsert
CADBlock tempcadBlock = new CADBlock();
tempcadBlock.Name = "caption";
CADCircle vCircle = new CADCircle();
vCircle.LineTypeScale = 0.2f;
vCircle.Radius = 500;
vCircle.Point = new DPoint(10,10,0);
vCircle.Color = Color.Green;
vCircle.Layer = cadImage.Converter.LayerByName("caption");
tempcadBlock.AddEntity(vCircle);
cadImage.Converter.Loads(tempcadBlock);
cadImage.Converter.GetSection(ConvSection.Blocks).AddEntity(tempcadBlock);
CADInsert vInsert = new CADInsert();
vInsert.Block = tempcadBlock;
vInsert.Point = new DPoint(10,10,0);
CADLayout vLayout;
vLayout = cadflow.Layouts[0];
if (vLayout == null) return false;
cadImage.Converter.Loads(vInsert);
vLayout.AddEntity(vInsert);
can you give me guide and advice in detail.
Please guide me to add entity to block and vinsert
CADBlock tempcadBlock = new CADBlock();
tempcadBlock.Name = "caption";
CADCircle vCircle = new CADCircle();
vCircle.LineTypeScale = 0.2f;
vCircle.Radius = 500;
vCircle.Point = new DPoint(10,10,0);
vCircle.Color = Color.Green;
vCircle.Layer = cadImage.Converter.LayerByName("caption");
tempcadBlock.AddEntity(vCircle);
cadImage.Converter.Loads(tempcadBlock);
cadImage.Converter.GetSection(ConvSection.Blocks).AddEntity(tempcadBlock);
CADInsert vInsert = new CADInsert();
vInsert.Block = tempcadBlock;
vInsert.Point = new DPoint(10,10,0);
CADLayout vLayout;
vLayout = cadflow.Layouts[0];
if (vLayout == null) return false;
cadImage.Converter.Loads(vInsert);
vLayout.AddEntity(vInsert);
can you give me guide and advice in detail.