Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jul 19 at 09:25 AM

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

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

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 24 at 08:42 AM

    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

    Add comment
    10|10000 characters needed characters exceeded