I have an application where I have reverse engineered a database I have a vbscript that correctly matches Table Columns and generates a Reference object between the two Tables. What I haven't quite figured out is how to render them within the default diagram, has anyone done anything similar to this within SAP PowerDesigner scripting.
Thanks in advance, Mike
Request clarification before answering.
Thank you Ondrej, works perfectly, appreciate the response. As a follow-up that someone may find useful there was also a need to add these to the diagram (there's only 1) which is as follows which was added after the above code fragment:
For Each pdmDiag In Model.PhysicalDiagrams
pdmDiag.AttachLinkObject tableRef, pdmParentTable, pdmChildTable
Next
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michael,
it is quite simple. Here is the code which displays already existing references on current diagram. For displaying tables, it is very similar, you just need to use the function AttachObject instead AttachLinkObject.
For each ref in Activemodel.References
Set sym = ActiveDiagram.AttachLinkObject(ref)
NextHTH,
Ondrej
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.