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

yang686526 2009-05-04 07:30 PM

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


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