Need a book? Engineering books recommendations...

Return to index: [Subject] [Thread] [Date] [Author]

Re: This is a OpenSTAAD question to open an exising file

[Subject Prev][Subject Next][Thread Prev][Thread Next]
Did you run the analysis and did you save the results
file in the same folder as the .std file?

Rajendran

--- Szuchuan Chang <szuchuan(--nospam--at)gmail.com> wrote:

> I wrote the following VBA in Excel to test the
> OpenSTAAD.
> 
> Sub AllNodes()
> Dim objOpenStaad
> Dim pnNodes As Integer
> 
> Dim pnNodeNumbers() As Integer
> 
> Dim px() As Double
> Dim py() As Double
> Dim pz() As Double
> 
> Set objOpenStaad =
> CreateObject("OpenSTAAD.Output.1")
> objOpenStaad.SelectSTAADFile
> "C\Users\N201\NorthWall01.std"
> 
> objOpenStaad.GetNodesCount pnNodes
> 
> ojbOpenStaad.CloseStaadFile
> Set objOpenStaad = Nothing
> 
> End Sub
> 
> However, the VBA runs into problem and give me the
> message "No available 
> STAAD results!" 
> 
> What have done wrong?
> Sam
>  Oh, the fellow from Research Engineers
> International is not much a help at 
> all!
>  Thanks
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

******* ****** ******* ******** ******* ******* ******* ***
*   Read list FAQ at: http://www.seaint.org/list_FAQ.asp
* 
*   This email was sent to you via Structural Engineers 
*   Association of Southern California (SEAOSC) server. To 
*   subscribe (no fee) or UnSubscribe, please go to:
*
*   http://www.seaint.org/sealist1.asp
*
*   Questions to seaint-ad(--nospam--at)seaint.org. Remember, any email you 
*   send to the list is public domain and may be re-posted 
*   without your permission. Make sure you visit our web 
*   site at: http://www.seaint.org 
******* ****** ****** ****** ******* ****** ****** ********