高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】block references
block references
block references
hello.
i would want to know when should i draw a block. i think i should iterate by the dictionary layer to get the blocks, but, how could i know if these blocks must to be drawn or are only the definition?
in an answer to another post i have could read this:
in general blocktablerecords are only definitions and should be drawn only if they are referenced by blockreference
what's the way to know if a definition is referenced by blockreference?
thanks in advance.
david.
quote:
originally posted by dmarin
i would want to know when should i draw a block. i think i should iterate by the dictionary layer to get the blocks, but, how could i know if these blocks must to be drawn or are only the definition?
what's the way to know if a definition is referenced by blockreference?
oddbblockreference is entity, you can locate it by looking through entities of model or paper space blocks. also several block references can reference one block definition, block references can contain transform (then block will be drawn transformed). not only oddbblockreference can reference block (oddbdimension, oddbminsertblock, etc). for handling all these things dwgdirect has rendering pipeline.
if your task is to vectorize/render a drawing, please refer to our odvectorizeex and odamfcapp samples.
sincerely yours,
george udov
|