I am attempting to open a drawing, run a script or lisp and then save and close the drawing.
I am using the following to open the drawing:
Dim acDocMgr As DocumentCollection = Application.DocumentManager
and the following the save and close the drawing:
Both the opening and closing of the drawing seem to work fine however the save does not work (but does not error with the above function).
i am attempting to run the following after the open:
where the script.scr file contains the following:
The point is created however upon save the data is not saved to the file (i even tried putting qsave in the script).
The plan is to run a lisp routine in place of the script (just trying to get the base to work at the moment) which is to update attributes already in the drawings.
From what i've read around the place (google and here) it appears that a transaction maybe required for the data to be commited to the drawing, however my question is, if the script is doing the creation how do i tell the transaction about it, and further more, if a lisp was to do the updating of the attributes, how would the transaction be told about those updates?
Or is there something else i'm missing entirely??
any push in the right direction would be appreciated.
Access a broad range of knowledge to help get the most out of your products and services.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!