fsmMLK / inkscapeDimensions

Inkscape extension to assist creating dimension annotations.
GNU General Public License v3.0
64 stars 10 forks source link

Displaced dimension #2

Closed pgilfernandez closed 3 years ago

pgilfernandez commented 5 years ago

Everytime I create a dimension it's not placed correctly but shifted:

screenshot

Any idea?

Thanks

fsmMLK commented 5 years ago

I just identified the issue. I am working on it.

This issue occurs if you create the placeholder line inside a group that has been transformed (moved/rotated/etc). By default, the extension will create the new elements in the root layer, outside the current active group and, therefore, will not take the transformation into account.

A temporary workaround is to go back to root layer (double click outside the group) before creating the placeholder line.

Please check if this will fix your issue and report back.

Cheers.

pgilfernandez commented 5 years ago

Hi,

Umm, I'm not using any group, I just open Inkscape, create a line and then run your script... maybe in macOS it introduces this displacement because other reason... I'll test your fix, thanks

Cheers

DOSull commented 5 years ago

I am also seeing this problem. When I make a new element and dimension it immediately, the annotation appears in the correct place, as I would expect. If I have moved the element from where it was when first created, then the dimension shows up in the wrong place.

fsmMLK commented 5 years ago

Please check whether you are within a group other than root. I am still working in a solution for that. The issue is that in many situations you do want to have this odd behaviour.