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) Bar type

1 REPLY 1
SOLVED
Reply
Message 1 of 2
t.sautierr
335 Views, 1 Reply

(API) Bar type

Has someone already implemened a spreasheet or a little API to define and update easely the bar types in big models? 

If not, I think I will try to code that.

 

Thx

1 REPLY 1
Message 2 of 2
Rafal.Gaweda
in reply to: t.sautierr

Example for steel bar

 

    Dim LabelCol As RobotLabelCollection
    
    Set LabelCol = RobApp.Project.Structure.Labels.GetMany(I_LT_MEMBER_TYPE)
    
    Dim RLabel As IRobotLabel
    Dim RdimLabelData  As IRDimMembDefData
    
    Dim i As Integer
    i = 1
    
    While Cells(9 + i, 1) <> ""
        Set RLabel = LabelCol.Get(i)
        Set RdimLabelData = RLabel.Data
        RdimLabelData.SetDeflYZRelLimit I_DMDDDT_DEFL_Y, CDbl(Cells(9 + i, 2))
        RdimLabelData.SetDeflYZRelLimit I_DMDDDT_DEFL_Z, CDbl(Cells(9 + i, 3))
        RdimLabelData.SetDisplXYRelLimit I_DMDDDT_DISP_X, CDbl(Cells(9 + i, 4))
        RdimLabelData.SetDisplXYRelLimit I_DMDDDT_DISP_Y, CDbl(Cells(9 + i, 5))
        RobApp.Project.Structure.Labels.Store RLabel
        i = i + 1
        Set RLabel = Nothing
    Wend

 



Rafal Gaweda

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

Post to forums  

Autodesk Design & Make Report