liudaohuang 发表于 2007-8-15 17:28:00

知道的帮忙解答一下子

<p>&nbsp;&nbsp;<br/>&nbsp;&nbsp;public void testd()<br/>&nbsp;&nbsp;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;AcadApplication acadapp = (AcadApplication)Application.AcadApplication;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;try<br/>&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;Object ps,pe;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp; ps = acadapp.ActiveDocument.Utility.<font color="#f70909">GetPoint(,"指定起点");</font><br/>&nbsp;&nbsp;&nbsp;&nbsp; pe = acadapp.ActiveDocument.Utility.GetPoint(ps,"指定终点:");<br/>&nbsp;&nbsp;&nbsp;&nbsp;AcadLine acadline =acadapp.ActiveDocument.ModelSpace.AddLine(ps,pe);<br/>&nbsp;&nbsp;&nbsp;}<br/>&nbsp;&nbsp;&nbsp;catch(System.Exception e)<br/>&nbsp;&nbsp;&nbsp;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;Autodesk.AutoCAD.ApplicationServices.Application.ShowAlertDialog(e.Message);<br/>&nbsp;&nbsp;&nbsp;}<br/>&nbsp;&nbsp;}</p><p>用C# 怎么处理红色的东西?</p>
页: [1]
查看完整版本: 知道的帮忙解答一下子