|
Расположение в меню |
---|
FEM → Analysis container |
Верстаки |
FEM |
Быстрые клавиши |
N,A |
См. также |
FEM tutorial |
The FEM Analysis could be seen as a Container that holds all objects of a Finite Element Analysis. It is mandatory to have a analysis container which holds all the needed objects. At least one of the following objects is needed for a mechanical analysis:
most code here is depreciated in 0.17.
MechanicalAnalysis.makeMechanicalAnalysis( name )
App.ActiveDocument.MechanicalAnalysis.Member = App.ActiveDocument.MechanicalAnalysis.Member + [ (object) ]
member = App.ActiveDocument.MechanicalAnalysis.Member member.remove( documentobject ) App.ActiveDocument.MechanicalAnalysis.Member = member
Examples:
import MechanicalAnalysis analysis = MechanicalAnalysis.makeMechanicalAnalysis("MechanicalAnalysis") FemGui.setActiveAnalysis(analysis) addobj = App.ActiveDocument.getObject("MechanicalMaterial") App.ActiveDocument.MechanicalAnalysis.Member = App.ActiveDocument.MechanicalAnalysis.Member + [addobj] removeobj = App.ActiveDocument.getObject("MechanicalMaterial") member = App.ActiveDocument.MechanicalAnalysis.Member member.remove(removeobj) App.ActiveDocument.MechanicalAnalysis.Member = member