Skip to Content
0

PD 16.6 Positioning Selected Symbols

May 15, 2017 at 08:31 PM

65

avatar image

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Phillip Lam
May 16, 2017 at 04:34 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Alison Bowes May 17, 2017 at 01:18 PM
0

Thank you!!

Share
10 |10000 characters needed characters left characters exceeded