文章目錄前言一、PowerDesigner安裝二、PowerDesigner破解三、逆向工程(Oracle舉例)四、PowerDesigner常用配置1.顯示Comment注釋結(jié)尾前言安裝前期準(zhǔn)備工作(下載地址):64位PowerDesigner16.7:安裝文...
安裝前期準(zhǔn)備工作(下載地址):
64位PowerDesigner16.7:安裝文件
pdflm16.dll:破解文件
將“pdflm16.dll”復(fù)制并覆蓋到軟件安裝的根目錄中。
新建一個模型,如圖所示
PowerDesigner默認(rèn)顯示的列是名稱及類型,如下圖所示:
Option Explicit ValidationMode = TrueInteractiveMode = im_BatchDim blankStr blankStr = Space(1)Dim mdl ' the current model' get the current active modelSet mdl = ActiveModelIf (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 mdlEnd IfPrivate sub ProcessFolder(folder)On Error Resume Next Dim Tab 'running table for each Tab in folder.tables if not tab.isShortcut then tab.name = tab.comment Dim col ' running column for each col in tab.columns if col.comment = "" or replace(col.comment," ", "")="" Then col.name = blankStr blankStr = blankStr & Space(1) else col.name = col.comment end if next end if next Dim view 'running view for each view in folder.Views if not view.isShortcut then view.name = view.comment 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 Nextend sub1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
原理就是把顯示name的列的值,替換成注釋的值,所以下次如果調(diào)整comment,還有重新執(zhí)行腳本,所以最好放在最后執(zhí)行。
感謝大家的耐心閱讀,如有建議請私信或評論留言。
如有收獲,勞煩支持,關(guān)注、點贊、評論、收藏均可,博主會經(jīng)常更新,與大家共同進(jìn)步
來源:本文內(nèi)容搜集或轉(zhuǎn)自各大網(wǎng)絡(luò)平臺,并已注明來源、出處,如果轉(zhuǎn)載侵犯您的版權(quán)或非授權(quán)發(fā)布,請聯(lián)系小編,我們會及時審核處理。
聲明:江蘇教育黃頁對文中觀點保持中立,對所包含內(nèi)容的準(zhǔn)確性、可靠性或者完整性不提供任何明示或暗示的保證,不對文章觀點負(fù)責(zé),僅作分享之用,文章版權(quán)及插圖屬于原作者。
Copyright?2013-2024 JSedu114 All Rights Reserved. 江蘇教育信息綜合發(fā)布查詢平臺保留所有權(quán)利
蘇公網(wǎng)安備32010402000125
蘇ICP備14051488號-3技術(shù)支持:南京博盛藍(lán)睿網(wǎng)絡(luò)科技有限公司
南京思必達(dá)教育科技有限公司版權(quán)所有 百度統(tǒng)計