高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】read block reference
read block reference
read block reference
hello !
i have a dwg with block reference.
i would like to access the block its refers.
how can i do that ? i tried :
code:
if (pblockit->entity()->isa()->name() == "acdbblockreference")
{
pblockref = pblockit->objectid().safeopenobject();
pblockrefit = pblockref->attributeiterator();
for (; !pblockrefit->done(); pblockrefit->step())
{
}
}
but it nevers enters in the "for".
could you please help me ?
i want to acces to getstartpoint() and getendpoint of the block
thank you very much for your help
cnice
quote:
originally posted by cnice
i would like to access the block its refers.
cnice
dbblockreference has method "oddbobjectid blocktablerecord()".
quote:
originally posted by cnice
but it nevers enters in the "for".
cnice
oddbblockreference can not have attributes so you don't enter in the "for".
quote:
originally posted by cnice
i want to acces to getstartpoint() and getendpoint of the block
cnice
what getstartpoint() and getendpoint of the block means? oddbblockreference has position() and you can get geometry extents(getgeomextents(odgeextents3d& extents)).
best regards,
sergey z.
|