...
Viewer object
Load drawing
Close drawing
Change viewing modes
Change layout background color
Switch between model and sheets
DWG Viewer - Viewer object
Status | ||
---|---|---|
|
The most important step is to embed the viewer object and connect it with the host application. The viewer object com.graebert.aresinstance.CFxARESDocumentView can be used and configured in a layout file. The next step is to bind the layout object with a property of type CFxARESDocumentView using findViewById(). This object is a member of the host application. The host application is connected to a class ARESDelegate.java extended by CFxARESInstanceDelegate and is initialized with the singleton CFxARESInstance.instance(). The SDK kernel starts to render the drawing into the CFxARESDocumentView object that will be accessed by getDocumentView() when a document is loaded and activated successfully.
...