使用getsplitcurves报错?请指点。
www.dimcax.com
使用getsplitcurves报错?请指点。polyline pcb;
...
point3dcollection clipboundary=new point3dcollection();
for(int j = 0; j < pcb.numberofvertices ; j++)
{
clipboundary.add(pcb.getpoint3dat(j));
}
dbobjectcollection dbc;
curve c =ent as curve;
if(c!=null)
dbc=c.getsplitcurves(clipboundary);
getsplitcurves(clipboundary) 处报错:
************** exception text **************
system.reflection.targetinvocationexception: exception has been thrown by the target of an invocation. ---> autodesk.autocad.runtime.exception: einvalidinput
at autodesk.autocad.runtime.interop.throwexceptionforerrorstatus(int32 errorstatus)
at autodesk.autocad.databaseservices.curve.getsplitcurves(point3dcollection points)
at mycommand arguments, signaturestruct& sig, methodattributes methodattributes, runtimetypehandle typeowner)
at system.runtimemethodhandle.invokemethodfast(object target, object[] arguments, signature sig, methodattributes methodattributes, runtimetypehandle typeowner)
at system.reflection.runtimemethodinfo.invoke(object obj, bindingflags invokeattr, binder binder, object[] parameters, cultureinfo culture, boolean skipvisibilitychecks)
at system.reflection.runtimemethodinfo.invoke(object obj, bindingflags invokeattr, binder binder, object[] parameters, cultureinfo culture)
at acmgcommandclass.invoke(acmgcommandclass* , gcroot<system::reflection::methodinfo __gc \*>* mi)
at autodesk.autocad.runtime.sehexceptionfilter.invokeworker()
at autodesk.autocad.runtime.exceptionfilter.invoke()
[此贴子已经被作者于