HPS::DWG::CADModel

class HPS.DWG.CADModel : public HPS.CADModel

The CADModel class is a smart pointer. It represents the DWG drawing file.

Public Functions

HPS.View ActivateDefaultLayout ()

Creates a new View object corresponding to the default layout for this CADModel. The View object that is returned will have the corresponding visibility settings, material settings, transformation settings, and camera for the default capture set on it. This call is equivalent to calling ActivateDefaultCapture

Return

A newly created View object corresponding to this Layout.

CADModel ()

The default constructor creates an uninitialized CADModel object. The Type() function will return Type.None.

CADModel (HPS.CADModel in_that)

This constructor creates an DWG.CADModel object that shares the underlying smart-pointer of the source HPS.CADModel. The copy will only be successful if the source component is really an upcast of an DWG.CADModel object. Otherwise the copy will fail and the resulting DWG.CADModel will be invalid.

Param in_that

The source HPS.CADModel to copy.

CADModel (HPS.Component in_that)

This constructor creates a CADModel object that shares the underlying smart-pointer of the source Component. The copy will only be successful if the source component is really an upcast of an DWG.CADModel object. Otherwise the copy will fail and the resulting DWG.CADModel will be invalid.

Param in_that

The source Component to copy.

CADModel (HPS.DWG.CADModel in_that)

This constructor creates an DWG.CADModel object that shares the underlying smart-pointer of the source HPS.CADModel. The copy will only be successful if the source component is really an upcast of an DWG.CADModel object. Otherwise the copy will fail and the resulting DWG.CADModel will be invalid.

Param in_that

The source HPS.CADModel to copy.

override void Dispose ()
HPS.DWG.Layout[] GetAllLayouts ()

Get a list of all DWG layouts from all subcomponents for this CADModel.

Return

A list of all DWG layouts from all subcomponents for this CADModel.

IntPtr GetDWGDatabase ()

Gets the AcDbDatabase pointer corresponding to this DWG.CADModel.

Return

The AcDbDatabase pointer corresponding to this DWG.CADModel.

override HPS.Type ObjectType ()

This function returns the type the object, as declared (if the object is derived, this does not give the true type of the derived object).

Return

The declared type of the object in question, which may differ from the true, underlying type.