Translations:Scripted objects/73/en

def makeMolecule: FreeCAD.newDocument a=FreeCAD.ActiveDocument.addObject("App::FeaturePython","Molecule") Molecule(a) b=ViewProviderMolecule(a.ViewObject) a.touch FreeCAD.ActiveDocument.recompute return a,b