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

question about "hatches"
question about "hatches"
hello,
i have read in the documentation, that all references are automatically corrected, when deleting an entity. for example, if we have a line entity, which is referenced by hatch and we delete it, hatch will no longer reference that entity. when i tested this, hatch referenced null object.
this is ok.
but i have a question.
if i want to split an entity (for example spline or polyline into many line segments), how can i achieve, that all objects which reference original entity are updated with object id's of new created entities?
is this possible?
regards, tomaz
if a hatch is associated with polyline you want to explode polyline entity contains hatch's object id among it's reactors.
you can use oddbhatch::getassocobjidsat() and oddbhatch::setassocobjidsat() to replace polyline id with ids of lines obtained from polyline exploding.
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)