Description
This .NET class wraps the AcGiWorldDraw ObjectARX class.
The WorldDraw class provides functionality that has the ability to generate geometry that doesn't change for different viewports. The geometry may look different in different viewports (due to different zoom factors, viewpoints, etc.), but only one set of geometry is generated, which is then adjusted by AutoCAD for all the different viewports. For generating different geometry in different viewports, see ViewportDraw.
The default constructor creates new WorldGeometry and SubEntityTraits objects, both of which are accessible via methods in the WorldDraw object.
An object of WorldDraw is passed into the Entity.WorldDraw() function.
The WorldDraw class provides functions that return references to objects of other key graphics interface classes. From WorldDraw, you can obtain objects of the following classes:
Class | Usage |
---|---|
AcGiSubEntityTraits | Setting drawing attributes (color, linetype, etc.) and selection markers. |
AcGiViewportGeometry | Drawing model coordinate geometry (arcs, polylines, etc.); getting current transforms. |
This class can be derived from to create your own class to pass into an entity's WorldDraw() method. If you also derive from WorldGeometry and override its methods with your own implementations and use objects of both derived classes together, you will be able to obtain the graphics information for an entity without having direct access to the entity's underlying code. One situation where this has proven useful is when the facet geometry of AutoCAD solids is needed.
Class Hierarchy
Autodesk.AutoCAD.GraphicsInterface.CommonDraw Autodesk.AutoCAD.GraphicsInterface.WorldDraw
C#
public abstract class WorldDraw : CommonDraw;
Visual Basic
Public abstract Class WorldDraw Inherits CommonDraw
Links
WorldDraw Constructor, WorldDraw Properties
See Also
WorldGeometry, SubEntityTraits, ViewportDraw