Get ATTRIB entities

Use this forum to ask questions about how to do things in dxflib.

Moderator: andrew

Post Reply
h0rus
Registered Member
Posts: 2
Joined: Mon Jul 13, 2015 3:28 pm

Get ATTRIB entities

Post by h0rus » Mon Jul 13, 2015 3:33 pm

Hi guys!
I'm still new to dxf manipulation, and i am currently trying to get attributes from blocks (i'm talking about those: http://www.ellenfinkelstein.com/acadblo ... ttributes/).
I get that DL_CreationAdapter::endSequence() is called when an ATTRIB entity is done, but I still can't get to know when such an entity begins...
Any help would be grealty appreciated :)

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

Re: Get ATTRIB entities

Post by andrew » Mon Jul 13, 2015 4:00 pm

DL_CreationAdapter::addAttribute(...) is called to add attributes.

Notes:
- attributes are text entities like any other text entities with an additional property called 'tag'
- attributes exist on the same level as the block reference they belong to
- attributes are typically created from attribute definitions present inside block definitions
- attribute definitions are currently NOT supported by dxflib

h0rus
Registered Member
Posts: 2
Joined: Mon Jul 13, 2015 3:28 pm

Re: Get ATTRIB entities

Post by h0rus » Mon Jul 13, 2015 4:16 pm

Thank you so much for the quick answer! :)

Weird, I didn't see any reference to DL_CreationAdapter::addAttribute() in the documentation...
Does that mean I simply cannot get block attributes with their tags? (this would be bad news for me ^^')
Last edited by h0rus on Mon Jul 13, 2015 4:20 pm, edited 1 time in total.

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

Re: Get ATTRIB entities

Post by andrew » Mon Jul 13, 2015 4:19 pm

You can get block attributes (they live independently of block attribute definitions).
You cannot get block attribute definitions, they are not currently supported.

Post Reply

Return to “dxflib 'How Do I' Questions”