Load the function and then type the following : _$ (tempList acadDocuments) (setq theList (append (list dwgName) theList))ĭon't worry to much at this stage about how this function works. (setq dwgName (vlax-get-property item 'Name)) (defun tempList (theObject / item dwgName) But how do we access these objects? Copy and paste the following coding and save it as tempList.lsp : ![]() Have a look at the variable acadDocuments in the inspect window :Īs you can see, this collection contains 2 objects. _$ (setq acadDocuments (vla-get-documents acadObject)) The object that we are interested in at this stage is the Documents object. Let's have a look at the acadObject in the Inspect window : _$ (setq acadObject (vlax-get-acad-object)) Open any two drawings in AutoCAD then open the Visual List Editor and enter this : Let's start right at the bottom of the AutoCAD Object Model with the Documents collection. ![]() ![]() ![]() This tutorial will show you how to first, create a reference to the required collection, secondly, extract objects stored within the collection, and last but not least, manipulate these Objects. If you have a look at the AutoCAD Object Model, you will find all the Layers within the Layers collection, all the Blocks within the Blocks collection, etc. All Objects in AutoCAD are grouped into collections.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |