明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3566|回复: 0

使用GetSplitCurves报错?请指点。

[复制链接]
发表于 2006-12-29 18:16:00 | 显示全部楼层 |阅读模式
本帖最后由 作者 于 2006-12-29 22:25:31 编辑

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 MyCommand2006.ObjectClass.Crop(ObjectId oid) in d:\autocad开发学习\mysource\mycommand2006\objectclass.cs:line 366
   at MyCommand2006.MyCommand.gettype() in d:\autocad开发学习\mysource\mycommand2006\mycommand2006.cs:line 82
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] 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()
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-11-25 10:41 , Processed in 0.167779 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表