Rhino(犀牛)中国技术支持与推广中心

标题: 求助,关于模型的的加载 [打印本页]

作者: 设计好爱者    时间: 2016-6-30 15:51
标题: 求助,关于模型的的加载
rhinocomman中描述物体的标识符
Every object has a Guid (globally unique identifier, also known as UUID, or universally unique identifier). The default value is Guid.Empty. When an object is added to a model, the value is checked. If the value is Guid.Empty, a new Guid is created. If the value is not null but it is already used by another object in the model, a new Guid is created. If the value is not Guid.Empty and it is not used by another object in the model, then that value persists. When an object is updated, by a move for example, the value of ObjectId persists.
This value is the same as the one returned by object.Id.

每个模型都有唯 一标识符,当rhino在加载物体时,如果检测到已有相同的物件标识符,会给物件更新一个新标识。
我现在有问题是:
1)我打算跟踪一批模型,于是我将物件的标识记录起来。
2)当模型加载时启动了跟踪
3)这时问题出现了:当我加载了相同的模型,会导致新模型标识变化(肯定的)。但这个变化并没提供相关的事件(并没触发属性事件)。
4)我现在想做的是:怎么获得加载前后的id标识。




作者: 设计好爱者    时间: 2016-6-30 16:22
问题已解决,加载时判断下就行了^_^




欢迎光临 Rhino(犀牛)中国技术支持与推广中心 (http://bbs.rhino3d.asia/) Powered by Discuz! X3.2