on 07-18-2018 1:31 PM
PowerDesigner 16.6
How to redraw the Table symbol on ALL diagrams of active model ?
The current diagram is redraw only now (please, see my script below)
Function %Validate%(obj, ByRef message)
dim sym
dim col
for each sym in activeDiagram.symbols
'msgbox sym.ClassName
if sym.ClassName = "Table Symbol" then
if sym.Code=obj.Code then
if obj.GetExtendedAttribute("PartitionScheme") <> "" then
sym.Shadow= true
sym.ShadowStyle=1
sym.ShadowColor=255
elseif obj.GetExtendedAttribute("FilledManuallyTable") then
sym.Shadow= true
sym.ShadowStyle=1
sym.ShadowColor=200*150*100
else
sym.Shadow= false
end if
if obj.GetExtendedAttribute("SignificantTable") then
sym.LineWidth=3
else
sym.LineWidth=0
end if
end if
end if
Next
activeDiagram.RedrawAllViews
%Validate% = True
End Function
You'll need to apply the Redraw method to all diagrams in several collections:
ActiveModel.ProcessMapDiagrams / TimelineDiagrams / OrganizationChartDiagrams etc
If you have packages, don't forget to do those as well 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.