I have tried to copy your code and it doesn't work. It crashes at line 34 - " 17:17:25 File "C:/Users/Allen/AppData/Roaming/FreeCAD/Macro/New_Rotation_Program.FCMacro", line 34, in play 17:17:25 App.ActiveDocument.getObject(rotate_Object).Placement = App.ActiveDocument.Placement(App.Vector(x1,y1,z1), App.Rotation(App.Vector(x,y,z),r)) 17:17:25 AttributeError: 'App.Document' object has no attribute 'Placement' It seems that Placement is not being recognized. Is there something missing in the code perhaps or maybe Placement is the wrong name in FreeCAD ? And why is the debug message showing 'App.Document and not App.ActiveDocument ? I am very new to Python. I just want to animate rotation of a part(object) in an Assembly It is much more convoluted than I thought. Thanks in advance.
Love the tutorial.
спасбо за урок .сложно конечно .супер
I wonder if an offset would do around 9:00. Great tutorial, btw.
You mean offset of the sketch or extracted edges?
Did you mean via shape binder ?
Great tutorial! Is worth a Ko-fi ;-) Btw do you have a cad drawning (like the fan) with all the measurements of the fan housing? Thanks again, Sander
Thank you very much by the ko-fi!
You mean a Technical drawing or simply a 3d model?
I have tried to copy your code and it doesn't work. It crashes at line 34 - " 17:17:25 File "C:/Users/Allen/AppData/Roaming/FreeCAD/Macro/New_Rotation_Program.FCMacro", line 34, in play
17:17:25 App.ActiveDocument.getObject(rotate_Object).Placement = App.ActiveDocument.Placement(App.Vector(x1,y1,z1), App.Rotation(App.Vector(x,y,z),r))
17:17:25 AttributeError: 'App.Document' object has no attribute 'Placement'
It seems that Placement is not being recognized. Is there something missing in the code perhaps or maybe Placement is the wrong name in FreeCAD ? And why is the debug message showing 'App.Document and not App.ActiveDocument ? I am very new to Python. I just want to animate rotation of a part(object) in an Assembly It is much more convoluted than I thought. Thanks in advance.
One question: are you using FreeCAD 0.21?
Yes. FreeCAD 0.21. Looks like Python 3 is the program being used by macros.
nice!
super schön
Thank You
Thanks for watching!
Hi. Is the macro code available anywhere?, Regards
No. Try rewrite it through the screen.
No. Try rewrite it through the screen.
@welvincarangue5808 hello!
Thank you so much sir...