Units
页面、单元组中所有图形单元的集合,UnitCount返回单元总数,Units[n]返回索引号为n的单元(第一个单元的索引号为0)。FindUnit函数返回某个图形单元在其中的位置号(第一个单元位置号为0)。
Visual Graph脚本示例
选择所有矩形单元
Selection.Clear()
I=0
While I < UnitCount
d = Units[I]
if d.Type = "rect" then
Selection.Add( d )
end if
I = I + 1
Wend