几何尺寸与公差论坛

 找回密码
 注册
查看: 432|回复: 0

sap2000

[复制链接]
发表于 2009-9-15 20:02:47 | 显示全部楼层 |阅读模式
sap2000
hi,
does anybody know if there is any way to automatically launch a sap2000 analysis from another program?
thanks a lot

well i dont know what excatly you want to do, but apperently you cant launch sap from another program and let the program use the sap data or results...
as far as i know sap operates at a close structure.
to do what you want you have to be able to modify the sap main code. (that is written in c++ i guess)
ernestobarrera, you mean i'll not be able to make sap2000 open a file by giving a vba instruction?
sap can be easily opened in this way:
dim myappid, returnvalue
    myappid = shell("c:\sap2000n\sap2000.exe", 1)
    appactivate myappid
but, of course, i'd need the program to open a file for me and run the analysis
do you think i can do it without modifying sap's code?
however, if you are interested in the topic, i'll be very grateful if you have a look at this post session and post there what you think about it:
please go at
home > forum areas > engineering computer programs > general engineering programs > microsoft vba - visual basic for applications forum
or
every time sap runs it stores the input and output info on several files. you should be able to open this information using vba commands.remember that sap2000 is very similar to sap90, that uses a preprocessor to build and input file. if you can create a vba routine to build the sap input file data and then calling on sap2000.exe to run the analysis you would have half of the job.then you have to create a vba routine to extract the information from the output files (sap generates a lot of them, depending on the analysis and design options of your problem). i think you can do all that without modifying the sap main code.
i think it is very interesting task you are trying to do there...please keep me informed...
i would like to make some vba routines to extract sap2000 plate and shell analysis results to design shearwall and reinforced concrete slabs, since sap2000 lacks of this capabilities. i think that your approach is the good one to achieve this task....
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2025-1-15 05:58 , Processed in 0.035042 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表