Robot Structural Analysis Forum
Welcome to Autodesk’s Robot Structural Analysis Forums. Share your knowledge, ask questions, and explore popular Robot Structural Analysis topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API Select Panel Edge

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
a54249
675 Views, 6 Replies

API Select Panel Edge

Hello,

Is it possible to select only some edges of a panel and attribute a support to them? For example if i only wanted the Panel 1_EDGE(2) with a "Pinned" support.I was searching for a code similar to the following since this method is fast,

RSelection = str.Selections.Get(IRobotObjectType.I_OT_OBJECT)
RSelection.FromText("All")
RobApp.Project.Structure.Objects.SetLabel(RSelection, IRobotLabelType.I_LT_PANEL_THICKNESS, Esp)

 
Thanks in advance.

 

6 REPLIES 6
Message 2 of 7
Rafal.Gaweda
in reply to: a54249

    Dim panel  As RobotObjObject
    Dim edge As RobotObjEdge
    Set panel = RobApp.Project.Structure.Objects.Get(1)
    Set edge = panel.Main.Edges.Get(2)
    edge.SetLabel I_LT_SUPPORT, "Fixed"
    panel.Update

 



Rafal Gaweda
Message 3 of 7
a54249
in reply to: Rafal.Gaweda

Can't i use something like,

RobApp.Project.Structure.Objects.SetLabel(RSelection, IRobotLabelType.I_LT_EDGE_SUPPORT, "Pinned")

 ?

Message 4 of 7
Rafal.Gaweda
in reply to: a54249

You can.
All edges of selected panels will be supported.


Rafal Gaweda
Message 5 of 7
a54249
in reply to: Rafal.Gaweda

And i can't select only a single edge?

Like an RSelection.FromText("1_EDGE(1)")?

Message 6 of 7
Rafal.Gaweda
in reply to: a54249

No.


Rafal Gaweda
Message 7 of 7
a54249
in reply to: Rafal.Gaweda

Thanks!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report