将acad做为参数传递 如: public double[] GetOtherPt(AcadDocument cadDoc, double[] pt) { try { object objPt = (object)pt; object objOtherPt = cadDoc.Utility.GetPoint(Type.Missing, "请选择另一点:"); double[] OtherPt = (double[])objOtherPt; return OtherPt; } catch { return null; } } |