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: 

Re Drawing FE panels using vba/vb.net

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
berncabebe
372 Views, 3 Replies

Re Drawing FE panels using vba/vb.net

Good day! 

 

I'm writing a code that will draw F.E. panels in RSA using VBA. I'm having a problem with a single line of code and I can't proceed from there. Please see attached image.

 

Solution to this problem will be greatly appreciated.

 

Thanks.

 

2014-12-02 11.20.01.jpg

 

3 REPLIES 3
Message 2 of 4
rsousa_
in reply to: berncabebe

Maybe you can do like they do on tutorial:

'Create a selection of finite elements (use the selection server).

    Dim allFE As IRobotSelection

Set allFE = robApp.Project.Structure.Selections.CreateFull(I_OT_FINITE_ELEMENT)

    'Create the object number 1 basing on the selected FE.

    Dim col As IRobotNumbersCollection

Set col = robApp.Project.Structure.Objects.CreateOnFiniteElems(allFE.ToText(), 1)

 '   Release a reference.

    Set allFE = Nothing

 '   Retrieve the defined object.

    Dim obj As IRobotObjObject

Set obj = robApp.Project.Structure.Objects.Get(1)

 '   Freeze the generated mesh of finite elements.

obj.Mesh.Freeze = True

 '   Add the thickness label to the defined object

 obj.SetLabel I_LT_PANEL_THICKNESS, "thick1"

 '   Add the reinforcement label to the defined object.

obj. SetLabel I_LT_PANEL_REINFORCEMENT, "reinf1"

 '   Update the object after changing its attribution.

 obj.Update

Do this help you?

Message 3 of 4
berncabebe
in reply to: berncabebe

I already got a solution to this issue. See attached.

Message 4 of 4
berncabebe
in reply to: berncabebe

DrawThinElement.jpg

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

Post to forums  

Autodesk Design & Make Report