export a sloped line from TechDraw Page to Dxf

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
manos
Posts: 432
Joined: Thu Nov 12, 2020 10:48 am
Location: Greece

export a sloped line from TechDraw Page to Dxf

Post by manos »

Is there any way to add a line (or a line of text) to a TechDraw Page with the following 2 qualities:
1) Have a slope e.g 49 degrees.
2) Be exported to the Dxf file created from that page, keeping its slope.

The line can be of any kind:Dimension, Leader line, Cosmetic etc

https://forum.freecadweb.org/viewtopic. ... 10#p605238
The final target is to put a (kind of) circle dimension at the Dxf file exported from TechDraw Page.

After three days of tries and numerous posts with no avail, even comforting posts are welcomed.
User avatar
NewJoker
Veteran
Posts: 3014
Joined: Sun Oct 11, 2020 7:49 pm

Re: export a sloped line from TechDraw Page to Dxf

Post by NewJoker »

You could sketch a line, then convert it to Draft object and use the TechDraw DraftView tool. However, you will have to position the line manually on the existing TechDraw view (it won't snap to the center of the circle) and you won't be able to dimension the angle between this line and a line belonging to original view.

angle.png
angle.png (71.08 KiB) Viewed 792 times
manos
Posts: 432
Joined: Thu Nov 12, 2020 10:48 am
Location: Greece

Re: export a sloped line from TechDraw Page to Dxf

Post by manos »

NewJoker wrote: Mon Jun 27, 2022 12:03 am You could sketch a line, then convert it to Draft object and use the TechDraw DraftView tool...
NewJoker thanks a lot for your help.
So you mean that I have to use the Sketcher WB then the Draft WB and finaly the TechDraw WB ?
I will try it ASAP.
User avatar
NewJoker
Veteran
Posts: 3014
Joined: Sun Oct 11, 2020 7:49 pm

Re: export a sloped line from TechDraw Page to Dxf

Post by NewJoker »

manos wrote: Mon Jun 27, 2022 5:36 am So you mean that I have to use the Sketcher WB then the Draft WB and finaly the TechDraw WB ?
Yes, you could draw this line in the Draft workbench but you would have to know the endpoint coordinates so it’s easier to draw it in the Sketcher and then convert it to the Draft object.
domad
Veteran
Posts: 2051
Joined: Mon Jun 22, 2020 12:16 pm

Re: export a sloped line from TechDraw Page to Dxf

Post by domad »

manos wrote: Sat Jun 25, 2022 4:57 pm ......
Hi manos, greetings to the Community!
It is possible to create what you ask directly in TechDraw without generating any drawing as a base.
In the attached example the point (created in the "Tree view") was used only to create an empty view in the TechDraw page since the points (Draft and / or Sketcher) are not projected (since the point is an immeasurable entity).
Once the view has been created in TechDraw just create a cosmetic point with coordinates [X = 0, Y = 0], which will be positioned at the center of the view, and another cosmetic point from which we will obtain the coordinates, knowing the angle and the radius, with a simple trigonometric calculation (in the image the setting of the trigonometric calculation and the result), now just use the cosmetic extensions to create the remaining drawing.
Unfortunately exporting to * .dxf does not give the desired results but exporting to * .pdf and * .svg seems satisfactory.
Attachments
Drawing in TechDraw without projected objects.FCStd
(20.57 KiB) Downloaded 11 times
Drawing_in_TechDraw_without_projected_object.png
Drawing_in_TechDraw_without_projected_object.png (183.49 KiB) Viewed 696 times
manos
Posts: 432
Joined: Thu Nov 12, 2020 10:48 am
Location: Greece

Re: export a sloped line from TechDraw Page to Dxf

Post by manos »

domad wrote: Mon Jun 27, 2022 1:07 pm ..It is possible to create what you ask directly in TechDraw ...
....Unfortunately exporting to * .dxf does not give the desired results but exporting to * .pdf and * .svg seems satisfactory.
Thanks Domad for the help but at LaserCutter they do not accept Svg files. In fact they accept only :dwg, dxf. cdr, ai, top, step formats
User avatar
wandererfan
Veteran
Posts: 6265
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: export a sloped line from TechDraw Page to Dxf

Post by wandererfan »

manos wrote: Sat Jun 25, 2022 4:57 pm Is there any way to add a line (or a line of text) to a TechDraw Page with the following 2 qualities:
1) Have a slope e.g 49 degrees.
2) Be exported to the Dxf file created from that page, keeping its slope.
git commit cos lines 460d153d6c adds the ability to export cosmetic lines.
Attachments
dxfDiamDiagTest.png
dxfDiamDiagTest.png (81.81 KiB) Viewed 599 times
Post Reply