
This method will load a drawing file's thumbnail bitmap preview into the DwgPreview control for display.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_DwgPreview_LoadDwg MyControlReference [as Reference] sFileName [as String]) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
|---|
(Odcl_DwgPreview_LoadDwg ProjectFile [as String] DialogName [as String] ControlName [as String] sFileName [as String]) |
Copy Code |
|---|
; Load a drawing (Odcl_DwgPreview_LoadDwg MyProject_MyForm_MyControl "GreatPlan.dwg") |