Did you ever encounter a problem that Claddings are not hiding? Everything other hides correctly but claddings stay visible.
import clr
clr.AddReferenceToFileAndPath("C:/Program Files/Autodesk/Autodesk Robot Structural Analysis Professional 2019/System/Exe/Interop.RobotOM.dll")
from RobotOM import *
from System import Object
application = RobotApplicationClass()
project = application.Project
structure = project.Structure
labels = structure.Labels
objects = structure.Objects
application.Interactive = False
groupNumb = structure.Groups.GetCount(IRobotObjectType.I_OT_BAR)
allgroups = [structure.Groups.Get(IRobotObjectType.I_OT_BAR,x) for x in range(1,3)]
nodeSel = project.Structure.Selections.Create(IRobotObjectType.I_OT_NODE)
nodeSel.Clear()
project.Structure.Selections.Create(IRobotObjectType.I_OT_OBJECT)
panelSel = project.Structure.Selections.Create(IRobotObjectType.I_OT_PANEL)
panelSel.Clear()
FESel = project.Structure.Selections.Create(IRobotObjectType.I_OT_FINITE_ELEMENT)
FESel.Clear()
allSel = structure.Selections.CreateFull(IRobotObjectType.I_OT_OBJECT)
allSel.Clear()
backLog = []
for barSelection in allgroups:
viewRobot = project.ViewMngr.CreateView(IRobotViewType.I_VT_STANDARD)
newSel = project.Structure.Selections.Create(IRobotObjectType.I_OT_BAR)
newSel.FromText(barSelection.SelList)
viewRobot.Selection.Set(IRobotObjectType.I_OT_NODE, nodeSel)
viewRobot.Selection.Set(IRobotObjectType.I_OT_PANEL, panelSel)
viewRobot.Selection.Set(IRobotObjectType.I_OT_FINITE_ELEMENT, FESel)
viewRobot.Selection.Set(IRobotObjectType.I_OT_OBJECT, allSel)
viewRobot.Selection.Set(IRobotObjectType.I_OT_BAR, newSel)
viewRobot.Visible = True
viewRobot.Title = "LOOL"
backLog.append(barSelection.Name)
viewRobot.Redraw(0)
application.Interactive = True
OUT = allSel.Count
@Rafal.Gaweda Could you probably help?