使用GetSplitCurves报错?请指点。
本帖最后由 作者 于 2006-12-29 22:25:31 编辑 <br /><br /> Polyline pcb;<br/> ...<br/> <br/> Point3dCollection clipboundary=new Point3dCollection();<br/> for(int j = 0; j < pcb.NumberOfVertices ; j++)<br/> {<br/> clipboundary.Add(pcb.GetPoint3dAt(j));<br/> }<br/> DBObjectCollection dbc;<br/> Curve c =ent as Curve;<br/> if(c!=null)<br/> dbc=c.GetSplitCurves(clipboundary);<br/><br/><br/>GetSplitCurves(clipboundary) 处报错:<br/>************** Exception Text **************<br/>System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Autodesk.AutoCAD.Runtime.Exception: eInvalidInput<br/> at Autodesk.AutoCAD.Runtime.Interop.ThrowExceptionForErrorStatus(Int32 errorStatus)<br/> at Autodesk.AutoCAD.DatabaseServices.Curve.GetSplitCurves(Point3dCollection points)<br/> at MyCommand2006.ObjectClass.Crop(ObjectId oid) in d:\autocad开发学习\mysource\mycommand2006\objectclass.cs:line 366<br/> at MyCommand2006.MyCommand.gettype() in d:\autocad开发学习\mysource\mycommand2006\mycommand2006.cs:line 82<br/> --- End of inner exception stack trace ---<br/> at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)<br/> at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)<br/> at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)<br/> at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)<br/> at AcMgCommandClass.Invoke(AcMgCommandClass* , gcroot<System::Reflection::MethodInfo __gc \*>* mi)<br/> at Autodesk.AutoCAD.Runtime.SEHExceptionFilter.InvokeWorker()<br/> at Autodesk.AutoCAD.Runtime.ExceptionFilter.Invoke()
页:
[1]