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

giworlddraw vs vectorization
giworlddraw vs vectorization
is there any difference if i import a dxf/dwg file using vectorization compared to when using worlddraw on individual entities of a database??
one difference that i could think of is that blocks are exploded in vectorization..so one cannot possibly know if an entity was part of a block..
are there any other differences?
this would help me in evaluating which route to take for dxf/dwg import.
tia,
alex
the difference is rather significant. which way to choose depends on your task (kind of format you are importing to).
for example if you need only visible representation (bitmap, dwf, svg, pdf) you can use vectorization of the whole drawing.
if you are importing to some kind of cad format and you need to preserve block structure, import dimension entity as dimension not as lines and triangles etc.) - in this case you may want to call worlddraw() to get geometry only for "unknown" for you entities.
but note that
1. some entities may have no geometry produced by worlddraw(). if entity's representation is viewport-dependent it's rendered with viewportdraw(). for example oddbpoint if pdsize < 0. the size in this case is specified not in model units but percentage of viewport size.
2. calling worlddraw() for individual entities you need to take care about context yourself. i mean processing of current transform, clip, byblock and bylayer properties etc.
sergey slezkin

that was pretty useful.
thanks sergey.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)