其他分享
首页 > 其他分享> > CAD中添加XDATA

CAD中添加XDATA

作者:互联网

 1        AcadPoint acadPoint = this.GetAcadDoc.ModelSpace.AddPoint(new double[] { 500,500,0});
 2             
 3             List<short> DataType = new List<short>();
 4             List<object> DataValue = new List<object>();
 5 
 6             DataType.Add(1001);
 7             DataValue.Add("Test_Application");
 8 
 9             DataType.Add(1000);
10             DataValue.Add("OriginalPoint");
11             acadPoint.SetXData(DataType.ToArray(), DataValue.ToArray());
12 
13             object xtypeOut;
14             object xdataOut;
15             acadPoint.GetXData(string.Empty, out xtypeOut, out xdataOut);

 

标签:acadPoint,DataType,DataValue,List,Add,添加,XDATA,new,CAD
来源: https://www.cnblogs.com/zgyijg/p/12443332.html