techDraw templates and text

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
dpettegrew
Posts: 44
Joined: Sat Feb 09, 2019 8:20 pm

techDraw templates and text

Post by dpettegrew »

Is it possible to have text rotated 90 degrees in a FreeCAD template? I am working with the techdraw workbench on FreeCAD 0.18 and have created a template following the available tutorial. I have some text I've rotated 90 degrees in the source .svg file and followed the same steps to make the FreeCAD editable text but the rotated text does not have the green handles on the template in FreeCAD. There are some other unexpected results with the black block instead of text and a missing line of text, so I'll have to dig back into that somehow separately.

On another note, my title block also has some text which I embedded as geometry in the svg file so it would not change with available fonts etc and it seems fine on the screen in FreeCAD and in the SVG but when I print the plate from FreeCAD the text gets enlarged. Is there some lineweight setting for template geometry I am not finding somewhere?

Thanks. FreeCAD is really impressive software I'd love to find a useful place for it in my design workflow.
Attachments
Screenshot_2019-02-16_19-18-24.png
Screenshot_2019-02-16_19-18-24.png (184.02 KiB) Viewed 2553 times
ARCH-D-TITLEcopy.svg
(287.61 KiB) Downloaded 61 times
Screenshot_2019-02-16_19-11-23.png
Screenshot_2019-02-16_19-11-23.png (106.24 KiB) Viewed 2553 times
User avatar
wandererfan
Veteran
Posts: 6321
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: techDraw templates and text

Post by wandererfan »

dpettegrew wrote: Sun Feb 17, 2019 12:22 am Is it possible to have text rotated 90 degrees in a FreeCAD template? I am working with the techdraw workbench on FreeCAD 0.18 and have created a template following the available tutorial. I have some text I've rotated 90 degrees in the source .svg file and followed the same steps to make the FreeCAD editable text but the rotated text does not have the green handles on the template in FreeCAD.
Actually, I've never tried. Should be fine for static text. The logic for the green dots/editable text location doesn't handle transform clauses (rotate, translate, etc). Usually when this logic gets confused, the dot is on the page, just nowhere near the text. If you post your template, I'll have a look.
dpettegrew wrote: Sun Feb 17, 2019 12:22 am On another note, my title block also has some text which I embedded as geometry in the svg file so it would not change with available fonts etc and it seems fine on the screen in FreeCAD and in the SVG but when I print the plate from FreeCAD the text gets enlarged. Is there some lineweight setting for template geometry I am not finding somewhere?
The text is probably just off position too. This problem has been around since the svg export was implemented and I've never found a real fix for it. It has something to do with the exported SVG using system default fonts and scaling the text, instead of the font/size used by FC in the drawing. I'd love to fix this one, but I don't know what to change in the SVG generated by Qt.
User avatar
regis
Posts: 735
Joined: Sun Jul 12, 2015 8:17 am
Contact:

Re: techDraw templates and text

Post by regis »

dpettegrew wrote: Sun Feb 17, 2019 12:22 am On another note, my title block also has some text which I embedded as geometry in the svg file so it would not change with available fonts etc and it seems fine on the screen in FreeCAD and in the SVG but when I print the plate from FreeCAD the text gets enlarged. Is there some lineweight setting for template geometry I am not finding somewhere?
I have the same issue, and a way to remedy the situation although quite painful if you have thousands of texts, etc, is that you export the drawing back to svg, open it inskcape and select the text and turn off the outlines surrounding the text.
Attachments
Screenshot from 2019-02-17 11-09-55.png
Screenshot from 2019-02-17 11-09-55.png (101.11 KiB) Viewed 2523 times
User avatar
regis
Posts: 735
Joined: Sun Jul 12, 2015 8:17 am
Contact:

Re: techDraw templates and text

Post by regis »

select text in inkscape and go to stroke paint and check no paint.
Screenshot from 2019-02-17 13-51-13.png
Screenshot from 2019-02-17 13-51-13.png (73.09 KiB) Viewed 2509 times
Screenshot from 2019-02-17 13-51-52.png
Screenshot from 2019-02-17 13-51-52.png (98.95 KiB) Viewed 2509 times
RobertSwank
Posts: 13
Joined: Fri Dec 09, 2022 3:33 pm

Re: techDraw templates and text

Post by RobertSwank »

wandererfan wrote: Sun Feb 17, 2019 2:20 pm
dpettegrew wrote: Sun Feb 17, 2019 12:22 am Is it possible to have text rotated 90 degrees in a FreeCAD template? I am working with the techdraw workbench on FreeCAD 0.18 and have created a template following the available tutorial. I have some text I've rotated 90 degrees in the source .svg file and followed the same steps to make the FreeCAD editable text but the rotated text does not have the green handles on the template in FreeCAD.
Actually, I've never tried. Should be fine for static text. The logic for the green dots/editable text location doesn't handle transform clauses (rotate, translate, etc). Usually when this logic gets confused, the dot is on the page, just nowhere near the text. If you post your template, I'll have a look.

I continue to be amazed over the capabilities that have been incorporated into FreeCAD. As a new user, learning how to make use of them has been a daunting, but fun, task. Currently using FC 0.20.1, I have discovered the same issue with Rotated text handles. Attached are screenshots of my title block. I created my template by modifying one of the existing templates in Inkscape (The lazy man's way of following the wiki template setup instructions). Evertything worked fine, except that I am trying to rotate the sheet number, and the handle disappears. Rotated the text back in Inkscape, and it reappears. As suggested above, I looked over my whole sheet display, and could not find the missing handle. Any updates on how to fix this, or is it still not working?
Screenshot 2023-01-05 105559.jpg
Screenshot 2023-01-05 105559.jpg (82.2 KiB) Viewed 1631 times
Screenshot 2023-01-05 105849.jpg
Screenshot 2023-01-05 105849.jpg (80.21 KiB) Viewed 1631 times
Last edited by RobertSwank on Sun Jan 08, 2023 1:52 am, edited 1 time in total.
chrisb
Veteran
Posts: 54221
Joined: Tue Mar 17, 2015 9:14 am

Re: techDraw templates and text

Post by chrisb »

RobertSwank wrote: Fri Jan 06, 2023 10:57 pm ...
Please correct the quoting. It looks as if it's all quoted.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
mario52
Veteran
Posts: 4692
Joined: Wed May 16, 2012 2:13 pm

Re: techDraw templates and text

Post by mario52 »

Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
User avatar
wandererfan
Veteran
Posts: 6321
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: techDraw templates and text

Post by wandererfan »

RobertSwank wrote: Fri Jan 06, 2023 10:57 pm
Please post your template.
RobertSwank
Posts: 13
Joined: Fri Dec 09, 2022 3:33 pm

Re: techDraw templates and text

Post by RobertSwank »

chrisb wrote: Sat Jan 07, 2023 8:40 am
RobertSwank wrote: Fri Jan 06, 2023 10:57 pm ...
Please correct the quoting. It looks as if it's all quoted.
Well, that was fun. I guess when I edited out what I didn't want to quote, I inadvertently deleted the second end quote. When previewing, I couldn't figure out where else to type or how to fix it Got it now. Thanks,
RobertSwank
Posts: 13
Joined: Fri Dec 09, 2022 3:33 pm

Re: techDraw templates and text

Post by RobertSwank »

wandererfan wrote: Sat Jan 07, 2023 1:00 pm
RobertSwank wrote: Fri Jan 06, 2023 10:57 pm
Please post your template.
OK, attached are V2 with the horizontal text field, and V3 with the rotated text field. The only difference between the files is the text rotation. This would be important to me in a bigger way, as I would like to use the same exact template in Landscape and Portrait orientations. That would mean having almost all the text rotated in the landscape orientation - this is common practice in the Architecture/building industries.

Also, learning Inkscape at the same time, I have experienced strange things happening with text alignment when bringing into FreeCAD. It seems to be related to where the link button is placed in FreeCAD - what controls that? I've noticed that in some text, the InkScape XML editor places coordinates in the text line and in a subline, and sometimes the coordinates are different. It may be based on how I move or align the particular piece of text.

Very much appreciate your attention and assistance.

BOB-ANSI_B_Portrait V2.svg
(37.69 KiB) Downloaded 32 times
BOB-ANSI_B_Portrait V3.svg
(37.72 KiB) Downloaded 32 times
Post Reply