【powerdesigner】将数据库表中Common转为PDM表中Name
2012-12-12 10:15
253 查看
非原创,此文只为自己备忘!
执行方法:Open PDM -- Tools -- Execute Commands -- Run Script
代码如下:
执行方法:Open PDM -- Tools -- Execute Commands -- Run Script
代码如下:
Option Explicit ValidationMode = True InteractiveMode = im_Batch Dim mdl 'the current model 'get the current active model Set mdl = ActiveModel If (mdl Is Nothing) Then MsgBox "There is no current Model" ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) Then MsgBox "The current model is not an Physical Data model." Else ProcessFolder mdl End If 'This routine copy name into code for each table, each column and each view 'of the current folder Private sub ProcessFolder(folder) Dim Tab 'running table for each Tab in folder.tables if not tab.isShortcut then if len(tab.comment) <> 0 then tab.name = tab.comment end if On Error Resume Next Dim col 'running column for each col in tab.columns if len(col.comment) <>0 then col.name =col.comment end if On Error Resume Next next end if next end sub
相关文章推荐
- 【powerdesigner】将数据库表中Common转为PDM表中Name
- 【powerdesigner】将数据库表中Common转为PDM表中Name
- PowerDesigner 从数据库反向生成Pdm时把Comment复制到Name中,从PowerDesigner导入数据库时把Name复制到Comment
- PowerDesigner中逆向工程将数据库中comment脚本赋值到PDM的name
- PowerDesigner逆向操作(从mysql5.0生成数据库的物理模型),把Comment写到name中,pdm文件导出为word
- PowerDesigner从数据库中反向生成PDM,Name不显示字段说明的解决方法
- powerDesign 将mysql pdm转为 oracle 的pdm 或者是 某个数据库 pdm 转其他数据库的pdm
- powerdesigner将PDM转换到OOM时,code与name同时同步转换
- powerdesigner16.5逆向工程,从远程oracle11g数据库导出PDM
- 如何用Powerdesigner的PDM生成数据库及逆向生成
- 如何用Powerdesigner的PDM(物理数据模型)生成数据库及逆向工程(将现有的数据库生成PDM)
- powerdesigner逆向工程,从数据库导出PDM
- PowerDesigner设计数据库后将name自动添加到commit中
- 如何用Powerdesigner的PDM(物理数据模型)生成数据库
- 如何用Powerdesigner的PDM(物理数据模型)生成数据库及逆向工程(将现有的数据库生成PDM)(转)
- 解决PowerDesigner 反向工程没有注释且如何将注释转换成PDM的name
- PowerDesigner导出数据库为PDM物理数据模型文件,然后导出html或者rtf格式文件
- PowerDesigner中怎样切换PDM的数据库管理系统DBMS?
- Powerdesigner逆向工程从现有数据库生成PDM
- PowerDesigner逆向工程生成PDM模型及数据库