几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(VB.NET/C#) (http://www.dimcax.com/hust/forumdisplay.php?f=176)
-   -   使用getsplitcurves报错?请指点。 (http://www.dimcax.com/hust/showthread.php?t=9299)

yang686526 2009-04-20 07:21 PM

使用getsplitcurves报错?请指点。
 
使用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()
[此贴子已经被作者于


所有的时间均为北京时间。 现在的时间是 04:46 PM.