查看单个帖子
旧 2009-05-06, 07:17 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】oddb2dpolyline returns also arcs

oddb2dpolyline returns also arcs?
oddb2dpolyline returns also arcs?
hi,
we are using version 1.11 and we are importing a dwg file containing
some elements resolved as oddb2dpolyline.
we use the function explode to retrieve the primitive elements of the polyline and, looking at the documentation of dwgdirect, we would find only oddbline after explosion. but these polylines are composed by lines and arcs(!) and infact if we ask to all oddbline which entity are them, sometimes we receive arcs. so, is this behaviour correct? could an oddb2dpolyline contain not only lines? and if yes, which others elements?
in this moment, after explosion, we look for every oddbline type and we cast it oddbarc if necessary but we don't know if it is sufficient and/or correct.
thank you in advance.

oddb2dpolyline can have segments with bulges. in this case you'll get oddbarc entities.
also note that oddb2dpolyline can have segments with widths. they are lost as result of oddb2dpolyline::explode().
sincerely yours,
george udov
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)