Discussion Groups

Robot Structural Analysis

Reply
Active Contributor
nhandayasd
Posts: 36
Registered: ‎04-26-2012
Accepted Solution

(API) VBA of definition ( uniform planar load and Uniform Load)

377 Views, 11 Replies
07-03-2012 07:28 AM

Hi. . I reading API Load definition but I understan.Please given file VBA uniform planar load and Uniform Load

 

Thanks you.

Please use plain text.
Active Contributor
rsousa_
Posts: 35
Registered: ‎05-23-2012

Re: VBA of definition ( uniform planar load and Uniform Load)

07-03-2012 08:45 AM in reply to: nhandayasd

I don't known if i get your problem. With a little help with "Getting Started Guide Robot API", you can get there...

 

See the attached file. Of course you need to make your code more robust, than I have in this example, but it is a start point.

 

Regards

Please use plain text.
Active Contributor
nhandayasd
Posts: 36
Registered: ‎04-26-2012

Re: VBA of definition ( uniform planar load and Uniform Load)

07-03-2012 09:28 AM in reply to: nhandayasd

Thanks.

so you do it.

Capture.PNG

Please use plain text.
Product Support
Rafal.Gaweda
Posts: 5,048
Registered: ‎04-26-2010

Re: VBA of definition ( uniform planar load and Uniform Load)

07-03-2012 11:48 PM in reply to: nhandayasd

I do not understand.

Check additional two buttons in attached xls.



Rafal Gaweda
Please use plain text.
Active Contributor
nhandayasd
Posts: 36
Registered: ‎04-26-2012

Re: (API) VBA of definition ( uniform planar load and Uniform Load)

07-04-2012 07:13 AM in reply to: nhandayasd

yes. Great.

THanks you.

Please use plain text.
Distinguished Contributor
A.wikipedia
Posts: 140
Registered: ‎08-03-2012

Re: (API) VBA of definition ( uniform planar load and Uniform Load)

09-17-2012 09:46 PM in reply to: nhandayasd

Thanks.

Please write API given Uniform Load.

Capture.PNG

Please use plain text.
Distinguished Contributor
A.wikipedia
Posts: 140
Registered: ‎08-03-2012

Re: (API) VBA of definition ( uniform planar load and Uniform Load)

09-18-2012 02:15 AM in reply to: A.wikipedia

RG_Adsk

 

Please write API given Uniform Load.

Thanks

Please use plain text.
Product Support
Rafal.Gaweda
Posts: 5,048
Registered: ‎04-26-2010

Re: (API) VBA of definition ( uniform planar load and Uniform Load)

09-18-2012 03:09 AM in reply to: A.wikipedia
Private Sub CommandButton2_Click()

Dim Robapp As RobotApplication
Set Robapp = New RobotApplication

Dim Loads As RobotCaseServer
Set Loads = Robapp.Project.Structure.Cases

Dim Cas As RobotSimpleCase
Dim Recs As RobotLoadRecordMngr
Dim Rec_1 As RobotLoadRecord
    
CaseNumber = 1
    
Set Cas = Loads.Get(CaseNumber)
Set Recs = Cas.Records
Recs.New I_LRT_BAR_UNIFORM
   
Set Rec_1 = Recs.Get(Recs.Count)
Rec_1.Objects.FromText "1"
Rec_1.SetValue I_BURV_PY, 3.23

End Sub

 



Rafal Gaweda
Please use plain text.
Distinguished Contributor
A.wikipedia
Posts: 140
Registered: ‎08-03-2012

Re: (API) VBA of definition ( uniform planar load and Uniform Load)

09-18-2012 06:32 AM in reply to: Rafal.Gaweda

Thanks RG_Adsk.

But erro.

You can do same file VBA of uniform planar.

I is attachment file.Capture.PNG

Please use plain text.
Product Support
Rafal.Gaweda
Posts: 5,048
Registered: ‎04-26-2010

Re: (API) VBA of definition ( uniform planar load and Uniform Load)

09-19-2012 01:51 AM in reply to: A.wikipedia

File attached.

Next time you will write code, I will correct if needed.



Rafal Gaweda
Please use plain text.