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标识。
|