
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
After browsing tons of reference codes, I still can't find a way to create panels using API under Python. Could you please provide some pseudo code how to create a panel?
Here's what I think it should look like based on what I learned
# Let's say the contour c is predefined
panelid= RobApp.Project.Structure.Objects.FreeNumber
panel = RobApp.Project.Structure.Objects.Create(panelid)
panel.Main.Geometry = c
panel.StructuralType = 0 # for panel
panel.AnalyzeTTMethod = True
panel.SetLabel(I_LT_PANEL_THICKNESS, "thickness_name")
panel.SetLabel(I_LT_PANEL_CALC_MODEL, "calcmodel_name")
Is the above correct? Am I missing something?
Also, a huge blocker is to create new instance of a class. In Excel VBA, I see people simply do
Dim contour As New RobotGeoContour
How can python do the same thing using win32com? I can't even find IRobotGeoObject class.
Thank you for the help! Really appreciated!
Solved! Go to Solution.