Message 1 of 4

Not applicable
03-07-2018
01:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
(defun c:tt1() ;; This example creates a Circle object and uses the CopyObjects ;; method to make a copy of the new Circle. (setq acadObj (vlax-get-acad-object)) (setq doc (vla-get-ActiveDocument acadObj)) ;; Load the ObjectDBX library (if (= acLibImport nil) (progn (vlax-import-type-library :tlb-filename "C:\\Program Files\\Common Files\\Autodesk Shared\\axdb18enu.tlb" :methods-prefix "acdbm-" :properties-prefix "acdbp-" :constants-prefix "acdbc-" ) (setq acLibImport T) ) ) (setq acdbObj (vlax-create-object "ObjectDBX.AxDbDocument.18")) (acdbm-open acdbObj (findfile "C:/test.dwg")) (Vlax-Invoke-Method acdbObj 'purgeall) (Vlax-Invoke-Method acdbObj 'SaveAs "C:/test.dwg") ;; Close the in memory drawing (vlax-release-object acdbObj) )
I think I can not purge via DBX.
So what can I do with DBX?Is there a list of methods that I can use via DBX?
Solved! Go to Solution.