Sezione Dinamica
Forum rules
regole del forum e le informazioni utili
Importante: PRIMA di chiedere aiuto leggete qui!
regole del forum e le informazioni utili
Importante: PRIMA di chiedere aiuto leggete qui!
Re: Sezione Dinamica
hi
single cube, i tray now the version not modified and i cause the same problem ??? certainly my configuration ??
i have upgrade the macro in the wiki
mario
single cube, i tray now the version not modified and i cause the same problem ??? certainly my configuration ??
i have upgrade the macro in the wiki
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.
My macros on Gist.github here complete macros Wiki and forum.
Re: Sezione Dinamica
ciao mario,
I'd only tested it with some simple PDN things before I posted here. It certainly works for a simple cube for me. I should mention that I'm running a debug build. I do not know if that will make a difference.
However, I've been experimenting with more complex drawings, and the macro does actually have some more issues. For instance App.Part does not have a bounding box, so some more tweaking needs to be done.
I'll have a fool around with more over the next few days.
I'd only tested it with some simple PDN things before I posted here. It certainly works for a simple cube for me. I should mention that I'm running a debug build. I do not know if that will make a difference.
However, I've been experimenting with more complex drawings, and the macro does actually have some more issues. For instance App.Part does not have a bounding box, so some more tweaking needs to be done.
I'll have a fool around with more over the next few days.
Re: Sezione Dinamica
Hello, I don't understand this thread. But I came here from the Cross Section macro. It doesn't work with Freecad 0.18.3 and 0.19. There is not a window like this. When I execute it nothing happens.
-
- Veteran
- Posts: 2611
- Joined: Tue Feb 21, 2012 8:07 pm
- Location: Torino - Italy
Re: Sezione Dinamica
OS: Windows 8.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16131 (Git)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 3129ae4296e40ed20e7b3d460b86e6969acbe1c3
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)
Re: Sezione Dinamica
Hi leoheck,
I must confess I'm new to FreeCAD, but I had the same issue and I wasn't able to find any solution googling. I managed to fix it by adding the following line:
Code: Select all
self.oblist = [obj for obj in self.oblist if hasattr(obj,"Shape")]
Code: Select all
[...]
# Make a list of the user's objects
# WARNING!!
# This list is persistent. We'll get confused if the user deletes or
# adds objects while the macro is active
self.oblist = App.ActiveDocument.Objects
self.oblist = [obj for obj in self.oblist if hasattr(obj,"Shape")]
# Create the cross-section object
[...]
My knowledge of the FreeCAD APIs are zero but i figured out that it has something to do with the listing of the objects. In fact most of them don't have a "Shape" attribute.
OS: Linux Mint 19
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.3.
Build type: Release
Python version: 3.6.8
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)
Re: Sezione Dinamica
@g.becu I didn't see it before. Cool, your solution fixed this issue. Thank you dude!
I need to know how to submit this to the maintainer of this macro.
I need to know how to submit this to the maintainer of this macro.
Re: Sezione Dinamica
Saluti
fato Macro_cross_section grazie g.becu e benvenuto
ver 00.09 31/08/2019 : upgrade by g.becu adding line 334
mario
fato Macro_cross_section grazie g.becu e benvenuto
ver 00.09 31/08/2019 : upgrade by g.becu adding line 334
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.
My macros on Gist.github here complete macros Wiki and forum.
Re: Sezione Dinamica
I wondered if anyone had extended this useful
macro, so that an arbitary face can be selected
and the unit normal used to define the plane of the
section?
Best Wishes
macro, so that an arbitary face can be selected
and the unit normal used to define the plane of the
section?
Best Wishes
Re: Sezione Dinamica
salve, mario52 protesti fare una piccola guida come si creano le macro con la gui e anche quelle senza.mario52 wrote: ↑Sat Aug 31, 2019 10:28 am Saluti
fato Macro_cross_section grazie g.becu e benvenuto
ver 00.09 31/08/2019 : upgrade by g.becu adding line 334
mario
perché sto leggendo la guida di onekk .. ma lui parte dai file .py, ed invece tu parti dai file ..FCMacro.
Hai qualche guida al riguardo oltre ad quella di onekk.
Re: Sezione Dinamica
salve
(FCMacro e usato per distinguere una macro dedicata per FreeCAD)
ma se fate un import miofile il file "miofile" da importare deve avere l'estensione "miofile.py" sino non funziona perché diventa uno file Python
su la mia segnatura avete qualunque pagine interessante ma non tutte sono aggiornata
(select a face and the "cut" is operate by its normal ? )
mario
potete rinominare .py in .FCMacro sonno tutti e due lo stesso per FreeCAD
(FCMacro e usato per distinguere una macro dedicata per FreeCAD)
ma se fate un import miofile il file "miofile" da importare deve avere l'estensione "miofile.py" sino non funziona perché diventa uno file Python
su la mia segnatura avete qualunque pagine interessante ma non tutte sono aggiornata
more explanation or image example
(select a face and the "cut" is operate by its normal ? )
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.
My macros on Gist.github here complete macros Wiki and forum.