Message 1 of 3
Drawing of temporary objects
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
I have a function in Editor.PointMonitor as below:
private void monitor( object o, PointMonitorEventArgs e )
{
...
e.Context.DrawContext.Geometry.Draw( ent );
}
The ent object does not have to be added to the Database. We can create various graphical elements without adding them to the drawing and draw them on the AutoCAD screen. For example:
using( Circle cir = new Circle( e.Context.ComputedPoint, Vector3d.ZAxis, radius ) )
{
e.Context.DrawContext.Geometry.Draw( cir);
}
I would like to be able to draw elements without adding them to the drawing, outside of the Editor.PointMonitor action, using some method of the Editor, Viewport or Entity method. The Entity.Draw() method requires the Entity to be present in the Database.
These entities are created when the user uses a non-modal window. The non-modal window (its event) is supposed to force a refresh of the preview while waiting for a point in the Editor.
Any idea?
Regards.