You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because those are squared and I have a round one, I didn't want leader with a dogleg, but one directly from the center which should be possible because of the Blockalignment.insertion_point and the insertion point of my block is the centre of the circle.
However, this doesn't seem to work. When I open the DXF in Bricscad, it always says that the alignment is center_extents. So I added after Line 79 a print statement to see what the actual alignment is:
print(ml_builder.context.attachment_type)
It always comes back with 0 which means center_extents. Forcing the context with
ml_builder.context.attachment_type=1
prints a 1 and opening the DXF in Bricscad also gives now the right alignment.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to create a BOM ballon and looked at https://ezdxf.readthedocs.io/en/stable/tutorials/mleader.html#create-block-content. So I created a new block, add a circle and text for a number. I also looked at the actual code at https://github.com/mozman/ezdxf/blob/master/docs/source/tutorials/src/mleader/block_content.py and tried it.
Because those are squared and I have a round one, I didn't want leader with a dogleg, but one directly from the center which should be possible because of the
Blockalignment.insertion_point
and the insertion point of my block is the centre of the circle.However, this doesn't seem to work. When I open the DXF in Bricscad, it always says that the alignment is
center_extents
. So I added after Line 79 a print statement to see what the actual alignment is:It always comes back with
0
which meanscenter_extents
. Forcing the context withprints a
1
and opening the DXF in Bricscad also gives now the right alignment.So it seems something is going weird somewhere.
Beta Was this translation helpful? Give feedback.
All reactions