'使用方法使用方法
'PowerDesigner->Tools->Execute Commands->Edit/Run Scripts
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
        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

转载于:https://www.cnblogs.com/jamyxu/p/6038166.html

powerDesigner 把name项添加到注释相关推荐

  1. powerDesigner 把name项添加到注释(comment),完美方案!

    第一次写博客,分享一点经验吧,平时大家用powerDesigner的时候,pd是不会把name项默认添加到comment的,所以生成的数据库表里面也没有中文字段的注释. 我在网上查了一下.有解决方案了 ...

  2. PowerDesigner为表字段添加Comment注释,让name等于Comment

    使用PowerDesigner工具设计数据库表,为其中的一些字段增加注释. 具体操作如下: 1.双击需要生成字段注释的表 2.选择Columns选项,点击如图按钮 3.找到Comment并打勾,也可以 ...

  3. Android Studio新建类头部注释和添加函数注释模板及快捷键

    一,Android Studio新建类头部注释 是不是有时候看到这个很心烦 其实Studio中有设置修改这些注释模板的信息的功能 其实很简单,只需要两步: 1.打开Setting设置面板,找到File ...

  4. Excel的同一单元格中为中文添加拼音注释(转)

    Excel的同一单元格中为中文添加拼音注释(转)     由于工作的需要,经常要为中文添加拼音,这样可以为某些生僻的汉字加上拼音注释.假如是在Word中倒也非常简单,但Excel 2000/2002中 ...

  5. Python将新项添加到字典[重复]

    本文翻译自:Python add new item to dictionary [duplicate] This question already has an answer here: 这个问题在这 ...

  6. zend studio自动添加文件注释和方法注释

    zend studio自动添加文件注释和方法注释 进入首选项=>PHP=>Editor=>Template=>New Name\Description\Pattern里面分别填 ...

  7. 【Groovy】xml 序列化 ( 使用 MarkupBuilder 生成 xml 数据 | 标签闭包下创建子标签 | 使用 MarkupBuilderHelper 添加 xml 注释 )

    文章目录 一.标签闭包下创建子标签 二.使用 MarkupBuilderHelper 添加 xml 注释 三.完整代码示例 一.标签闭包下创建子标签 在上一篇博客 [Groovy]xml 序列化 ( ...

  8. ExtJS4为form表单必填项添加红色*标识

    通常情况下,ExtJS4的form表单必填项在输入状态下会有特殊提示,非输入状态下,显示却和其他项没有任何区别.为使必填项更加容易区分,我们需要根据allowBlank的属性值,为form表单中的必填 ...

  9. IntelliJ IDEA如何设置添加类时注释作者信息和日期时间

    IntelliJ IDEA如何设置添加类时注释作者信息和日期时间 如何达到这种效果呢?出现作者自己的信息,通过Idea如下操作: 步骤:1File-->Settings 2.Settings-- ...

  10. python语言的两种注释方法_python编程时添加中文注释的方法

    python编程时添加中文注释的方法 发布时间:2020-08-24 17:09:52 来源:亿速云 阅读:77 作者:小新 这篇文章主要介绍python编程时添加中文注释的方法,文中介绍的非常详细, ...

最新文章

  1. Linux_Shell基础
  2. Tomcat 7 安装成功,启动后显示空白页问题
  3. 灵魂拷问:后端业务开发要会用 K8s 到什么程度?
  4. HTML/CSS——子元素相对于父元素固定定位解决方案
  5. .NET Core 3.0 中的数据库驱动框架 System.Data
  6. 电机与拖动单相变压器实验,江南大学物联网工程学院,实验报告
  7. CentOS 6.4安装pip,CentOS安装python包管理安装工具pip的方法
  8. 【AI视野·今日NLP 自然语言处理论文速览 第一期】Fri, 4 Jun 2021
  9. Memcached 教程 | 菜鸟教程
  10. 第一个程序python-HelloWorld
  11. [转载] JAVA的throw用法及扩展
  12. c语言小程序:打文字游戏【图形库graphics.h】
  13. 销售管理系统java sql_java+sqlserver商品销售管理系统的设计与实现
  14. ntpdate 安装_SAS 9.4 安装教程
  15. rose oracle双机切换故障,oracle 审计引起的问题 (双机软件roseha)
  16. 视频格式转换器之视频格式在线转换详细教程
  17. 文件删除如何恢复?电脑数据恢复,4个详细方法
  18. C语言 投票选举问题
  19. Linux关闭重启防火墙
  20. java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String,toArray向下转型失败

热门文章

  1. error: passing ‘const AppJniCommand’ as ‘this’ argument discards qualifiers [-fpermissive]
  2. 使用jdk提示Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper
  3. 编码基本功:关于构建(build)号,不懂不要装
  4. 编译出错:self-encoder.context-me_method = ME_UMH;
  5. 由0.1+0.2-0.3不等于0说起
  6. 说不尽的洒脱:不义而富且贵,于我如浮云
  7. 低档显卡无法支持2K显示器
  8. 欢庆博客达到V5级别,感恩所有程序员
  9. 管理感悟:忙的真正含义是没心思
  10. Day_05显示鼠标