Search the Community
Showing results for tags 'insert block attributes'.
-
I need a complicated lisp for take information to attributes and choose blocks in cad file. So, I am working about Building Automation Systems, I am preparing "point list" and " connection diagram" for a project. My manager wants a lisp from me for choose blocks and insert data from excel point list automatic. Can anybody help me for it? I have not any idea about lisp language.( I am searching some solutions last 2 days. if possible, a lisp will look to point list, choose module type (there are 3 type modules, so 3 blocks.) and draw modules as example and will write module no, cable no (C1-xxx), equipment name and description to attributes. I attached point list and example blocks to here. Thanks for your helps. diagram_example.dwg point list.xlsx
- 2 replies
-
- insert block attributes
- insert block
-
(and 2 more)
Tagged with:
-
Hello everybody. In research here in the forum, I found a lisp program written by Lee Mac that makes the insertion of all the blocks in the drawing asking an insertion point. I found it very useful. It would be possible to adapt to insert blocks reading from a csv file and bring the values of attributes? The blocks are not loaded in the drawing, so the directory is previously loaded in Suppot File Search Path. This is the program mentioned above. (DEFUN C:BLKINS (/ pt name) (vl-load-com) (setq *acad* (vla-get-ActiveDocument (vlax-get-acad-object))) (setq *ms* (vla-get-ModelSpace *acad*)) (vlax-for item (vla-get-Blocks *acad*) (if (and (not (eq "*" (substr (setq name (vla-get-Name item)) 1 1))) (setq pt (getpoint "\nSelect Point for Block: "))) (vlax-invoke-method *ms* 'InsertBlock (vlax-3d-point pt) name 1.0 1.0 1.0 0.0))) (princ)) Thank you in advance. Regards, Luís Augusto.
-
How to insert a block and its attributes? I did the following command (command "insert" (strcat BLOCKNAME) pause "" "" pause) More when I run the command and tags only appear explode if I do, is there any way to insert the block without having to blow to see the tags?