SAP2000_API_CHS_C#_GetPresentCoordSystem
时间:2011-04-03 来源:AL小虾
GetPresentCoordSystem
语法
SapObject.SapModel.GetPresentCoordSystem
C#函数
string GetPresentCoordSystem();
参数
无
备注
该函数用以返回当前坐标系
C#实例
public void ExampleGetPresentCoordSystem()
{
//变量定义
int ret;
string coordSys;
//实例化
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.NewBlank();
//获取当前坐标系
coordSys = SapModel.GetPresentCoordSystem();
MessageBox.Show(coordSys);
//退出程序
SapObject.ApplicationExit(false);
SapModel = null;
SapObject = null;
}
该程序返回“GLOBAL” 相关阅读 更多 +










