Macro_cross_section AttributeError

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
mappolon
Posts: 8
Joined: Sat May 12, 2018 3:41 pm

Macro_cross_section AttributeError

Post by mappolon »

I've installed the Macro_cross_section.FCMacro, but when executing the macro, I get this error:

Traceback (most recent call last):
File "C:/Users/Michael/AppData/Roaming/FreeCAD/Macro_cross_section.FCMacro", line 577, in <module>
myWidget = CrossSectionWindow()
File "C:/Users/Michael/AppData/Roaming/FreeCAD/Macro_cross_section.FCMacro", line 109, in __init__
self.child.initUI(self)
File "C:/Users/Michael/AppData/Roaming/FreeCAD/Macro_cross_section.FCMacro", line 147, in initUI
self.hideObjects()
File "C:/Users/Michael/AppData/Roaming/FreeCAD/Macro_cross_section.FCMacro", line 363, in hideObjects
b = self.oblist.Shape.BoundBox
<type 'exceptions.AttributeError'>: 'App.Part' object has no attribute 'Shape'

Has anyone seen this error?
zetka
Posts: 22
Joined: Thu Oct 29, 2020 10:24 pm

Re: Macro_cross_section AttributeError

Post by zetka »

Yes, I revoluted a parabolic line sketch and I am getting it too:
'App.Part' object has no attribute 'Shape'
User avatar
onekk
Veteran
Posts: 6197
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Macro_cross_section AttributeError

Post by onekk »

Please post your full version infos, as stated in IMPORTANT: postvat the top of forum page.

Probably you have not clear how App::Part is so some reading of introductory wiki pages will show basic concepts about FreeCAD.

FreeCAD is an engineering CAD so some knowledge has to be acquired to properly use tools.

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
Post Reply