Revert "FEM: Updated fix to constraint displacement reference deletion, update hide show, remove custom input writer, update vertice, edge, face selection."
This reverts commit ac4d466443.
This commit is contained in:
@@ -168,28 +168,8 @@ void ViewProviderFemConstraint::onChanged(const App::Property* prop)
|
||||
}
|
||||
}
|
||||
|
||||
//OvG: Visibility automation show parts and hide meshes on activation of a constraint
|
||||
std::string ViewProviderFemConstraint::gethideMeshShowPartStr(const std::string showConstr)
|
||||
{
|
||||
return "for amesh in App.activeDocument().Objects:\n\
|
||||
if \""+showConstr+"\" == amesh.Name:\n\
|
||||
amesh.ViewObject.Visibility = True\n\
|
||||
elif \"Mesh\" in amesh.TypeId:\n\
|
||||
aparttoshow = amesh.Name.replace(\"_Mesh\",\"\")\n\
|
||||
for apart in App.activeDocument().Objects:\n\
|
||||
if aparttoshow == apart.Name:\n\
|
||||
apart.ViewObject.Visibility = True\n\
|
||||
amesh.ViewObject.Visibility = False\n";
|
||||
}
|
||||
|
||||
std::string ViewProviderFemConstraint::gethideMeshShowPartStr()
|
||||
{
|
||||
return ViewProviderFemConstraint::gethideMeshShowPartStr("");
|
||||
}
|
||||
|
||||
bool ViewProviderFemConstraint::setEdit(int ModNum)
|
||||
{
|
||||
Gui::Command::doCommand(Gui::Command::Doc,"%s",ViewProviderFemConstraint::gethideMeshShowPartStr().c_str());
|
||||
return Gui::ViewProviderGeometryObject::setEdit(ModNum);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user