FEM: constraint initial temperature, make reference property hidden and readonly
This commit is contained in:
committed by
Yorik van Havre
parent
3e2da0cd71
commit
8e48e336e3
@@ -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)
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user