Page 1 of 1

export a sloped line from TechDraw Page to Dxf

Posted: Sat Jun 25, 2022 4:57 pm
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.

Re: export a sloped line from TechDraw Page to Dxf

Posted: Mon Jun 27, 2022 12:03 am
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 877 times

Re: export a sloped line from TechDraw Page to Dxf

Posted: Mon Jun 27, 2022 5:36 am
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.

Re: export a sloped line from TechDraw Page to Dxf

Posted: Mon Jun 27, 2022 7:29 am
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.

Re: export a sloped line from TechDraw Page to Dxf

Posted: Mon Jun 27, 2022 1:07 pm
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.

Re: export a sloped line from TechDraw Page to Dxf

Posted: Mon Jun 27, 2022 4:04 pm
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

Re: export a sloped line from TechDraw Page to Dxf

Posted: Thu Jun 30, 2022 1:10 pm
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.