AnyCAD Rapid API 2023
Help you to create a better world!
Application Class Reference

Public Member Functions

Viewer GetActiveViewer ()
 
void SetActiveViewer (Viewer val)
 
Document GetActiveDocument ()
 
void SetActiveDocument (Document val)
 
boolean Initialize (String baseDirectory)
 
void Destroy ()
 
Viewer CreateView (int hwndHost, long width, long height)
 
Viewer CreateWindow3D (String title, long width, long height, boolean visible)
 
Document CreateDocument (String name)
 
boolean ExecuteCommand (String name)
 

Static Public Member Functions

static Application Instance ()
 

Member Function Documentation

◆ CreateView()

Viewer Application.CreateView ( int  hwndHost,
long  width,
long  height 
)

Create viewer in exsiting window control

Parameters
hwndHostthe host window handle.
widththe width
heightthe height
Returns
the viewer.

◆ CreateWindow3D()

Viewer Application.CreateWindow3D ( String  title,
long  width,
long  height,
boolean  visible 
)

Create window with 3D viewer.

Parameters
titlethe title
widththe width
heightthe height
visibleif visible.
Returns