Help! Can't get Draft Array to work

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!
Post Reply
sozoplamo
Posts: 4
Joined: Sat Jun 12, 2021 4:07 pm

Help! Can't get Draft Array to work

Post by sozoplamo »

Hi,
I am pretty new to freecad and I am just trying out the draft array function.
I am trying to build a caterpillar track using draft array but I can't seem to get it to follow the path.
I get a very exploded view even when i try to get the individual tract link to align with the path. Moreover it seemed to be offset from the path.
My version is 0.19, Windows 64bit and the print screen and file are attached as per follows.
Would appreciate if any of the gurus here could provide me a tip or 2!!!
Regards,
Jeremy
Attachments
track draft array.FCStd
Freecad array file
(198.54 KiB) Downloaded 13 times
Badly exploded misaligned tracks
Badly exploded misaligned tracks
Capture tracks.JPG (48.84 KiB) Viewed 567 times
User avatar
Willem
Veteran
Posts: 1854
Joined: Fri Aug 12, 2016 3:27 pm
Location: Lisse, The Netherlands

Re: Help! Can't get Draft Array to work

Post by Willem »

chrisb
Veteran
Posts: 54201
Joined: Tue Mar 17, 2015 9:14 am

Re: Help! Can't get Draft Array to work

Post by chrisb »

Hi and welcome to the forum!

It works here if I delete and recreate the PathArray. So it may depend on your version.

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.24825 (Git)
Build type: Release
Branch: master
Hash: ccc4151b3020969450325466e385850783795325
Python version: 3.9.2
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.1
Locale: C/Default (C)

But there are more problems in your model: You have main planes outside of a body and reference them from inside. Look at the dependency graph to get this sorted.
For my taste an absolute no go is the way you renamed the sketches: Sketch117 has the label Sketch118, Sketch117 has the label Sketch116. What is your intention with these horrible names?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
sozoplamo
Posts: 4
Joined: Sat Jun 12, 2021 4:07 pm

Re: Help! Can't get Draft Array to work

Post by sozoplamo »

chrisb wrote: Sat Jun 12, 2021 8:33 pm Hi and welcome to the forum!

It works here if I delete and recreate the PathArray. So it may depend on your version.

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.24825 (Git)
Build type: Release
Branch: master
Hash: ccc4151b3020969450325466e385850783795325
Python version: 3.9.2
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.1
Locale: C/Default (C)

But there are more problems in your model: You have main planes outside of a body and reference them from inside. Look at the dependency graph to get this sorted.
For my taste an absolute no go is the way you renamed the sketches: Sketch117 has the label Sketch118, Sketch117 has the label Sketch116. What is your intention with these horrible names?
Hi Chris,
I mapped the track path from another body and created the tracks in the second body. Deleted the first body after that, which explains why I have weird sketch names.

Thanks for the tutorials! I will try them out at the next possible opportunity!

OS: Windows 10 Version 2004
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/Singapore (en_SG)
sozoplamo
Posts: 4
Joined: Sat Jun 12, 2021 4:07 pm

Re: Help! Can't get Draft Array to work

Post by sozoplamo »

Thanks for the tips guys!
I managed to get the draft array working, but the curves seems misaligned.
Anyway for me to get this working?

OS: Windows 10 Version 2004
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/Singapore (en_SG)
Attachments
track draft array.FCStd
(131.94 KiB) Downloaded 11 times
tracks misaligned 2.JPG
tracks misaligned 2.JPG (31.2 KiB) Viewed 492 times
tracks misaligned.JPG
tracks misaligned.JPG (43.27 KiB) Viewed 492 times
User avatar
Roy_043
Veteran
Posts: 8550
Joined: Thu Dec 27, 2018 12:28 pm

Re: Help! Can't get Draft Array to work

Post by Roy_043 »

The source object needs to be properly aligned to get a better result. I have transformed (Std_TransformManip) the Body by eye, and then I have nested it in a Std_Part. The Part is in the default position, that is important. Of course I have also 'unnested' the path object from the Body. Note that the result will never be 100% accurate.
Attachments
track draft array roy.FCStd
(138.4 KiB) Downloaded 12 times
chrisb
Veteran
Posts: 54201
Joined: Tue Mar 17, 2015 9:14 am

Re: Help! Can't get Draft Array to work

Post by chrisb »

Results are usually best (though not exact, see Roy's comment) if you place the middle of the two rotation points in the center. In this case you should have aligned the whole object around the center of the coordinate system.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 54201
Joined: Tue Mar 17, 2015 9:14 am

Re: Help! Can't get Draft Array to work

Post by chrisb »

sozoplamo wrote: Sun Jun 13, 2021 2:16 am I managed to get the draft array working
What did you finally change to make the wildly splattered PathArray into a chain?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
sozoplamo
Posts: 4
Joined: Sat Jun 12, 2021 4:07 pm

Re: Help! Can't get Draft Array to work

Post by sozoplamo »

chrisb wrote: Sun Jun 13, 2021 10:11 am
sozoplamo wrote: Sun Jun 13, 2021 2:16 am I managed to get the draft array working
What did you finally change to make the wildly splattered PathArray into a chain?
Hi Chris,
I deleted the sketch and drew it again.
Edited the pad to the origins as well which arranged it pretty decently albeit a little misaligned on the radius.
I further edited it by using Roy's comment and placed the origin smack in the center of the pad which arranged it really well!
One small obstacle I had, was that I tried to attach it into assembly 4, but it couldnt see it as a body. I ended up doing a work around by saving it as a step file and manually arranging it as I cant get the coordinate system out. Worked out pretty well though.
Attachments
Capture tank.JPG
Capture tank.JPG (103.7 KiB) Viewed 405 times
tracks perfect.JPG
tracks perfect.JPG (176.76 KiB) Viewed 405 times
Post Reply