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:
AutoLisp (setq app (vlax-get-acad-object)) (setq vrs (atoi (getvar 'acadver))) (setq sObjectDBX (if (< vrs 16) "objectdbx.axdbdocument" (strcat "objectdbx.axdbdocument." (itoa vrs)) )) AutoLisp: Variant 1 (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 Command Window Error: Exception occurred.. AutoLisp: Variant 2 (setq dbx (vla-getinterfaceobject app sObjectDBX)) Command Window *Cancel*
http://lee-mac.com/copytodrawing.html
