发帖
 找回密码
 立即注册
搜索
4 0 0

一个flexsim树结构的小技巧

历史版块_9 4 4 2012-9-10 20:58:22
给大家分享一个小经验,算是自己学习的一个心得吧。

大家使用flexsim做对象指代,特别是在树中查找对象的时候有很多方法,现在我教大家一个:如图

当看到一些节点,这些节点只有一串数值,且后面还注释这一串地址,那么我告诉大家其实这串数值就是地址所指向的节点的引用。那么我们可以使用tonode()函数来返回该节点,还能使用up()函数返回该节点上级的节点,还能使用ownerobject()函数返回该实体。

这么做的话,大大提高了建模速度。
tonode() :   Assert type as a node pointer.
up():    This command returns the node in the tree that contains thenode.
ownerobject(): This command returns the node with object data attached to it that is the start of the sub-tree that thenode is in. In other words, it returns the object node that contains thenode.

tonode() :   Assert type as a node pointer.
up():    This command returns the node in the tree that contains thenode.
ownerobject(): This command returns the node with object data attached to it that is the start of the sub-tree that thenode is in. In other words, it returns the object node that contains thenode.
──── 0人觉得很赞 ────

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
2012-9-10 21:02:12
学习,呵呵
2012-9-10 21:05:26
MARK 下
2012-12-11 19:49:22
提示: 作者被禁止或删除 内容自动屏蔽
2013-4-4 09:39:50
学习一下!
您需要登录后才可以回帖 立即登录
高级模式
返回
历史版块_9
热门问答
查看更多
1
Flexsim初级建模工程师水平标准
Flexsim初级建模工程师水平标准
40
234
2
流水作业线的仿真
流水作业线的仿真
33
83
3
厂区生产线布局优化案例!新做的!
厂区生产线布局优化案例!新做的!
31
224
4
图形用户界面(GUI)教学视频
图形用户界面(GUI)教学视频
26
75
5
flexsim中文教程,pdf文档已整理-重新整理
flexsim中文教程,pdf文档已整理-重新整理
25
114
博主榜
+ 5