如何读写dwg文件的标题?
MxDraw网页开发|黄洪辉|2018-05-07 10:19
-
回答:
var database = mxOcx.GetDatabase(); var param = mxOcx.NewResbuf(); param.AddString("MyTitleVal"); // 设置dwg文件说明信息标题为"MyTitleVal" database.SetProp("setTitle", param); // 取dwg文件说明信息标题. var ret = database.GetProp("getTitle"); alert(ret.AtString(0));