# m$ `6 V6 P- ~/ U0 Y大家使用flexsim做对象指代,特别是在树中查找对象的时候有很多方法,现在我教大家一个:如图 . x" t% y9 j7 Y' b[attach]748[/attach] : Q* w- Y7 X) O& L* a当看到一些节点,这些节点只有一串数值,且后面还注释这一串地址,那么我告诉大家其实这串数值就是地址所指向的节点的引用。那么我们可以使用tonode()函数来返回该节点,还能使用up()函数返回该节点上级的节点,还能使用ownerobject()函数返回该实体。6 h, ~& n+ N" A
- S( ?- z2 `: c8 D7 B; x
这么做的话,大大提高了建模速度。2 H3 ]+ I% N: e! K! I7 w
tonode() : Assert type as a node pointer. 6 m. L7 d& S& }+ G& aup(): This command returns the node in the tree that contains thenode. 5 f' D, o) P' N5 [ d) ?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. Q4 e+ u4 D" M3 g
8 a# t5 o6 E) P8 b. a. \4 J# [ ftonode() : Assert type as a node pointer. . t4 b5 g" e. P2 Sup(): This command returns the node in the tree that contains thenode.5 I4 j3 h5 q& S) L
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.作者: CraneJan 时间: 2012-9-10 21:02
学习,呵呵作者: 雨花台 时间: 2012-9-10 21:05
MARK 下作者: huangwei 时间: 2012-12-11 19:49
初学,学习作者: a3348215 时间: 2013-4-4 09:39
学习一下!