cancel
Showing results for 
Search instead for 
Did you mean: 

Manipulating object symbol by vbscript

Former Member
0 Kudos

Hello,

is there any possibility to adjust the order of table symbol on the diagram by vbscript? I used scripting to create new table, to attach a new symbol to that table, but I haven`t found any way, how to put the table symbol under the symbol of other table. My new symbol should be partially overlaped by other table symbol.

In fact, I`m trying to find the Order - Send to backward function from the context menu of table symbol on the diagram.

Can someone help?

Thank you,

Ondre

Accepted Solutions (1)

Accepted Solutions (1)

former_member185199
Contributor
0 Kudos

Hello Ondreij

You get z Order by the order in the collection:

Symbols As ObjectColOrdered composition collection of Base Symbol (BaseSymbol). This collection owns all symbols displayed in current diagram. The order of symbols in this collection is the depth order: the last object in the collection appears in front of all others.

Symbols in Diagrams is an Orderd collection you can move symbols with the move function.

I.1.3 Ordered collections (ObjectCol)

Such collections support the following additional properties and methods:

ObjectCol member:Usage:
Insert(idx As Long = -1, obj
As BaseObject)
Inserts objects in collection. If no index is provided, the index -1 is used
wich means the object is simply added as the last object of the
collection.
RemoveAt(idx As Long = -1,
delete As Boolean = False)
Removes object at given index from collection. If no index is provided the
index -1 is used wich means the removed object is the last object in collection
(if any). Optionally delete the object.
Move(dest As Long, source As
Long)
Moves object from source index to destination index.
CreateNewAt( idx As Long
= -1, kind As Long = 0) As BaseObject
Creates an object of a given kind, and inserts it at given position. If no
index is provided the index -1 is used wich means the object is simply added as
the last object of the collection. If no object kind is specified the value 0 is
used wich means that the Kind property will be used. See below the restrictions on using this
method.

HTH

dj

Former Member
0 Kudos

Thanks Dirk, that was it.

Ondrej

Answers (0)