Add block entity

196 views
Skip to first unread message

Михаил Киселев

unread,
Apr 18, 2014, 3:24:16 AM4/18/14
to python...@googlegroups.com
Good day! 

You have done an excellent library to create DXF-files! Thank you! 

I have some questions for you to work with the library: 
1. When you create a document from a template, I'm using the existing blocks with attributes. When working with a document using AutoCAD, blocks do not have required attributes. 
2. When creating block "Layout.add_auto_blockref (name, insert, values, dxfattribs = None)" is created anonymous and do not have attributes to edit. 


Sincerely, Michael.

Manfred Moitzi

unread,
Apr 18, 2014, 4:38:57 AM4/18/14
to python...@googlegroups.com
Hi Michael!

When using Layout.add_auto_blockref() the blockref to 'name' with its associated attributs are
wrapped into an anonymous block, so I do not have to rotate and stretch the attributes by myself,
it's done by the CAD program.

Disadvantage of this method is, if you want to edit the attributes you have to EXPLODE
the outer anonymous block in AutoCAD.

If you want to evaluate this blockrefs by ezdxf see by blocks tutorial, section "Evaluate wrapped block reference":

http://pythonhosted.org//ezdxf/tutorials/blocks.html

Michael Kiselev

unread,
Apr 29, 2014, 4:24:03 AM4/29/14
to python...@googlegroups.com
Thank you very much!
Reply all
Reply to author
Forward
0 new messages