几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】block references (http://www.dimcax.com/hust/showthread.php?t=15244)

yang686526 2009-05-04 04:50 PM

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


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