Skip to Content
avatar image
Former Member

PD 16.6 Positioning Selected Symbols

I have a diagram, on which I've already placed a bunch of table symbols. I select a related set, then want to run a script that will arrange them in a certain way.

When I try to access the selection using ActiveSelection in my script (for each itm in ActiveSelection), the items in the active selection are seen as Tables, not as Symbols. And, in turn, the items do not have a Position property to be manipulated.

So... I want to select a bunch of symbols on my diagram and then loop through them as symbols - any tips on how to do this, please?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 16, 2017 at 04:34 PM

    This is code sample:

    set selection = ActiveSelection
    for each item in selection
    set symbols=item.symbols
    for each symbol in symbols
    output symbol.name & " " & "(" & symbol.position.x & "," & symbol.position.y & ")" & " in diagram "& symbol.parent.name
    next

    next

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 17, 2017 at 01:18 PM

    Thank you!!

    Add comment
    10|10000 characters needed characters exceeded