Help to make a draft path/wire/spline in 3D space

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
leoheck
Veteran
Posts: 1225
Joined: Tue Mar 13, 2018 5:56 pm
Location: Coffee shop

Re: Help to make a draft path/wire/spline in 3D space

Post by leoheck »

@Bance, @bejant also showed something similar to what you were referring to, here. https://forum.freecadweb.org/viewtopic. ... 969#p56337

Maybe it is possible, I will try to reproduce this.
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Help to make a draft path/wire/spline in 3D space

Post by bejant »

leoheck wrote: Tue Jan 14, 2020 12:52 pm I want to make a path that goes from Point 1 (0, 0, 0) to Point 2 (5, 5, 5) then ends in Point 3 (10, 10, 10) and also use it to sweep a circular path on it creating the duct.

This means that it is moving in three axes at the same time.
I'm not understanding something because connecting these Points gives a resultant path of two parallel line segments, end to end.

Maybe the path is meant to be a conic section through these points? (I've seen the images but they seem to be something different?)
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Help to make a draft path/wire/spline in 3D space

Post by bejant »

If we're talking about the same model, wouldn't the center of the horizontal duct on the -X side of the model be X = -22.5, Y = 0, Z = 17.0 mm and the center of the path at the top of the model would be X = 0, Y = -12.0, Z = 50.0 mm? I think the path could be a quarter ellipse with one end of the major axis at he first point and the end of the minor axis at the second point, but the small duct would be into the larger vertical duct somewhere below the top of the model.

I'm probably imagining this wrong, so let me know...
leoheck
Veteran
Posts: 1225
Joined: Tue Mar 13, 2018 5:56 pm
Location: Coffee shop

Re: Help to make a draft path/wire/spline in 3D space

Post by leoheck »

The last one was just a random example, trying to explain that I want to make a path by connecting points in the 3D space instead of in a plane.

I am definitely not good explaining what my goal is.

In other words, I'm looking for a good/reliable (easy) way to create a 3D wire so I can sweep a path on it using the Part Design Workbench.
mario52
Veteran
Posts: 4693
Joined: Wed May 16, 2012 2:13 pm

Re: Help to make a draft path/wire/spline in 3D space

Post by mario52 »

hi

try Macro_Connect_And_Sweep (ver 00.10 new gui)

Image

mario
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.
leoheck
Veteran
Posts: 1225
Joined: Tue Mar 13, 2018 5:56 pm
Location: Coffee shop

Re: Help to make a draft path/wire/spline in 3D space

Post by leoheck »

This macro looks interesting @mario. How the black wire is created in the video/gif?
mario52
Veteran
Posts: 4693
Joined: Wed May 16, 2012 2:13 pm

Re: Help to make a draft path/wire/spline in 3D space

Post by mario52 »

hi

line draft, line part, edge object, wire, point to point, center mass to center mass ....

but the elbow created (face to face) is full solid not pipe as request

Macro_Connect_And_Sweep_Pipe.png
Macro_Connect_And_Sweep_Pipe.png (21.25 KiB) Viewed 890 times
mario
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
papyblaise
Veteran
Posts: 8003
Joined: Thu Jun 13, 2019 4:28 pm
Location: France

Re: Help to make a draft path/wire/spline in 3D space

Post by papyblaise »

Maibe it's a best idée as mine because you can create an angle to facilate the path for the électric wires
Attachments
cheminey.PNG
cheminey.PNG (92.86 KiB) Viewed 886 times
cheminey.FCStd
(62.21 KiB) Downloaded 22 times
User avatar
Vincent B
Veteran
Posts: 4735
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Help to make a draft path/wire/spline in 3D space

Post by Vincent B »

A smooth duct could be the aim? I used a BlendCurve (CurveWb).
Attachments
duct.FCStd
(135.65 KiB) Downloaded 20 times
Capture.JPG
Capture.JPG (36.91 KiB) Viewed 880 times
User avatar
Vincent B
Veteran
Posts: 4735
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Help to make a draft path/wire/spline in 3D space

Post by Vincent B »

or like that.
Attachments
Capture.JPG
Capture.JPG (27.06 KiB) Viewed 877 times
duct2.FCStd
(269.84 KiB) Downloaded 20 times
Post Reply