CODE :
Code: Select all
CADText text = new CADText();
text.Point = point;
text.Height = 5.0;
text.Rotation = 0.0f;
text.Text = "IP Recording";
text.LineWeight = 0.1;
text.Layer = editor.Image.Converter.LayerByName(IP_RECORDING_LAYER) as CADLayer;
editor.Image.Converter.Loads(text);
editor.Image.CurrentLayout.Entities.Add(text);
editor.Invalidate();