zoukankan      html  css  js  c++  java
  • PowerDesigner软件的使用

    1、 报错:Could not Initialize JavaVM 的解决方案:

         powerDesigner不支持x64JDK,ok.安装32位.

         仅仅是安装一下,不要做任何配置.......关闭powerDesigner,再打开powerDesigner,连接成功.

    2、powerDesigner逆向工程报错:Unable to list the users. 的解决方案:

        选择菜单栏中的Database -> Change Current DBMS ,给DBMS选择你的数据库类型【我使用的是MYSQL5.0】 确定就行了

    3、PowerDesigner中comment和stereotype两个字段的互相转换,需要执行语句【其他字段之间原理是一样的】

        

            由于PDM 的表中 Name 会默认=Code 所以很不方便, 所以需要将 StereoType 显示到表的外面来

           打开[工具]->[显示属性](英文:Display Preferences) ->Content->Table->右边面板Columns框中 勾选: StereoType ,这样再在 StereoType中填入code字段相同内容就会显示在图形界面上了

    使用说明: 在【Tools】-【Execute Commands】-【Edit/Run Script】 下。输入下面你要选择的语句即可,也可以保存起来,以便下次使用,后缀为.vbs。

     需要注意的问题是:运行语句时必须在Module模式下,如果是导出报表时执行会出现错误提示。

    代码如下:

     1 '把pd中那么comment  想自动添加到stereotype里面   
     2 '如果stereotype为空,则填入comment  ;如果不为空,则保留不变,这样可以避免已有的注释丢失.
     3 
     4 Option   Explicit 
     5 ValidationMode   =   True 
     6 InteractiveMode   =   im_Batch 
     7 
     8 Dim   mdl   '   the   current   model 
     9 
    10 '   get   the   current   active   model 
    11 Set   mdl   =   ActiveModel 
    12 If   (mdl   Is   Nothing)   Then 
    13       MsgBox   "There   is   no   current   Model " 
    14 ElseIf   Not   mdl.IsKindOf(PdPDM.cls_Model)   Then 
    15       MsgBox   "The   current   model   is   not   an   Physical   Data   model. " 
    16 Else 
    17       ProcessFolder   mdl 
    18 End   If 
    19 
    20 '   This   routine   copy   comment     into   stereotype   for   each   table,   each   column   and   each   view 
    21 '   of   the   current   folder 
    22 Private   sub   ProcessFolder(folder)    
    23       Dim   Tab   'running     table    
    24       for   each   Tab   in   folder.tables    
    25             if   not   tab.isShortcut then
    26                      if  trim(tab.stereotype)="" then'如果有表的注释,则不改变它.如果没有表注释.则把comment  添加到注释里面.
    27                         tab.stereotype   =   tab.comment  
    28                      end if  
    29                   Dim   col   '   running   column    
    30                   for   each   col   in   tab.columns   
    31                         if trim(col.stereotype)="" then '如果col的stereotype为空,则填入comment  ,如果已有注释,则不添加;这样可以避免已有注释丢失.
    32                            col.stereotype=   col.comment     
    33                         end if 
    34                   next    
    35             end   if    
    36       next    
    37   
    38       Dim   view   'running   view    
    39       for   each   view   in   folder.Views    
    40             if   not   view.isShortcut and trim(view.stereotype)=""  then    
    41                   view.stereotype   =   view.comment      
    42             end   if    
    43       next    
    44   
    45       '   go   into   the   sub-packages    
    46       Dim   f   '   running   folder    
    47       For   Each   f   In   folder.Packages    
    48             if   not   f.IsShortcut   then    
    49                   ProcessFolder   f    
    50             end   if    
    51       Next    
    52 end   sub

    4、powerdesigner反向MySQL 5.1数据库生成ER图

      http://blog.sina.com.cn/s/blog_54cae6d70101h4dj.html

  • 相关阅读:
    实现基于C++的动态事件机制(转)
    D3D HLSL 一段代码注释
    directx加载ms3d动画模型
    几种空间分割算法研究之bsp
    IxEngine开发笔记
    使用UVAtlas技术管理贴图
    八叉树
    c#调用C++写的dll导出类,包含继承,重载等详细介绍(转载)
    给自己毕业前的一点任务
    大小端问题
  • 原文地址:https://www.cnblogs.com/eaglezb/p/6589320.html
Copyright © 2011-2022 走看看