# encoding: utf-8
# 2020 R2
SetScriptVersion(Version="20.2.221")
system1 = GetSystem(Name="SYS 4")
modelComponent1 = system1.GetComponent(Name="Model")
modelComponent1.Refresh()
model1 = system1.GetContainer(ComponentName="Model")
model1.Edit()
system2 = GetSystem(Name="SYS 2")
model2 = system2.GetContainer(ComponentName="Model")
model2.Edit()
model2.Exit()
model1.Exit()
system3 = GetSystem(Name="SYS 1")
modelComponent2 = system3.GetComponent(Name="Model")
modelComponent2.Refresh()
model3 = system3.GetContainer(ComponentName="Model")
model3.Edit()
model3.Exit()
system4 = GetSystem(Name="SYS")
model4 = system4.GetContainer(ComponentName="Model")
model4.Edit()
system5 = GetSystem(Name="SYS 3")
model5 = system5.GetContainer(ComponentName="Model")
model5.Edit()
model4.Exit()
system6 = GetSystem(Name="SYS 5")
model6 = system6.GetContainer(ComponentName="Model")
model6.Edit()
model6.Exit()
engineeringDataComponent1 = system6.GetComponent(Name="Engineering Data")
engineeringDataComponent1.DeleteShare(System=system6)
geometryComponent1 = system6.GetComponent(Name="Geometry")
geometryComponent1.DeleteShare(System=system6)
Save(Overwrite=True)
model5.Exit()
model5.Edit()
modelComponent3 = system6.GetComponent(Name="Model")
modelComponent3.Refresh()
model6.Edit()
Save(Overwrite=True)
model6.Exit()
geometry1 = system6.GetContainer(ComponentName="Geometry")
geometry1.Edit()
modelComponent3.Refresh()
model6.Edit()
Save(Overwrite=True)
Save(Overwrite=True)
Save(Overwrite=True)
geometry1.Exit()
model5.Exit()
model6.Exit()
Save(Overwrite=True)
