public void SetAutoMaterial(int id) { Matl FemapMaterial = FemapModel.feMatl; FemapMaterial.Active = 1; FemapMaterial.type = zMaterialType.FMT_ISOTROPIC; FemapMaterial.GetLibrary(id); FemapMaterial.Put(1); FemapMaterial.Reset(); FemapModel.feView.Regenerate(); }
public void SetManualMaterial(String Title, Double E, Double G, Double Nu) { Matl FemapMaterial = FemapModel.feMatl; FemapMaterial.Active = 1; FemapMaterial.type = zMaterialType.FMT_ISOTROPIC; FemapMaterial.title = Title; FemapMaterial.Ex = E; FemapMaterial.Gx = G; FemapMaterial.Nuxy = Nu; FemapMaterial.Put(FemapMaterial.CountSet() + 1); FemapMaterial.Reset(); FemapModel.feView.Regenerate(); }