- UID
- 1
- 积分
- 16111
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-1-3
- 最后登录
- 1970-1-1
|
发表于 2003-7-7 18:54:52
|
显示全部楼层
最初由 blas 发布
[B]不好意思,我说反了,只有边界是polyline时才能取到,AcDbHatch只有getLoopAt这个取边界的函数,而当是非polyline时,返回Acad::eNotApplicable ,
这个在arx的帮助中有说明:
It may also return Acad::eNotAppli... [/B]
都可以得到的,AcDbHatch::getLoopAt(...)有两个重载函数,一个处理边界类型是kPolyline的,如你上面所说的,还有一个处理其他类型的。
- [font=courier]
- Acad::ErrorStatus
- getLoopAt(
- int loopIndex,
- Adesk::Int32& loopType,
- AcGeVoidPointerArray& edgePtrs,
- AcGeIntArray& edgeTypes) const;
- loopIndex Input index of selected loop
- loopType Output loop type
- edgePtrs Output a set of AcGeCurve pointers
- edgeTypes Output a set of enumerated edge types
- This function gets the loop definition data (path) of a selected hatch
- boundary loop from the hatch entity. loopIndex specifies the index of the
- selected loop. loopType is an enum number which may be either
- kDefault, kExternal, kPolyline, kDerived, kTextbox,
- or their bitwise combinations. edgePtrs contains a set of voided AcGeCurve pointers,
- including AcGeLineSeg2d, AcGeCircArc2d, AcGeEllipArc2d, and
- AcGeNurbCurve2d. edgeTypes contains a set of enumerated edge types,
- including kLine, kCirArc, kEllArc, and kSpline. edgePtrs and edgeTypes
- must be correspondent and have the same array length.
- This function returns Acad::eOk when successful or Acad::eInvalidIndex
- when the loopIndex is out of the range. It may also return
- Acad::eNotApplicable when the loopType is a kPolyline
- [/font]
复制代码 |
|