wandererfan wrote: ↑Sun Jan 08, 2023 10:49 pm
You have X&Y reversed. Ansib is only 279mm wide so the handle is going off page to the right and above the top of page by 12 mm. I don't think x = -12 is right because that will put things off page to the left.
This
Code: Select all
<text
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:condensed;font-size:8.46667px;line-height:125%;font-family:Arial;-inkscape-font-specification:'Arial, Condensed';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.0549527;stroke-linecap:butt;stroke-linejoin:miter"
x="12"
y="411.22397"
id="text3331-5-9-4-3-9-7"
freecad:editable="SheetNumber"
transform="rotate(90,12,411.22397)"><tspan
id="tspan762"
x="12"
y="411.22397">NO</tspan></text>
gets you this
ansib-xyfixed.png
WOW! This is weirdness. I just did some experimenting in Inkscape with its xml editor open. When I rotate the text, Inkscape transposes the x and y coordinates for the text. Somehow, when I save the rotated version and reopen it in Inkscape, it still locates and displays the text in the right lace, even with the coordinates transposed. It must have some other means of referencing the location, I guess. Inkscape does load and display your edited file correctly. I then went back to my original file and added the rotation command in notepad, using its original coordinates. Inkscape displayed it but moved it a few millimeters. When I used Inkscape's transform features to move it to the right location (a couple mm), and also when I just dragged it to the right location with the mouse, in the XML editor window it transposed the x and y and made the transposed coordinate negative. Saving/Reopening the file and Inkscape still displays it in the correct location! How can this be?
Aha! I think when you rotate text in Inkscape, it uses 0,0 as the reference, then locates the text with a localized coordinate for the text, with y being the y of the text with a negative distance from 0,0 which actually locates it in the global x location. likewise with the transposed x coordinate. But how does it know this? And then how does it interpret your version of the file correctly? Questions for the Inkscape developers????
So, is there a different vector program that doesn't do this, or am I going to have to manually adjust rotated text to get it to work in FreeCAD? I am not a programmer - this experiment has touched my current capability