Translations:Scripted objects/37/en

From FreeCAD Documentation
Revision as of 11:16, 24 May 2020 by FuzzyBot (talk | contribs) (Importing a new version from external source)

Things to note

If your object relies on being recomputed as soon as it is created, you must do this manually in the __init__ function as it is not called automatically. This example does not require it because the onChanged method of the Box class has the same effect as the execute function, but the examples below rely on being recomputed before anything is displayed in the 3D view. In the examples, this is done manually with ActiveDocument.recompute() but in more complex scenarios you need to decide where to recompute either the whole document or the FeaturePython object.