讨论 --- 求助,关于模型的的加载

[复制链接]
跳转到指定楼层
14091 设计好爱者 发表于 2016-6-30 15:51:14 楼主
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标识。



分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享
关于大陆地区Rhino原厂培训中心
 楼主| 设计好爱者 发表于 2016-6-30 16:22:21
2
问题已解决,加载时判断下就行了^_^
您需要登录后才可以回帖 登录 | 注册成为会员

本版积分规则