Wire is not closed freecad ошибка

HardRock

Posts: 132
Joined: Tue Mar 13, 2018 5:50 am
Location: Russian Federation

BUG: Wire is not closed (but it should be closed)

There is flat surface (V-slot 2020 profile).
Need to make 2040 profile.

Edges was selected and using Defraturing tool, extracted and joined from original profile, mirrored and positioned to make other side of new profile.
Then sketch was created.
Trailing points was imported as external geometry, then new connection geometry was created. Sketch has zero freedom.
Now we need to make new face with new 2040 profile for able to extrude it for required length.
The problem is that resulting wires not closed. But it definitly should was closed. Seems like a bug.

OS: Ubuntu 18.04.4 LTS (Unity:Unity7:ubuntu/unity)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: d5f6c096b8089d5835a22a80667b00eda6721526
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Russian/Russia (ru_RU)

Attachments
bug_wire_is_not_closed.FCStd
(39.9 KiB) Downloaded 51 times

drmacro

Veteran
Posts: 7483
Joined: Sun Mar 02, 2014 4:35 pm

Re: BUG: Wire is not closed (but it should be closed)

Post

by drmacro » Wed Nov 25, 2020 6:43 pm

Hmm…the object called Block fails geometry check.

Snip macro screenshot-f21b67.png
Snip macro screenshot-f21b67.png (144.04 KiB) Viewed 5098 times

And the sketch Connection clearly not closed:

Snip macro screenshot-2b4aff.png
Snip macro screenshot-2b4aff.png (80.93 KiB) Viewed 5098 times

Star Trek II: The Wrath of Khan: Spock: «…His pattern indicates two-dimensional thinking.»

HardRock

Posts: 132
Joined: Tue Mar 13, 2018 5:50 am
Location: Russian Federation

Re: BUG: Wire is not closed (but it should be closed)

Post

by HardRock » Wed Nov 25, 2020 6:57 pm

Sketch should not be closed, this is just wires, connected to another.

Self-intersection errors appears after connecting edges. This should not be so.
Wire is not closed error may be result of incorrect edges connection. But all edges are extracted from good face, as you can see.

You may dig all the way from original face, that contain no errors.

Object «Block» is result of Draft — Upgrade. In fact this is compound.

Code: Select all

22:00:14  Upgrade objects
22:00:14  Found several non-treatable objects: creating compound

HardRock

Posts: 132
Joined: Tue Mar 13, 2018 5:50 am
Location: Russian Federation

Re: BUG: Wire is not closed (but it should be closed)

Post

by HardRock » Wed Nov 25, 2020 7:54 pm

— Sir, our rocket should fly on 10 000 kilometers at 1000 km/h speed, but it not possible because jet engine won’t start, we must report to developers!
— No problem, just disassemble yout rocket, put parts in a car and drive wherewer you want.
— But Sir, it will took at least x1000 times longer…
— Who care your time if rocket will apear where you want? Probably you don’t need jet engine at all.
:lol: :lol: :lol:

How are yout do that? Step by step. Sketch has no constraints, dimensions may be accidentally changed while editing.

drmacro

Veteran
Posts: 7483
Joined: Sun Mar 02, 2014 4:35 pm

Re: BUG: Wire is not closed (but it should be closed)

Post

by drmacro » Wed Nov 25, 2020 8:13 pm

HardRock wrote: ↑Wed Nov 25, 2020 7:54 pm
— Sir, our rocket should fly on 10 000 kilometers at 1000 km/h speed, but it not possible because jet engine won’t start, we must report to developers!
— No problem, just disassemble yout rocket, put parts in a car and drive wherewer you want.
— But Sir, it will took at least x1000 times longer…
— Who care your time if rocket will apear where you want? Probably you don’t need jet engine at all.
:lol: :lol: :lol:

How are yout do that? Step by step. Sketch has no constraints, dimensions may be accidentally changed while editing.

335 degrees of freedom? You want I should constrain it for you? Sorry, I need to rearrange my sock drawer. :mrgreen:
If I were to constrain, I’d remove all symmetric geometry, creating multiple sketches of symmetric pieces and pad/extrude (I’d use Part Design workbench)
This would minimize and optimize the constraining.

As to how I did this particular model:

I got rid of all but the V20x20P feature and connection sketch

  • Select it Draft workbench, use convert between draft objects and sketch.
  • Use space to hide V20x20P
  • Copy and paste sketch
  • open last sketch
  • use move tool to move 20mm to the right.
  • close sketch
  • select both sketches
  • use Sketch merge sketches tool
  • hide first 2 sketches
  • open the new sketch
  • remove unwanted geometry
  • Import external from connection sketch
  • trace over as needed
  • remove external geometry of the connection
  • close sketch
  • delete connection sketch
  • extrude

Star Trek II: The Wrath of Khan: Spock: «…His pattern indicates two-dimensional thinking.»

openBrain

Veteran
Posts: 8902
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: BUG: Wire is not closed (but it should be closed)

Post

by openBrain » Wed Nov 25, 2020 8:13 pm

HardRock wrote: ↑Wed Nov 25, 2020 6:26 pm
The problem is that resulting wires not closed. But it definitly should was closed. Seems like a bug.

Your ‘Edge001 (Mirror #2)’ has a weird Normal Z value of -0.119209 nm (nanometers !). Maybe there are other similar problems that prevent it to work correctly. ;)

HardRock

Posts: 132
Joined: Tue Mar 13, 2018 5:50 am
Location: Russian Federation

Re: BUG: Wire is not closed (but it should be closed)

Post

by HardRock » Wed Nov 25, 2020 8:38 pm

openBrain wrote: ↑Wed Nov 25, 2020 8:13 pm

HardRock wrote: ↑Wed Nov 25, 2020 6:26 pm
The problem is that resulting wires not closed. But it definitly should was closed. Seems like a bug.

Your ‘Edge001 (Mirror #2)’ has a weird Normal Z value of -0.119209 nm (nanometers !). Maybe there are other similar problems that prevent it to work correctly. ;)

Could it be a result of selecting not only edges but vertices too? I dont know where it comes.

Using Defeaturing WB you may select connected separate edges and group it together to operate as one edge:
1. Manually select edges
2. Click «add selected Edges to list»
3. Click «create a copy of the In List edges»

So as above, i have made presence edges, then mirror them and use sketch to draw extra edges that not come from original part. In sketch external geometry was used. Problem has appeared when trying to connect all resulting edges togerter.

Interesting fact that when converting edges to sketch using Drafw WB, constarints like point and vertial / horizontal added automatically, exept points where sketch connected to extrenal edges.


Go to FreeCAD


r/FreeCAD

FreeCAD on Reddit: a community dedicated to the open-source, extensible & scriptable parametric 3D CAD/CAM/FEM modeler.




Members





Online



Help with «Wire not closed» error

I’ve been modelling this shape and I did all constrainsts in the sketch. The sketch is green and complete. However, I can’t model it because «Wire is not closed». I’ve tried the «Verify sketch» option but that didn’t find anything. I’ve zoomed into the lines and tried to find anything.

Keep in mind, this is my first time using the software.

Edit: I think the file is not «importable». Let me know how I can show you the file (what format), I will upload it.

View post on imgur.com

Is there an existing issue for this?

  • I have searched the existing issues

Forums discussion

No response

Version

0.20 (Release)

Full version info

[code]
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * Curves 0.6.8
  * ExtremeProLight 1.5.0
  * fasteners 0.4.55
  * Glass
  * Help 1.0.3
  * OpticsWorkbench 1.0.9
  * POV-Ray-Rendering
  * QuickMeasure 2022.10.28
  * Render 2023.2.2
  * Rocket 2.8.6
  * Silk 1.0.0
  * ThreadProfile 1.84.0
  * toSketch 1.0.1
  * workfeature
[/code]

Subproject(s) affected?

PartDesign

Issue description

A simple sketch cannot be padded. The sketch is fully constrained and wire is closed.
Same project opened in version 0.19 has no issues and padding works.

After padding in 0.19, opening the project in 0.20.1 shows the pad properly without errors. If tried to modify the pad spits error «Wire not closed» and marks the pad as having an issue.

Attached is the project. Try modifying the sketch to replicate the issue.

wire not closed
shower redirect.zip

Anything else?

Attached the project file in the issue section. (shower redirect.zip)

Code of Conduct

  • I agree to follow this project’s Code of Conduct

MakeWithTech

Loading

HardRock

Posts: 132
Joined: Tue Mar 13, 2018 5:50 am
Location: Russian Federation

BUG: Wire is not closed (but it should be closed)

There is flat surface (V-slot 2020 profile).
Need to make 2040 profile.

Edges was selected and using Defraturing tool, extracted and joined from original profile, mirrored and positioned to make other side of new profile.
Then sketch was created.
Trailing points was imported as external geometry, then new connection geometry was created. Sketch has zero freedom.
Now we need to make new face with new 2040 profile for able to extrude it for required length.
The problem is that resulting wires not closed. But it definitly should was closed. Seems like a bug.

OS: Ubuntu 18.04.4 LTS (Unity:Unity7:ubuntu/unity)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: d5f6c096b8089d5835a22a80667b00eda6721526
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Russian/Russia (ru_RU)

Attachments
bug_wire_is_not_closed.FCStd
(39.9 KiB) Downloaded 41 times

drmacro

Veteran
Posts: 6971
Joined: Sun Mar 02, 2014 4:35 pm

Re: BUG: Wire is not closed (but it should be closed)

Post

by drmacro » Wed Nov 25, 2020 6:43 pm

Hmm…the object called Block fails geometry check.

Snip macro screenshot-f21b67.png
Snip macro screenshot-f21b67.png (144.04 KiB) Viewed 4440 times

And the sketch Connection clearly not closed:

Snip macro screenshot-2b4aff.png
Snip macro screenshot-2b4aff.png (80.93 KiB) Viewed 4440 times

Star Trek II: The Wrath of Khan: Spock: «…His pattern indicates two-dimensional thinking.»

HardRock

Posts: 132
Joined: Tue Mar 13, 2018 5:50 am
Location: Russian Federation

Re: BUG: Wire is not closed (but it should be closed)

Post

by HardRock » Wed Nov 25, 2020 6:57 pm

Sketch should not be closed, this is just wires, connected to another.

Self-intersection errors appears after connecting edges. This should not be so.
Wire is not closed error may be result of incorrect edges connection. But all edges are extracted from good face, as you can see.

You may dig all the way from original face, that contain no errors.

Object «Block» is result of Draft — Upgrade. In fact this is compound.

Code: Select all

22:00:14  Upgrade objects
22:00:14  Found several non-treatable objects: creating compound

HardRock

Posts: 132
Joined: Tue Mar 13, 2018 5:50 am
Location: Russian Federation

Re: BUG: Wire is not closed (but it should be closed)

Post

by HardRock » Wed Nov 25, 2020 7:54 pm

— Sir, our rocket should fly on 10 000 kilometers at 1000 km/h speed, but it not possible because jet engine won’t start, we must report to developers!
— No problem, just disassemble yout rocket, put parts in a car and drive wherewer you want.
— But Sir, it will took at least x1000 times longer…
— Who care your time if rocket will apear where you want? Probably you don’t need jet engine at all.
:lol: :lol: :lol:

How are yout do that? Step by step. Sketch has no constraints, dimensions may be accidentally changed while editing.

drmacro

Veteran
Posts: 6971
Joined: Sun Mar 02, 2014 4:35 pm

Re: BUG: Wire is not closed (but it should be closed)

Post

by drmacro » Wed Nov 25, 2020 8:13 pm

HardRock wrote: ↑Wed Nov 25, 2020 7:54 pm
— Sir, our rocket should fly on 10 000 kilometers at 1000 km/h speed, but it not possible because jet engine won’t start, we must report to developers!
— No problem, just disassemble yout rocket, put parts in a car and drive wherewer you want.
— But Sir, it will took at least x1000 times longer…
— Who care your time if rocket will apear where you want? Probably you don’t need jet engine at all.
:lol: :lol: :lol:

How are yout do that? Step by step. Sketch has no constraints, dimensions may be accidentally changed while editing.

335 degrees of freedom? You want I should constrain it for you? Sorry, I need to rearrange my sock drawer. :mrgreen:
If I were to constrain, I’d remove all symmetric geometry, creating multiple sketches of symmetric pieces and pad/extrude (I’d use Part Design workbench)
This would minimize and optimize the constraining.

As to how I did this particular model:

I got rid of all but the V20x20P feature and connection sketch

  • Select it Draft workbench, use convert between draft objects and sketch.
  • Use space to hide V20x20P
  • Copy and paste sketch
  • open last sketch
  • use move tool to move 20mm to the right.
  • close sketch
  • select both sketches
  • use Sketch merge sketches tool
  • hide first 2 sketches
  • open the new sketch
  • remove unwanted geometry
  • Import external from connection sketch
  • trace over as needed
  • remove external geometry of the connection
  • close sketch
  • delete connection sketch
  • extrude

Star Trek II: The Wrath of Khan: Spock: «…His pattern indicates two-dimensional thinking.»

openBrain

Veteran
Posts: 8604
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: BUG: Wire is not closed (but it should be closed)

Post

by openBrain » Wed Nov 25, 2020 8:13 pm

HardRock wrote: ↑Wed Nov 25, 2020 6:26 pm
The problem is that resulting wires not closed. But it definitly should was closed. Seems like a bug.

Your ‘Edge001 (Mirror #2)’ has a weird Normal Z value of -0.119209 nm (nanometers !). Maybe there are other similar problems that prevent it to work correctly. ;)

HardRock

Posts: 132
Joined: Tue Mar 13, 2018 5:50 am
Location: Russian Federation

Re: BUG: Wire is not closed (but it should be closed)

Post

by HardRock » Wed Nov 25, 2020 8:38 pm

openBrain wrote: ↑Wed Nov 25, 2020 8:13 pm

HardRock wrote: ↑Wed Nov 25, 2020 6:26 pm
The problem is that resulting wires not closed. But it definitly should was closed. Seems like a bug.

Your ‘Edge001 (Mirror #2)’ has a weird Normal Z value of -0.119209 nm (nanometers !). Maybe there are other similar problems that prevent it to work correctly. ;)

Could it be a result of selecting not only edges but vertices too? I dont know where it comes.

Using Defeaturing WB you may select connected separate edges and group it together to operate as one edge:
1. Manually select edges
2. Click «add selected Edges to list»
3. Click «create a copy of the In List edges»

So as above, i have made presence edges, then mirror them and use sketch to draw extra edges that not come from original part. In sketch external geometry was used. Problem has appeared when trying to connect all resulting edges togerter.

Interesting fact that when converting edges to sketch using Drafw WB, constarints like point and vertial / horizontal added automatically, exept points where sketch connected to extrenal edges.

Forum rules
and Helpful information

User avatar

thomas-neemann

Veteran
Posts: 7646
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE

openBrain

Veteran
Posts: 8604
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Newbie problem: wire is not closed (file attached)

Post

by openBrain » Thu Nov 04, 2021 3:10 pm

exsolvespacer wrote: ↑Thu Nov 04, 2021 2:44 pm
I am trying to pad «Sketch2» in the attached file but it keeps saying «wire is not closed». Why does it do this? The wire *is* closed as far as my newbie eyes can tell me. What am I doing wrong?

Thanks.

I can’t get this message. What version of FreeCAD are you using ?
Sketch2 is correctly closed but the document is stuck in a weird state. I have to force recompute to be able to extrude (RMB on document name in the tree -> Mark to recompute -> ‘F5’). After that I can pad, though I have to reverse the Pad to avoid creating multiple objects which isn’t allowed.

exsolvespacer

Posts: 156
Joined: Sat Jan 23, 2021 1:15 pm

Re: Newbie problem: wire is not closed (file attached)

Post

by exsolvespacer » Thu Nov 04, 2021 3:25 pm

Thanks again.

The suggestions have helped me find the problem. I recreated the strange shape and padded it out and I realised that previously I had a «defining geometry» line and I also had a normal polyline *on top* of the defining geometry line.

This meant there were 2 lines instead of 1 in the same place.

At least I hope that was the problem. Thanks again.

openBrain

Veteran
Posts: 8604
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Newbie problem: wire is not closed (file attached)

Post

by openBrain » Thu Nov 04, 2021 3:29 pm

exsolvespacer wrote: ↑Thu Nov 04, 2021 3:14 pm
I have the stable RealThunder branch because someone on YouTube convinced me that there was a large problem with Freecad in the way objects were dependent on one another.

Kind of things why we request to give full FreeCAD info when asking for help. Please read link in the red banner to learn more.

exsolvespacer wrote: ↑Thu Nov 04, 2021 3:25 pm
Thanks again.

The suggestions have helped me find the problem. I recreated the strange shape and padded it out and I realised that previously I had a «defining geometry» line and I also had a normal polyline *on top* of the defining geometry line.

This meant there were 2 lines instead of 1 in the same place.

At least I hope that was the problem. Thanks again.

No that wasn’t the problem. FreeCAD safely ignores the external geometries when operating on sketches. As I told, just recomputing your document was enough for me.

exsolvespacer

Posts: 156
Joined: Sat Jan 23, 2021 1:15 pm

Re: Newbie problem: wire is not closed (file attached)

Post

by exsolvespacer » Thu Nov 04, 2021 3:58 pm

openBrain wrote: ↑Thu Nov 04, 2021 3:29 pm

exsolvespacer wrote: ↑Thu Nov 04, 2021 3:14 pm
I have the stable RealThunder branch because someone on YouTube convinced me that there was a large problem with Freecad in the way objects were dependent on one another.

Kind of things why we request to give full FreeCAD info when asking for help. Please read link in the red banner to learn more.

exsolvespacer wrote: ↑Thu Nov 04, 2021 3:25 pm
Thanks again.

The suggestions have helped me find the problem. I recreated the strange shape and padded it out and I realised that previously I had a «defining geometry» line and I also had a normal polyline *on top* of the defining geometry line.

This meant there were 2 lines instead of 1 in the same place.

At least I hope that was the problem. Thanks again.

No that wasn’t the problem. FreeCAD safely ignores the external geometries when operating on sketches. As I told, just recomputing your document was enough for me.

Okay, thanks for clearing that up.

I will recompute next time I have a strange problem. All the best!

Skip to content

Usage

  1. Press the. Close shape button.
  2. Use the Z then W keyboard shortcut.
  3. Use the Sketch → Sketcher tools → Close shape entry from the top menu.

How do I close a polyline in FreeCAD?

Pressing Esc or clicking the right mouse button before closing the polyline to a loop ends the current polyline and you can continue with a new one. Pressing Esc or clicking the right mouse button again ends the polyline function.

How do I merge lines in FreeCAD?

Select two or more Draft Lines and/or Draft Wires.

There are several ways to invoke the command:

  1. Press the. Draft Join button.
  2. Select the Modification → Join option from the menu.
  3. Use the keyboard shortcut: J then O.

How do I fill a sketch in FreeCAD?

FreeCAD: How to create solid from a sketch?

  1. Click [File]-[New] in menu bar and create new document .
  2. Move to Part Design workbench.
  3. Select “New Sketch” …
  4. Select “Circle” …
  5. Click the center of the circle and the center becomes selected state(green color). …
  6. Coordinates of the center point are displayed on 3D View as numbers.

How do I validate a sketch in FreeCAD?

To open the validate sketch utility do one of the following:

  1. Select the Sketch → Validate sketch… option from the menu.
  2. Press the. Validate sketch button (not available in the PartDesign Workbench).

What is a wire in Freecad?

Description. The. Draft Wire command creates a polyline, a sequence of several connected line segments. The command can also be used to join Draft Lines and Draft Wires. The corners of a Draft Wire can be filleted (rounded) or chamfered by changing its DataFillet Radius or DataChamfer Size respectively.

How do I merge two sketches in Freecad?

Usage

  1. Select two or more sketches.
  2. Click on Merge sketches or choose Sketch → Merge sketches from the top menu.
  3. The resulting sketch will be created as a separate new object.

How do you extrude in Freecad?

Usage

  1. Select the shape(s) in the 3D view or in the Model tree view.
  2. Click on the Part Extrude button in the toolbar, or go to the Part → Extrude menu.
  3. Set the direction and length and optionally other parameters (see the following Parameters section for more details).
  4. Click OK.

Понравилась статья? Поделить с друзьями:
  • Wipe cache partition ошибка и перезагрузка
  • Winzip self extractor header corrupt ошибка как исправить
  • Winx club ошибка при запуске приложения 0xc000007b
  • Winx club ошибка msvcp71 dll решение
  • Winx club игра 2006 ошибка msvcr71 dll