Editing with Methods

AutoCAD VBA editing methods edit differently from properties. Methods generally change an entity's shape, size, and position or create a new entity based on the original. Properties, on the other hand, tend to change the appearance of the object boundary lines, which represent the objects on the screen or on the plotter.

Unlike Visual LISP VBA provides no equivalent functions for (vlax-method-applicable-p) for making sure an object exposes a specific method. For this reason, for each object against which you want to invoke a method, be sure that the object supports the method you are using. Your best tools for this are error trapping and error handling.

0 0

Post a comment