SAP2000_API_CHS_C#_AreaElm.GetLoadStrain
时间:2011-04-07 来源:AL小虾
AreaElm.GetLoadStrain
语法
SapObject.SapModel.AreaElm.GetLoadStrain
C#函数
int GetLoadStrain(string Name, ref int NumberItems, ref Array AreaName, ref Array LoadPat, ref Array Component, ref Array Value, ref Array PatternName, eItemTypeElm ItemTypeElm = eItemTypeElm.Element);
参数
Name:现存的区域元素或组的名字 NumberItems:获得的strain loads的个数 AreaName:获得的strain loads的名字 LoadPat:每个荷载的类型 Component:每个荷载的分量 1 = Strain11 2 = Strain22 3 = Strain12 4 = Curvature11 5 = Curvature22 6 = Curvature12 7 = Strain13 Value:应变的值 [L/L] PatternName:节点类型的名字 ItemTypeElm:构件选择类型 8 = Strain23
备注
用以获取strain load 的布置情况,成功返回0值否则返回非0值
C#实例
public void Example() { //变量定义 int ret; int NumberItems=0; Array AreaName = Array.CreateInstance(typeof(string), 100); Array LoadPat = Array.CreateInstance(typeof(string), 100); Array PatternName = Array.CreateInstance(typeof(string), 100); Array Value = Array.CreateInstance(typeof(double), 100); Array Component = Array.CreateInstance(typeof(double), 100); //实例化 Sap2000.SapObject SapObject = new Sap2000.SapObject(); Sap2000.cSapModel SapModel = new Sap2000.cSapModel(); //运行程序 SapObject.ApplicationStart(); //新建模型D ret = SapModel.InitializeNewModel(Sap2000.eUnits.kip_ft_F); //从模板创建新模型 ret = SapModel.File.NewWall(2, 48, 2, 48); //添加荷载 ret = SapModel.AreaObj.SetLoadStrain("ALL", "DEAD",1,0.001,true ,"", Sap2000.eItemType.Group); //创建分析模型 ret = SapModel.Analyze.CreateAnalysisModel(); //获取荷载 ret = SapModel.AreaElm.GetLoadStrain("3", ref NumberItems, ref AreaName, ref LoadPat, ref Component,ref Value, ref PatternName); //退出程序 SapObject.ApplicationExit(false); SapModel = null; SapObject = null; }
相关阅读 更多 +