Share

Geometry.Draw Method

Description

Instructs the graphics system to regenerate value as a component of this object.

For example, a Block Definition (BlockTableRecord) uses it to draw its contained objects. Any object that owns another object should use this method to have that subentity draw itself (as opposed to directly calling its WorldDraw() method).

This allows a graphics system to cache the graphics of the object. Calling WorldDraw() directly would prevent this type of caching.

To implement this method:

  • Set up linetype, layer, color, and fill type for the Drawable using a call to SetAttributes(), passing in your implementation of SubEntityTraits.
  • Call WorldDraw() on the drawable and record the return value.
  • If false is returned, call ViewportDraw() once for each viewport.
Returning false to the caller indicates that you did not process the request.

Visual Basic

Public abstract Function Draw(
    value As Drawable
) As bool

C#

public abstract bool Draw(
    Drawable value
);

Parameters

Parameters Description
Drawable value Input Drawable to be rendered

Links

Geometry Class, Autodesk.AutoCAD.GraphicsInterface Namespace

Was this information helpful?