on 07-18-2018 4:15 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can create a Persistent selection. Take a look at the sample script supplied:
"C:\Program Files\SAP\PowerDesigner 16\VB Scripts\CreatePersistentSelection.vbs"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.