Share

View.Add Method

Description

Specifies which portions of which models are viewed by this view. The proper way to employ this function is to construct a directed acyclic graph (the scene graph) of Drawable objects, each of which tells the Graphic System to draw its children by using Geometry.Draw(). Add the root of this graph (a Drawable) and the Model that handles its notifications with this method. This method always returns true.

AutoCAD View objects typically view four drawables: the modelspace block, the UCS Icon, the grid, and the compass.

Visual Basic

Public Function Add(
    drawable As Drawable, 
    model As Model
) As bool

C#

public bool Add(
    Drawable drawable, 
    Model model
);

Parameters

Parameters Description
Drawable drawable Input root of scene graph.
Model model Input object to which all notifications for the above scene graph are directed.

Links

View Class, Autodesk.AutoCAD.GraphicsSystem Namespace

Was this information helpful?