在网页中怎么创建组?
MxDraw网页开发|黄洪辉|2018-05-04 16:13
-
回答:
mxOcx.Prompt("选择要做成组的实体:"); var ss = mxOcx.NewSelectionSet(); ss.Select2(8, null, null, null); var param = mxOcx.NewResbuf(); for(var i = 0; i < ss.Count;i++) { var ent = ss.Item(i); if(ent == null) continue; param.AddObjectId(ent.ObjectID); } if(param.Count == 0) return; mxOcx.CreateGroup("", param);