Sezione Dinamica

Forum per le domande e le discussioni in Italiano
Forum rules
regole del forum e le informazioni utili

Importante: PRIMA di chiedere aiuto leggete qui!
drmacro
Veteran
Posts: 8865
Joined: Sun Mar 02, 2014 4:35 pm

Re: Sezione Dinamica

Post by drmacro »

Just an FYI, the solid created is not valid. (Using the version of the macro in Addon manager)
Snip macro screenshot-1aadfa.png
Snip macro screenshot-1aadfa.png (321.49 KiB) Viewed 2336 times


OS: Debian GNU/Linux 10 (buster) (XFCE/lightdm-xsession)
Word size of FreeCAD: 64-bit
Version: 0.20.27078 (Git)
Build type: Release
Branch: master
Hash: b836712c83556b4f30d3404e8ab9f5192979561c
Python version: 3.7.3
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.6.0
Locale: English/UnitedStates (en_US)
Attachments
PlayRevolve.FCStd
(24.79 KiB) Downloaded 94 times
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

Re: Sezione Dinamica

Post by TheMarkster »

drmacro wrote: Sun Jan 16, 2022 1:25 pm Just an FYI, the solid created is not valid. (Using the version of the macro in Addon manager)
While the macro is still open, in the tree view make a duplicate of the temporary object it creates (in cut mode), then close the macro. This object is a compound that contains 2 duplicate objects. Select the object, in part workbench -> explode compound. You get 2 identical objects, which explains the self-intersections of the compound.

Instead of exploding, select the object and use part union/fusion on it, you then get a valid solid.
drmacro
Veteran
Posts: 8865
Joined: Sun Mar 02, 2014 4:35 pm

Re: Sezione Dinamica

Post by drmacro »

TheMarkster wrote: Sun Jan 16, 2022 7:42 pm
drmacro wrote: Sun Jan 16, 2022 1:25 pm Just an FYI, the solid created is not valid. (Using the version of the macro in Addon manager)
While the macro is still open, in the tree view make a duplicate of the temporary object it creates (in cut mode), then close the macro. This object is a compound that contains 2 duplicate objects. Select the object, in part workbench -> explode compound. You get 2 identical objects, which explains the self-intersections of the compound.

Instead of exploding, select the object and use part union/fusion on it, you then get a valid solid.
I opened all that up so I could make one screen shot. The fails happened when the macro was completed. At least the ones shown in the report view when Cut objects is selected:

Code: Select all

Recompute failed! Please check report view.
14:47:57  <Part> ViewProviderExt.cpp(1306): Cannot compute Inventor representation for the shape of PlayRevolve#Compound: Bnd_Box is void
But, I see what you mean...not obvious to the casual observer though. ;)
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
Chris_G
Veteran
Posts: 2579
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: Sezione Dinamica

Post by Chris_G »

The section shape of your example should have 14 faces, it has 28.
So, I suppose the macro cuts both the body AND the last feature of the body.
drmacro
Veteran
Posts: 8865
Joined: Sun Mar 02, 2014 4:35 pm

Re: Sezione Dinamica

Post by drmacro »

Chris_G wrote: Sun Jan 16, 2022 9:39 pm The section shape of your example should have 14 faces, it has 28.
So, I suppose the macro cuts both the body AND the last feature of the body.
As @TheMarkster pointed out there are 2 copies of the object in the retained solid.

It seems to me it should be the fore and aft of the cut object, rather than two copies of the aft.

Maybe something to do with the error reported when the checkbox is ticked.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Sezione Dinamica

Post by Kunda1 »

Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Mark81
Posts: 121
Joined: Tue Jul 12, 2022 2:21 pm

Re: Sezione Dinamica

Post by Mark81 »

Segnalo solo che l'installazione della macro tramite Addon Manager restituisce il seguente errore sul mio sistema:

Code: Select all

17:22:51  Traceback (most recent call last):
17:22:51    File "/snap/freecad/530/usr/Mod/AddonManager/AddonManager.py", line 916, in launch_installer_gui
17:22:51      self.installer_gui.success.connect(self.on_package_status_changed)
17:22:51  RuntimeError: '__init__' method of object's base class (MacroInstallerGUI) not called.
Ovviamente posso fare copia-incolla del codice, ma volevo solo informare del malfunzionamento dell'installer.

Code: Select all

OS: Ubuntu Core 20 (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31509 (Git) Snap 530
Build type: Release
Branch: master
Hash: d63ac0f7f6a1bcb316eebe15ecdf23ce7dd62d4d
Python 3.8.10, Qt 5.15.5, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.3
Locale: Italian/Italy (it_IT)
Installed mods: 
  * kicadStepUpMod 10.16.8
  * fasteners 0.4.52
  * Curves 0.6.5
  * 3D_Printing_Tools
  * CurvedShapes 1.0.4
  * Manipulator 1.4.9
  * Assembly4 0.12.5
  * fcgear 1.0.0
  * A2plus 0.4.60g
  * Defeaturing 1.2.0
  * Part-o-magic 1.0.0
  * POV-Ray-Rendering (Disabled)
  * Render 2022.4.0
Post Reply