FEM: constraint initial temperature, make reference property hidden and readonly

This commit is contained in:
Bernd Hahnebach
2017-11-24 21:41:30 +01:00
committed by Yorik van Havre
parent 3e2da0cd71
commit 8e48e336e3
2 changed files with 5 additions and 1 deletions

View File

@@ -52,6 +52,9 @@ ConstraintInitialTemperature::ConstraintInitialTemperature()
"Normals where symbols are drawn");
Points.setValues(std::vector<Base::Vector3d>());
Normals.setValues(std::vector<Base::Vector3d>());
References.setStatus(App::Property::ReadOnly, true);
References.setStatus(App::Property::Hidden, true);
}
App::DocumentObjectExecReturn *ConstraintInitialTemperature::execute(void)

View File

@@ -1050,7 +1050,8 @@ def get_analysis_group_elements(aAnalysis, aPart):
group_elements = {} # { name : [element, element, ... , element]}
empty_references = []
for m in aAnalysis.Group:
if hasattr(m, "References"):
if hasattr(m, "References") and "ReadOnly" not in m.getEditorMode("References"):
# some C++ Constraints have a not used References Property, it is set to Hidden in ReadOnly and PropertyEditor
if m.References:
grp_ele = get_reference_group_elements(m, aPart)
group_elements[grp_ele[0]] = grp_ele[1]