Hello, I was wondering DraftSight's AutoLisp allowed files to be modified without opening them. My company has their own custom revision and title blocks, and I was hoping that their was a way to update these blocks without having to open each drawing in order to modify it. I found this source from Lee Mac where this feature can be accomplished with AutoCAD. However, it requires an ObjectDBX to interface with the unopened drawings. When I try to run the code to get ObjectDBX, I get an error message.
Therefore, does AutoLisp have ObjectDBX, and is there a way to modify closed drawing in DraftSight?
Mock Code:
<strong>AutoLisp</strong> (setq app (vlax-get-acad-object)) (setq vrs (atoi (getvar 'acadver))) (setq sObjectDBX (if (< vrs 16) "objectdbx.axdbdocument" (strcat "objectdbx.axdbdocument." (itoa vrs)) )) <strong>AutoLisp: Variant 1</strong> (setq dbx (vl-catch-all-apply 'vla-getinterfaceobject (list app sObjectDBX))) (if (vl-catch-all-error-p dbx) (vl-catch-all-error-message dbx) dbx );if <strong>Command Window</strong> Error: Exception occurred.. <strong>AutoLisp: Variant 2</strong> (setq dbx (vla-getinterfaceobject app sObjectDBX)) <strong>Command Window</strong> *Cancel*
http://lee-mac.com/copytodrawing.html
