Autodesk.AutoCAD.GraphicsInterface Namespace > ViewportTraits Class
ViewportTraits Class
Description

 

This .NET class wraps the AcGiViewportTraits ObjectARX class. 

 

Viewports, on both Model and Layout tabs, now receive a call to their Viewport.SetAttributes() method before Viewport.WorldDraw(), similar to entities. This gives viewports the opportunity to pass per-viewport properties to the display and rendering systems. 

 

A concrete instance of this interface class is passed to both Viewport.SetAttributes() and ViewportTableRecord.SetAttributes(). Set calls on this interface should then be made by the viewport object. 

 

This class derives from DrawableTraits.

Class Hierarchy
Visual Basic
Public abstract Class ViewportTraits
Inherits DrawableTraits
C#
public abstract class ViewportTraits : DrawableTraits;
Links
   Comments?