Skip to content

Insert block with attributes #444

Answered by DomCR
w4l1k asked this question in Q&A
Sep 10, 2024 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

Hi @w4l1k,

Attributes should be added into Insert.Attributes, you will notice that when you create the Insert referencing the BlockRecord the collection should contain one AttributeEntity in it, to change the value, fetch the AttributeEntity and edit the object.

This is a feature that should be improved with this PR:

With your changes the code should work fine, if you save a DXF the file should be as expected, for the DWG I forgot to remove a guard that blocks the writer for Attributes, I'll open an issue to fix it.

If you are using the package, please let me know and I'll make an update.

Let me know if this helps.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@w4l1k
Comment options

@DomCR
Comment options

@w4l1k
Comment options

@DomCR
Comment options

@DJGosnell
Comment options

Answer selected by w4l1k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants