我太迷路了哈哈!对不起大家,我确实收到了一条非常有趣的消息。我想和大家分享一下,也许会朝着这个方向发展。
- No need to run this on another machine - ObjectDBX only needs +/-20 seconds to open, change the layer state, and save all 170 drawings.
- THAT is why I suggested it... it's lightning fast!!!
- However, there are some restrictions....
- For example, you cannot issue normal AutoCAD commands like ._qsave, and ._close. You MUST use Visual LISP syntax functions like vla-open, and vla-close found within the ActiveX COM API.
- You can read more about ObjectDBX here, as well as learn some basics for good programming:
- Good Habits for Coding in Visual LISP
- Here's an excerpt:
- Efficiently Opening Files, or “Warp Speed, Captain!”
- ObjectDBX allows you to access drawings without loading them in the drawing editor. This results in a huge improvement in processing speed at the expense of not having the user interface. The lack of a user interface means that you cannot use selection sets. There may also be issues when modifying objects such as attributes. It is also useful for decomposing complex objects without the risk of modifying the original object or its host drawing.
- The performance gains make ObjectDBX an excellent tool for querying multiple drawings. For example, many firms have developed applications that allow them to create and maintain sheet indexes across hundreds of drawings in seconds rather than hours.
- ObjectDBX cannot directly work on drawings that are read-only or templates. Therefore, a simple wrapper function that detects those conditions and provides a temporary drawing file to use in such a case is useful.
|