use external geometry possibility had lost

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
antondroid
Posts: 37
Joined: Tue Jun 14, 2022 11:48 am

use external geometry possibility had lost

Post by antondroid »

hi,
i had created the body (it's the wall socket), then tryed
1.to create the external plane and apply sketch on it, and find, that external geometry don't draw.
But the sketch itself can be completed, and can be pocketed (as see holes on the body)

2. created sketch on the body face directly, and cannot place external geometry , the same case, sketch itself can be completed, and can be pocketed (as see holes on the body)

they did send me the messages like this one:

Code: Select all

13:11:25  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch006').addExternal("Pocket003","Face56")
13:11:25  Failed to add external geometry: Not able to add external shape element
i had do it like this https://drive.google.com/file/d/1NKlPy7 ... sp=sharing

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: English/United States (en_US)
Installed mods: 
  * A2plus 0.4.56a
  * Assembly4 0.12.3
  * Help 1.0.3
  * lattice2 1.0.0
Attachments
socket_wall_4_sq_test_center_planes.FCStd
(189.45 KiB) Downloaded 21 times
Last edited by antondroid on Sat Aug 06, 2022 12:30 pm, edited 1 time in total.
antondroid
Posts: 37
Joined: Tue Jun 14, 2022 11:48 am

Re: use external geometry possibility had lost

Post by antondroid »

and i have received these error messages constantly, does it normal or there is something wrong in my installation or system?

Code: Select all

03:20:11  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Datum 2.00 mm for the constraint with index 11 is invalid
03:20:11  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch001').setDatum(11,App.Units.Quantity('2.000000 mm'))
03:46:00  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Datum 43.66 mm for the constraint with index 33 is invalid
03:46:00  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch002').setDatum(33,App.Units.Quantity('43.660000 mm'))
03:56:20  Recompute failed! Please check report view.
03:56:20  Recompute failed! Please check report view.
03:56:24  Recompute failed! Please check report view.
04:13:42  Selected external reference plane must be normal to sketch plane
04:13:42  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
04:13:42  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch003').addExternal("Pad001","Face4")
04:13:42  Failed to add external geometry: Not able to add external shape element
10:52:08  Recompute failed! Please check report view.
10:54:36  Recompute failed! Please check report view.
15:37:57  PositionBySupport: AttachEngine3D::calculateAttachedPlacement: need either a conic section edge, or a whole object for ObjectXY-like modes.
11:58:08  Selected external reference plane must be normal to sketch plane
11:58:08  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
11:58:08  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch004').addExternal("Fillet002","Face38")
11:58:08  Failed to add external geometry: Not able to add external shape element
11:58:30  Selected external reference plane must be normal to sketch plane
11:58:30  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
11:58:30  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch004').addExternal("Fillet002","Face38")
11:58:30  Failed to add external geometry: Not able to add external shape element
11:58:50  Non-planar faces are not yet supported for external geometry of sketches
11:58:50  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
11:58:50  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch004').addExternal("Fillet002","Face53")
11:58:50  Failed to add external geometry: Not able to add external shape element
11:58:56  Selected external reference plane must be normal to sketch plane
11:58:56  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
11:58:56  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch004').addExternal("Fillet002","Face38")
11:58:56  Failed to add external geometry: Not able to add external shape element
12:05:01  Selected external reference plane must be normal to sketch plane
12:05:01  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:05:01  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch004').addExternal("Fillet002","Face61")
12:05:01  Failed to add external geometry: Not able to add external shape element
12:05:07  Selected external reference plane must be normal to sketch plane
12:05:07  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:05:07  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch004').addExternal("Fillet002","Face61")
12:05:07  Failed to add external geometry: Not able to add external shape element
12:05:10  Selected external reference plane must be normal to sketch plane
12:05:10  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:05:10  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch004').addExternal("DatumPlane001","Plane")
12:05:10  Failed to add external geometry: Not able to add external shape element
12:05:11  Selected external reference plane must be normal to sketch plane
12:05:11  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:05:11  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch004').addExternal("DatumPlane001","Plane")
12:05:11  Failed to add external geometry: Not able to add external shape element
12:05:12  Selected external reference plane must be normal to sketch plane
12:05:12  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:05:12  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch004').addExternal("Fillet002","Face61")
12:05:12  Failed to add external geometry: Not able to add external shape element
12:05:14  Selected external reference plane must be normal to sketch plane
12:05:14  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:05:14  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch004').addExternal("DatumPlane001","Plane")
12:05:14  Failed to add external geometry: Not able to add external shape element
12:05:15  Selected external reference plane must be normal to sketch plane
12:05:15  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:05:15  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch004').addExternal("DatumPlane001","Plane")
12:05:15  Failed to add external geometry: Not able to add external shape element
12:05:16  Selected external reference plane must be normal to sketch plane
12:05:16  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:05:16  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch004').addExternal("DatumPlane001","Plane")
12:05:16  Failed to add external geometry: Not able to add external shape element
12:05:17  Selected external reference plane must be normal to sketch plane
12:05:17  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:05:17  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch004').addExternal("DatumPlane001","Plane")
12:05:17  Failed to add external geometry: Not able to add external shape element
12:05:20  Non-planar faces are not yet supported for external geometry of sketches
12:05:20  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:05:20  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch004').addExternal("Fillet002","Face50")
12:05:20  Failed to add external geometry: Not able to add external shape element
12:05:22  Selected external reference plane must be normal to sketch plane
12:05:22  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:05:22  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch004').addExternal("DatumPlane001","Plane")
12:05:22  Failed to add external geometry: Not able to add external shape element
12:05:22  Selected external reference plane must be normal to sketch plane
12:05:22  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:05:22  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch004').addExternal("DatumPlane001","Plane")
12:05:22  Failed to add external geometry: Not able to add external shape element
12:05:23  Selected external reference plane must be normal to sketch plane
12:05:23  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:05:23  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch004').addExternal("DatumPlane001","Plane")
12:05:23  Failed to add external geometry: Not able to add external shape element
12:45:35  Non-planar faces are not yet supported for external geometry of sketches
12:45:35  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:45:35  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch005').addExternal("Pocket002","Face67")
12:45:35  Failed to add external geometry: Not able to add external shape element
12:46:06  Selected external reference plane must be normal to sketch plane
12:46:06  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:46:06  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch005').addExternal("Pocket002","Face68")
12:46:06  Failed to add external geometry: Not able to add external shape element
12:48:22  Selected external reference plane must be normal to sketch plane
12:48:22  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:48:22  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch005').addExternal("DatumPlane","Plane")
12:48:22  Failed to add external geometry: Not able to add external shape element
12:48:27  Selected external reference plane must be normal to sketch plane
12:48:27  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:48:27  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch005').addExternal("Pocket002","Face68")
12:48:27  Failed to add external geometry: Not able to add external shape element
12:48:43  Non-planar faces are not yet supported for external geometry of sketches
12:48:43  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:48:43  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch005').addExternal("Pocket002","Face52")
12:48:43  Failed to add external geometry: Not able to add external shape element
12:48:48  Selected external reference plane must be normal to sketch plane
12:48:48  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:48:48  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch005').addExternal("Pocket002","Face68")
12:48:48  Failed to add external geometry: Not able to add external shape element
12:48:54  Selected external reference plane must be normal to sketch plane
12:48:54  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:48:54  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch005').addExternal("Pocket002","Face68")
12:48:54  Failed to add external geometry: Not able to add external shape element
12:57:41  Non-planar faces are not yet supported for external geometry of sketches
12:57:41  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:57:41  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch006').addExternal("Pocket003","Face67")
12:57:41  Failed to add external geometry: Not able to add external shape element
12:57:45  Selected external reference plane must be normal to sketch plane
12:57:45  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:57:45  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch006').addExternal("Pocket003","Face68")
12:57:45  Failed to add external geometry: Not able to add external shape element
12:57:47  Selected external reference plane must be normal to sketch plane
12:57:47  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:57:47  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch006').addExternal("Pocket003","Face68")
12:57:47  Failed to add external geometry: Not able to add external shape element
12:57:50  Selected external reference plane must be normal to sketch plane
12:57:50  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:57:50  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch006').addExternal("Pocket003","Face68")
12:57:50  Failed to add external geometry: Not able to add external shape element
12:57:52  Non-planar faces are not yet supported for external geometry of sketches
12:57:52  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:57:52  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch006').addExternal("Pocket003","Face69")
12:57:52  Failed to add external geometry: Not able to add external shape element
12:58:13  Non-planar faces are not yet supported for external geometry of sketches
12:58:13  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:58:13  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch006').addExternal("Pocket003","Face67")
12:58:13  Failed to add external geometry: Not able to add external shape element
12:58:14  Non-planar faces are not yet supported for external geometry of sketches
12:58:14  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
12:58:14  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch006').addExternal("Pocket003","Face67")
12:58:14  Failed to add external geometry: Not able to add external shape element
13:10:03  Selected external reference plane must be normal to sketch plane
13:10:03  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
13:10:03  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch006').addExternal("Pocket003","Face68")
13:10:03  Failed to add external geometry: Not able to add external shape element
13:10:05  Non-planar faces are not yet supported for external geometry of sketches
13:10:05  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
13:10:05  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch006').addExternal("Pocket003","Face67")
13:10:05  Failed to add external geometry: Not able to add external shape element
13:10:08  Non-planar faces are not yet supported for external geometry of sketches
13:10:08  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
13:10:08  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch006').addExternal("Pocket003","Face69")
13:10:08  Failed to add external geometry: Not able to add external shape element
13:11:18  Selected external reference plane must be normal to sketch plane
13:11:18  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
13:11:18  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch006').addExternal("Pocket003","Face68")
13:11:18  Failed to add external geometry: Not able to add external shape element
13:11:19  Selected external reference plane must be normal to sketch plane
13:11:19  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
13:11:19  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch006').addExternal("Pocket003","Face68")
13:11:19  Failed to add external geometry: Not able to add external shape element
13:11:20  Selected external reference plane must be normal to sketch plane
13:11:20  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
13:11:20  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch006').addExternal("Pocket003","Face68")
13:11:20  Failed to add external geometry: Not able to add external shape element
13:11:25  Non-planar faces are not yet supported for external geometry of sketches
13:11:25  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'ValueError'>: Not able to add external shape element
13:11:25  App.getDocument('socket_wall_4_sq_test_center').getObject('Sketch006').addExternal("Pocket003","Face56")
13:11:25  Failed to add external geometry: Not able to add external shape element
User avatar
Shalmeneser
Veteran
Posts: 9475
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: use external geometry possibility had lost

Post by Shalmeneser »

I don't understand your questions.

But, your sketches are bad :
* you should not repeat the same dimension but instead use geometrical constraints.
* you should not sketch upon face : Topological_naming_problem
* you should fillet/chamfer at the earliest or latest moment.
* you don't need for fillet or chamfer to select all the edges from a line with tangency : one edge will be enough.
Attachments
socket_wall_4_sq_SHALM.FCStd
(78.07 KiB) Downloaded 20 times
Capture d’écran 2022-08-06 150126.jpg
Capture d’écran 2022-08-06 150126.jpg (65.84 KiB) Viewed 836 times
User avatar
Shalmeneser
Veteran
Posts: 9475
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: use external geometry possibility had lost

Post by Shalmeneser »

Attachments
socket_wall_4_sq_SHALM_v2.FCStd
(64.77 KiB) Downloaded 9 times
Capture d’écran 2022-08-06 152009.jpg
Capture d’écran 2022-08-06 152009.jpg (57.82 KiB) Viewed 826 times
antondroid
Posts: 37
Joined: Tue Jun 14, 2022 11:48 am

Re: use external geometry possibility had lost

Post by antondroid »

Shalmeneser wrote: Sat Aug 06, 2022 1:07 pm I don't understand your questions.

But, your sketches are bad :
* you should not repeat the same dimension but instead use geometrical constraints.
* you should not sketch upon face : Topological_naming_problem
* you should fillet/chamfer at the earliest or latest moment.
* you don't need for fillet or chamfer to select all the edges from a line with tangency : one edge will be enough.
thanx so much!

So sad, that these information about topological problem didn't mentioned in tutorial for design part work bench.
you had prevented me to spend much time, i had never do that in my other CAD system,
It seems, that the better i will wait and continue to use Inventor than to start designing this way.
What will be, if i will edit some feature, which i had created few month ago?
will it depends on multiplied errors on all previously designed machine parts? I'm sure - probably it will.
User avatar
Shalmeneser
Veteran
Posts: 9475
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: use external geometry possibility had lost

Post by Shalmeneser »

antondroid wrote: Sat Aug 06, 2022 4:33 pm It seems, that the better i will wait and continue to use Inventor than to start designing this way.
Preventing TNP is a skill useful for any CAD imho.
antondroid
Posts: 37
Joined: Tue Jun 14, 2022 11:48 am

Re: use external geometry possibility had lost

Post by antondroid »

Shalmeneser wrote: Sat Aug 06, 2022 5:01 pm Preventing TNP is a skill useful for any CAD imho.
yes, of coarse, just if i had finished the part, and decided to make fillets and chamfers?
then after some time, somebody asked me to make hole for the wire from the other side?
it mean, that even if will deleted this features, fillets and chamfers, the numbers of the faces still changed, so i will need to create this part from the beginning.

And what will be doing, if i will edit part in assembled machine a year ago? will it depends on other parts?

in other Cad i had never worried about this.
User avatar
Shalmeneser
Veteran
Posts: 9475
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: use external geometry possibility had lost

Post by Shalmeneser »

Fillets and chamfers are usually a problem in FC.

It's always a choice between easy and solid.
antondroid
Posts: 37
Joined: Tue Jun 14, 2022 11:48 am

Re: use external geometry possibility had lost

Post by antondroid »

Shalmeneser wrote: Sat Aug 06, 2022 6:05 pm Fillets and chamfers are usually a problem in FC.
in any way, i didn't understand, why the project geometry links becomes impossible to set, and after i had fillets removed, it still external geometry links was impossible to apply.

to the best clearing the problem i counted with , there is short illustration of this case .
https://www.youtube.com/watch?v=4lUprDk8aSw
Post Reply