查看单个帖子
旧 2009-05-04, 07:30 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】dimassoc 9array of main entities0

dimassoc (array of main entities?)
dimassoc (array of main entities?)
hello,
i am currently investigating the dimassoc object. from dxf file and dxf reference i found out, that group code 331 points to id of main geometry object. this group code is written only once per acdbosnappointref "object".
but i noticed, that dwgdirect library returns array of main geometry objects for each osnap point reference:
osnappointref(int)->mainentity().objectids()[]
i am not bothered by the array, i only want to know if my assumption, that there is always only one object id in the array, is correct?
regards, tomaz
oddbosnappointref::mainentity() returns object defining an array of object ids to uniquely identify the primitive geometry.
entity in nested blocks:
osnappointref(int)->mainentity().objectids()[0] -> id of blockreference in ms
...
osnappointref(int)->mainentity().objectids()[i-1] -> id of blockreference in block i-2
osnappointref(int)->mainentity().objectids()[i] -> id of entity in block i-1
regards,
sergey vishnevetsky

hi, sergey
thanks a lot for this answer. it is really very helpful.
regards, tomaz
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)