(迅速键不只怕执行的话能够从那些途径执行,(火速键无法实施的话可以从那个途径执行

化解power designer
不能自动生成注释的化解办法只须要3步:

powerdesigner 不可以自动生成注释的缓解办法(三步化解),

解决power designer 不可以自动生成注释的搞定办法只要求3步:

一、飞快键
Ctrl+Shift+X 打开脚本编辑器;(快捷键不或许执行的话可以从那个路子执行:Tools
–> Excute commands –> Edit/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 comment 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
‘将表名称作为表注释
tab.comment = tab.name
Dim col ‘ running column
for each col in tab.columns
‘把列名称和comment合并为comment
col.comment= col.name
next
end if
next

Dim view ‘running view
for each view in folder.Views
if not view.isShortcut then
view.comment = view.name
end if
next

‘ go into the sub-packages
Dim f ‘ running folder
For Each f In folder.Packages
if not f.IsShortcut then
ProcessFolder f
end if
Next
end sub

三、如图所示,点击 ‘’run‘’ 按钮。

图片 1

 

再看看物理模型的sql脚本是还是不是曾经有注释了。(能够导出脚本看看注释是或不是中标生成,Ctrl+G)
图片 2

 

http://www.bkjia.com/Mysql/1283990.htmlwww.bkjia.comtruehttp://www.bkjia.com/Mysql/1283990.htmlTechArticlepowerdesigner
不只怕自动生成注释的缓解措施(三步化解), 化解power designer
不或许自动生成注释的化解办法只需求3步: 一、快速键 Ctrl+Shift+X
打开…

一、急忙键 Ctrl+Shift+X 打开脚本编辑器;(神速键不可以进行的话可以从这一个路子执行:Tools
–> Excute commands –> Edit/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 comment 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
‘将表名称作为表注释
tab.comment = tab.name
Dim col ‘ running column
for each col in tab.columns
‘把列名称和comment合并为comment
col.comment= col.name
next
end if
next

Dim view ‘running view
for each view in folder.Views
if not view.isShortcut then
view.comment = view.name
end if
next

‘ go into the sub-packages
Dim f ‘ running folder
For Each f In folder.Packages
if not f.IsShortcut then
ProcessFolder f
end if
Next
end sub

三、如图所示,点击 ‘’run‘’ 按钮。

图片 3

 

再看看物理模型的sql脚本是还是不是早已有注释了。(可以导出脚本看看注释是还是不是中标转移,Ctrl+G)
图片 4

 

相关文章