Hide menu
Loading...
Searching...
No Matches

Represents a single 2D drawing of a model. More...

Inheritance diagram for cadex.Drawing.Drawing:
cadex.BaseObject

Classes

class  LayerIterator
 Iterator over layers of a drawing. More...
 
class  SheetIterator
 Iterator over sheets of a drawing. More...
 

Public Member Functions

 Drawing (global::System.IntPtr cPtr, bool cMemoryOwn)
 
 Drawing ()
 Constructor. Creates an empty drawing.
 
 Drawing (cadex.Drawing.Sheet theSheet)
 Constructor. Creates a drawing with a single sheet.
 
uint NumberOfSheets ()
 Returns the number of sheets in the drawing.
 
void AddSheet (cadex.Drawing.Sheet theSheet)
 Adds a sheet to the drawing.
 
uint NumberOfLayers ()
 Returns the number of layers in the drawing.
 
void AddLayer (cadex.Drawing.Layer theLayer)
 Adds a layer to the drawing.
 
- Public Member Functions inherited from cadex.BaseObject
 BaseObject (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
bool IsNull ()
 
ulong Id ()
 Return unique identifier of public object.
 
bool IsEqual (cadex.BaseObject theObj)
 
override int GetHashCode ()
 
override bool Equals (System.Object o)
 

Static Public Member Functions

static bool CompareType (cadex.BaseObject theObject)
 
static cadex.Drawing.Drawing Cast (cadex.BaseObject theBase)
 

Protected Member Functions

override void Dispose (bool disposing)
 

Detailed Description

Represents a single 2D drawing of a model.

Encapsulates sheets, views and layers with various 2D geometry. An object of this class is a counterpart to the Model class, meaning that it's meant to represent all drawing-related information for a single 3D model. In case the model is entirely 2D, an object corresponds to a single input file.

See also
Drawings
Examples
exploring/drawings/Program.cs, exploring/drawings/main.cxx, and sheet_metal/unfolder/main.cxx.

Member Function Documentation

◆ Dispose()

override void cadex.Drawing.Drawing.Dispose ( bool disposing)
inlineprotectedvirtual

Reimplemented from cadex.BaseObject.