Skip to content

Move the base point closer to the geometry #925

Discussion options

You must be logged in to vote

Hi!

I looked at both solution and yes they can be replicated by ezdxf. I did not see that these solutions do update the block references itself but maybe this is done by AutoCAD automatically. If you move the base point, the existing block references will be positioned incorrectly.

All solution need the new ezdxf version v1.1.

Attached resources:

The block "CIRCLE" has the base point at the origin (0, 0, 0):

The first solution: moves all entities to the base point, existing block references are not updated. The new base point is defined by the center of the block bounding box (the center of the CIRCLE entity):

import pathlib
import ezdxf
from ezdxf import bbox, t…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mozman
Comment options

@santiago-vargas-de-kruijf
Comment options

Answer selected by santiago-vargas-de-kruijf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants