cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

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

GeorgeMcGeachie
Active Contributor
0 Kudos

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

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