1、选择tools-->execute commands-->edit/run script
2、将下面的代码粘贴到运行框中点击run
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 tab.comment <> "" then
tab.name= tab.comment
end if
Dim col ' running column
for each col in tab.columns
If col.comment <> "" Then
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
if view.comment <> "" then
view.name = view.comment
end if
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
分享到:
相关推荐
### PowerDesigner 中将 Comment(注释)及 Name(名称)内容互相 COPY 的 VBS 脚本 在数据库设计和管理领域,PowerDesigner 是一款功能强大的工具,它可以帮助用户进行概念、逻辑和物理数据模型的设计与维护。在 ...
在Unity游戏开发中,有时我们需要实现将文本内容复制到用户设备的剪贴板功能,特别是在针对iOS平台的应用中。在iOS系统中,剪贴板功能是通过Foundation框架提供的`UIPasteboard`类来实现的。在Unity中,由于它是基于...
### 在CADENCE中将一个PCB复制到另一个PCB中的详细步骤 #### 一、概述 在电子设计自动化(EDA)领域,CADENCE是一款广泛使用的软件工具,它可以帮助工程师高效地进行电路板(PCB)的设计与优化。在复杂的工程项目中,...
NULL 博文链接:https://lhp0902.iteye.com/blog/2150777
在现代Web开发中,与用户交互的一个常见需求是允许用户复制文本到他们的剪贴板。这个功能在诸如分享代码片段、复制网址或者保存重要信息时非常有用。`copytexttoclipboard`是一个轻量级的JavaScript库,专门解决这个...
下面将详细解释如何在Android应用中将assets目录下的文件复制到手机内存。 首先,`assets`目录是Android应用中的一个特殊目录,它允许开发者存放非编译型的资源文件,这些文件在应用运行时可以通过AssetManager访问...
复制和粘贴剪贴板上的内容---Android 中将字符串文字内容复制到系统剪贴板并从剪贴板拿出来显示
# 题目:将一个列表的数据复制到另一个列表中。 # 程序分析:使用列表[:],拿不准可以调用copy模块。
在现代浏览器中将文本复制到剪贴板(0.2 kB) 比较 该模块: 0.2 kB :3.4 kB 安装 $ npm install copy-text-to-clipboard 用法 import copy from 'copy-text-to-clipboard' ; button . addEventListener ( 'click'...
"aspnet中将js封装到dll"是一种实现这一目标的方法。本文将详细介绍如何在Visual Studio 2008环境下,将JavaScript代码编译进DLL文件,以提高代码的安全性和管理性。 首先,理解DLL(动态链接库)的本质。DLL是...
通过上述步骤,我们可以实现在SQL Server中将一个数据库中的某个表完整地复制到另一个数据库中。这种方法简单有效,适用于多种场景下的数据迁移需求。当然,在实际操作过程中还需要根据具体情况调整细节,比如处理...
然后,将 `daemon.sh` 脚本复制到 `/etc/init.d` 目录下: ```bash CMD> cp /u01/app/apache-tomcat-10.0.17/bin/daemon.sh /etc/init.d/tomcat ``` 编辑 `/etc/init.d/tomcat` 文件,在第二行添加以下内容,以便...
镀Chrome剪辑复制 在 chrome 中将文本复制到剪贴板。 var copy = require('chrome-clip-copy') button.addEventListener('click', function () { copy('some text') }) 安装 npm install chrome-clip-copy
汇编实现逆向复制字符串 汇编实现逆向复制字符串 汇编实现逆向复制字符串 汇编课后答案
PowerPoint 2021 中将图片填充到形状中 PowerPoint 2021 中将图片填充到形状中是办公软件中的一个常用功能,它可以将图片填充到各种形状中,例如圆形、三角形、矩形等,从而提高presentation的视觉效果和美观度。...
用于GUI和app designer设计中将数据保存到word中
数据库之间复制表是数据库开发中常见的需求,例如在不同的数据库或同一个数据库中将表之间的数据互相导入。这种操作可以通过编写程序实现,但是需要开发环境,不方便。利用 SQL 语言直接导入是最方便的方法,该方法...
本文将深入探讨如何使用Java编程语言实现从一个数据库中定时自动抽取数据并复制到另一个数据库,以达到数据库间的实时或近实时同步。 首先,我们需要了解基础概念。Java是一种广泛使用的面向对象的编程语言,具有...
本文将详细介绍两种在Android Studio中将文件复制到模拟器的方法:一种是通过Android Studio的图形界面,另一种是使用命令行工具adb。 首先,确保你的电脑已经正确配置了Android SDK,并且在环境变量中设置了adb的...