Navin,
ithere 3 different resources which maybe of interest for you.
1. Have a look in PowerDesigner/Help/Customizing and extending Power Designer. There you have an overview where and howyou may extend PD.
2. In PowerDesigner/Help/Metamodel Objects Help. In the new window expand to the list of Libraries. For every main building Block (model type(s), repository, woirkstation,...) you find a library with there classes.
In PbPDM you will find the Class Table with all attributes/methods/collections.
3. In the PD installation directory ( thats my path : C:\Program Files (x86)\Sybase\PowerDesigner 16) you find
a subdirectory \Examples with MetaModel.oom. Thats the meta model for PD classes. In subdirectory \VB Scripts you find some good scripting examples.
Now, if you want to "export" table&Column Information, you may have to expand your method in the extension like this:
Sub %Method%(obj)
' Implement your method on <obj> here
dim s, tab, c
For each s in obj.Symbols
If s.ClassKind = cls_TableSymbol then
Set tab = s.Object
for each c in tab.Columns
output tab.Name & ";" & c.Code & ";" & c.DataType
Next
End If
Next
End Sub