Cannot Pad Sketch - getWireDirection Error

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!
User avatar
code-surfer-dev
Posts: 5
Joined: Sun Nov 06, 2022 5:13 pm
Location: New York
Contact:

Cannot Pad Sketch - getWireDirection Error

Post by code-surfer-dev »

I am a noob at FreeCAD, and am running the following:

Code: Select all

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git)
Build type: Release
Branch: (HEAD detached at 0.20.1)
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: C/Default (C)
My sketch is fully constrained and closed, and when I try to pad my sketch, I get the following error:

getWireDirection: Failed to create face from wire, Internal name: Pad

I have tried searching the forums for different variations on the error message, but cannot find any other posts, although I figure someone else must have had the same problem before, so apologies in advance for that. I have attached a screenshot and a copy of my file. Any help is greatly appreciated.

Many thanks!
Attachments
construction-geometry-training.FCStd
(20.65 KiB) Downloaded 18 times
Screenshot 2022-11-29 at 3.43.54 PM.png
Screenshot 2022-11-29 at 3.43.54 PM.png (827.15 KiB) Viewed 883 times
Be curious, not judgemental. Ted Lasso, falsely attributed to Walt Whitman
drmacro
Veteran
Posts: 8984
Joined: Sun Mar 02, 2014 4:35 pm

Re: Cannot Pad Sketch - getWireDirection Error

Post by drmacro »

The sketch is WAY too complicated. Make multiple sketches.

And, as it is would create multiple solids with Pad.

When you create a PD Body, you have defined a container that will contain a single, solitary, cumulative solid. Each feature (Pad/Pocket/etc. operation) in the Body is cumulative (and the result of each feature is NOT an atomic solid). The result of each feature MUST result in a single solitary solid (that is an accumulation of it's predecessors).
Last edited by drmacro on Tue Nov 29, 2022 9:23 pm, edited 1 time in total.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
Roy_043
Veteran
Posts: 8552
Joined: Thu Dec 27, 2018 12:28 pm

Re: Cannot Pad Sketch - getWireDirection Error

Post by Roy_043 »

In the notch on the right there is a circle with R=0.
Bance
Veteran
Posts: 4255
Joined: Wed Feb 11, 2015 3:00 pm
Location: London

Re: Cannot Pad Sketch - getWireDirection Error

Post by Bance »

That sketch is so complex so as to be useless for anything as can be seen by the fact that you can't figure out where the error is.

Can you tell me where circle no 42 is and why it has a 0mm radius?
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Cannot Pad Sketch - getWireDirection Error

Post by GeneFC »

If the zero-radius circle is removed the sketch pads without error.

Capture.JPG
Capture.JPG (27.52 KiB) Viewed 828 times

Yes, the sketch is rather complex, but otherwise there is no real error.

Gene
User avatar
code-surfer-dev
Posts: 5
Joined: Sun Nov 06, 2022 5:13 pm
Location: New York
Contact:

Re: Cannot Pad Sketch - getWireDirection Error

Post by code-surfer-dev »

Thank you Roy_043, Bance, & Gene!

I thought the dot (the circle with a radius of 0) was a point that was showing up due to a glitch in the view LOL.

If @Bance hadn't mentioned that it was Circle 42, I would never have found it. I tried looking through all of the constraints to find a radius constraint of zero, but couldn't see one. If any circle is missing a radius constraint wouldn't that come up as an error, or was the circles radius constrained by it's center?

I'm confused, any advice on how I would locate the zero radius circle on my own in the future would be greatly appreciated.
Be curious, not judgemental. Ted Lasso, falsely attributed to Walt Whitman
User avatar
Shalmeneser
Veteran
Posts: 9560
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Cannot Pad Sketch - getWireDirection Error

Post by Shalmeneser »

This sketch kills FC multiple time.
Suppress the 'point' at the right side.
Attachments
construction-geometry-training_SHALMM.FCStd
(348.07 KiB) Downloaded 16 times
drmacro
Veteran
Posts: 8984
Joined: Sun Mar 02, 2014 4:35 pm

Re: Cannot Pad Sketch - getWireDirection Error

Post by drmacro »

As it happens a point would not have caused the issue, but, as noted a 0 radius circle does.

I would reiterate what I and others said.

Doing this in a single sketch is WAY too complicated. Hundreds of constraints are too extremely tedious to create and difficult to maintain. And making a modification is bound to be a headache.

There are symmetries which also would lighten your work.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
Shalmeneser
Veteran
Posts: 9560
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Cannot Pad Sketch - getWireDirection Error

Post by Shalmeneser »

I'm such a noob trying to use Draft_PointLinkArray.
Part wb is not my best wb.
Attachments
construction-geometry-training_SHALM2.FCStd
(198.79 KiB) Downloaded 11 times
User avatar
code-surfer-dev
Posts: 5
Joined: Sun Nov 06, 2022 5:13 pm
Location: New York
Contact:

Re: Cannot Pad Sketch - getWireDirection Error

Post by code-surfer-dev »

drmacro wrote: Tue Nov 29, 2022 11:37 pm There are symmetries which also would lighten your work.
Many thanks drmacro, I agree on using symmetries and will try that the next time I do something this complex.

Many thanks to everyone else for your feedback.
Be curious, not judgemental. Ted Lasso, falsely attributed to Walt Whitman
Post Reply