2011-10-23 19:45 UTC
Bricscad 12.1.2
OpenDCL 7.0.0.1
Win XP
A small problem with DwgPreview:
To load a new dwg in a preview you have to first make it invisible.
See attached files.
Put all files in a single folder.
Open one of the drawings.
Load the lisp.
Enter BKG_BLOCKBROWSER to run.
Hit Reload button.
Result: only BkgBlockBrowser_Main_DwgPreview1 has been updated.
(defun c:BkgBlockBrowser_Main_btnReload_OnClicked ()
; (dcl_Control_SetVisible BkgBlockBrowser_Main_DwgPreview0 nil) ; required for ODCL 7.0.0.1
(dcl_DWGPreview_LoadDwg BkgBlockBrowser_Main_DwgPreview0 "A002.dwg")
(dcl_Control_SetVisible BkgBlockBrowser_Main_DwgPreview0 'T)
(dcl_Control_SetVisible BkgBlockBrowser_Main_DwgPreview1 nil) ; required for ODCL 7.0.0.1
(dcl_DWGPreview_LoadDwg BkgBlockBrowser_Main_DwgPreview1 "A003.dwg")
(dcl_Control_SetVisible BkgBlockBrowser_Main_DwgPreview1 'T)
)
OpenDCL 7.0.0.1
Win XP
A small problem with DwgPreview:
To load a new dwg in a preview you have to first make it invisible.
See attached files.
Put all files in a single folder.
Open one of the drawings.
Load the lisp.
Enter BKG_BLOCKBROWSER to run.
Hit Reload button.
Result: only BkgBlockBrowser_Main_DwgPreview1 has been updated.
(defun c:BkgBlockBrowser_Main_btnReload_OnClicked ()
; (dcl_Control_SetVisible BkgBlockBrowser_Main_DwgPreview0 nil) ; required for ODCL 7.0.0.1
(dcl_DWGPreview_LoadDwg BkgBlockBrowser_Main_DwgPreview0 "A002.dwg")
(dcl_Control_SetVisible BkgBlockBrowser_Main_DwgPreview0 'T)
(dcl_Control_SetVisible BkgBlockBrowser_Main_DwgPreview1 nil) ; required for ODCL 7.0.0.1
(dcl_DWGPreview_LoadDwg BkgBlockBrowser_Main_DwgPreview1 "A003.dwg")
(dcl_Control_SetVisible BkgBlockBrowser_Main_DwgPreview1 'T)
)