![]() Print("mode = "+str(sheet. Script so.py: FREECADPATH = '/usr/lib/freecad/lib'ĭef convert_model(filename, arclen, radius, width, height): How can I effectively overwrite those spreadsheet cell values? The assert fails because the geometry gets generated based on the spreadsheet's original values ( width=2) and not the overwritten ones ( width=3). If one invokes the script as python so.py so_example.FCStd 10 5 3 6 geometry is a Vector whose x coordinate happens to equal the value of the width parameter in spreadsheet cell A5. The resulting geometry always reflects the original values that were saved with the model. The script is working except that it fails to change the parameter values that are used to compute the model. generates geometry by tessellating the model's parts for further processing outside of FreeCAD (irrelevant with regard to this question) sets the spreadsheet cells to values provided by the client I want to build an automation pipeline in a stand-alone Python script using the FreeCAD module that
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |