Learn Python in FreeCAD: 10 Add collision for part design. Try except. Macro scripting for beginners

preview_player
Показать описание
Part 10 We complete the function to colour the individual faces and make it compatible with part design objects and not just part objects. We learn about the part design tip and how to use in in a try except check. we then blend our new function in with our main code. We do this step by step changing the code as we go to show that programming is an evolutionary process. We now have full clash detection on collision of faces up and running but our journey doesn't stop there. In the next video we will learn about the timer event. This is often used in animation and will help us optimise and expand our code even more.

Using FreeCAD 0.19 or above this beginners series of tutorials helps you learn the python language from the ground up by building macros to solve real world problems. We will take you through understanding the python language but with a FreeCAD twist.

PART 11: Check back next Sunday !

#FreeCAD , #CAD , #Python
Journey with me and

Donate:

Subscribe:

Browse my Redbubble Shop:
Рекомендации по теме
Комментарии
Автор

Thanks for this great series on Python programming. In a prior video in the series, I ran into this error that others reported as well. Maybe it's only with version 0.20.2.
When I type at the prompt:


Pythin console returns:

Traceback (most recent call last):
File "<input>", line 1, in <module>
Part.OCCError: BRepExtrema_ShapeProximity failed, make sure the shapes are tessellated.
Any recommendation for a fix to this. Thanks!
>>>

marctremblay
welcome to shbcf.ru