Skip to Content
0

How to programmatically select a table Symbol which is located in the Architecture Area?

Jul 18 at 03:15 PM

35

avatar image

PowerDesigner 16.6

How to programmatically select a table Symbol which is located in the Architecture Area?

For each sym in activeDiagram.symbols
if sym.ClassName = "Architecture Area Symbol" then
For each sym in ????
????

' I need Table Symbol in this Architecture Area

Next
end if
Next

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

2 Answers

George McGeachie Jul 19 at 09:25 AM
0

You can create a Persistent selection. Take a look at the sample script supplied:

"C:\Program Files\SAP\PowerDesigner 16\VB Scripts\CreatePersistentSelection.vbs"

Share
10 |10000 characters needed characters left characters exceeded
Alexander Yuzhakov Jul 24 at 08:42 AM
0

I found the solution I needed:


Function %Validate%(obj, ByRef message)

Dim t, s

For each t in activemodel.ArchitectureAreas
For each s in t.symbols
IF t.GetExtendedAttribute("room_type") = "new" then
s.LineColor = 0
ELSE
s.LineColor = 255
END IF
Next
Next

ActiveDiagram.RedrawAllViews()
%Validate% = True

End Function

Share
10 |10000 characters needed characters left characters exceeded