Learning to use the cross-section macro

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
User avatar
Vagulus
Posts: 850
Joined: Tue Jul 14, 2020 7:55 am
Location: Perth, Western Australia

Learning to use the cross-section macro

Post by Vagulus »

OS: Windows 10 Version 2009
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/New Zealand (en_NZ)

I have an assembly (Assembly4) which I am trying to cross-section. I execute the macro and get
220115 X-Section Failure 1.png
220115 X-Section Failure 1.png (74.05 KiB) Viewed 1257 times
I am confused. :? I can see the assembly on the 3D View. What does the error dialog mean by 'no visible solid objects'?
"It is much harder to simplify than to complicate."
Joseph Kimble
mario52
Veteran
Posts: 4692
Joined: Wed May 16, 2012 2:13 pm

Re: Learning to use the cross-section macro

Post by mario52 »

Hi

tray the upgrade by alepho (the creator) cross-section macro

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
User avatar
Vagulus
Posts: 850
Joined: Tue Jul 14, 2020 7:55 am
Location: Perth, Western Australia

Re: Learning to use the cross-section macro

Post by Vagulus »

mario52 wrote: Sat Jan 15, 2022 10:56 am tray the upgrade by alepho (the creator)
I wouldn't know what to do with the code. I installed it with add-on manager assuming that it would be up to date. Where would I get the new version installed?
"It is much harder to simplify than to complicate."
Joseph Kimble
mario52
Veteran
Posts: 4692
Joined: Wed May 16, 2012 2:13 pm

Re: Learning to use the cross-section macro

Post by mario52 »

Hi
Vagulus wrote: Sat Jan 15, 2022 11:05 am I wouldn't know what to do with the code
edit the macro already installed delete the code and paste this code , save and run

no other code

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
User avatar
Vagulus
Posts: 850
Joined: Tue Jul 14, 2020 7:55 am
Location: Perth, Western Australia

Re: Learning to use the cross-section macro

Post by Vagulus »

mario52 wrote: Sat Jan 15, 2022 2:07 pm edit the macro already installed delete the code and paste this code , save and run
Hmmm! :|

Did that but now I don't even get the dialog.

I replaced the code as you said and if I 'Execute' the macro nothing happens at all. If I DLC on the macro the 3D View goes blank and I have to restart FC.

Before you ask, I restarted FC and I have rebooted my PC. No difference! :(
"It is much harder to simplify than to complicate."
Joseph Kimble
mario52
Veteran
Posts: 4692
Joined: Wed May 16, 2012 2:13 pm

Re: Learning to use the cross-section macro

Post by mario52 »

Hi

I don't know you tray the two macro available

maybe the problem is the macro is used with one assembly

tray the domad method Sezione Dinamica

or contact the author

sorry

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
drmacro
Veteran
Posts: 8982
Joined: Sun Mar 02, 2014 4:35 pm

Re: Learning to use the cross-section macro

Post by drmacro »

For reference, it appears the version of the macro currently in Addon manager does not produce valid solids with FC 0.20 and OCCT 7.6.

I noted this in this thread:
https://forum.freecadweb.org/viewtopic. ... 77#p562177
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
Vagulus
Posts: 850
Joined: Tue Jul 14, 2020 7:55 am
Location: Perth, Western Australia

Re: Learning to use the cross-section macro

Post by Vagulus »

drmacro wrote: Sun Jan 16, 2022 1:27 pm For reference, it appears the version of the macro currently in Addon manager does not produce valid solids with FC 0.20
That would certainly explain why I get no result when I use the version of the macro currently in Addon manager. :D

This will always be a problem with a program which is constantly developing in an Open Source environment - coordination. Someone changes something to make an improvement or an advance and that change adversely affects some apparently unrelated functionality.

I guess we mortals will have to wait on the good devices of the Author and hope that a new version will appear. ;)
Will there be some general notification when that happens?
"It is much harder to simplify than to complicate."
Joseph Kimble
drmacro
Veteran
Posts: 8982
Joined: Sun Mar 02, 2014 4:35 pm

Re: Learning to use the cross-section macro

Post by drmacro »

Vagulus wrote: Sun Jan 16, 2022 9:00 pm
drmacro wrote: Sun Jan 16, 2022 1:27 pm For reference, it appears the version of the macro currently in Addon manager does not produce valid solids with FC 0.20
That would certainly explain why I get no result when I use the version of the macro currently in Addon manager. :D

This will always be a problem with a program which is constantly developing in an Open Source environment - coordination. Someone changes something to make an improvement or an advance and that change adversely affects some apparently unrelated functionality.

I guess we mortals will have to wait on the good devices of the Author and hope that a new version will appear. ;)
Will there be some general notification when that happens?
If you check the other thread, the model is good, you just have to explode the compound it creates. Then the result is valid. Thanks @TheMarkster for pointing out the details.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Post Reply