几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】oddb2dpolyline returns also arcs (http://www.dimcax.com/hust/showthread.php?t=17453)

yang686526 2009-05-06 07:17 PM

【转帖】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


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