PDM Generation Database-2 removing constraint items for each field in PDM

Source: Internet
Author: User

Option Explicit

Validationmode = True

Interactivemode = Im_batch

Dim MDL ' 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 ' if it's processing PDM, here's Pdpdm.cls_model

MsgBox "The current model isn't an physical Data model."

Else

ProcessFolder MDL

End If

' This routine copy name to comment for each table, each column and each view

' of the current folder

Private Sub ProcessFolder (folder)

Dim item ' object to be processed

' Process the name and code of each entity or class first

Dim tab

For all tab in Folder.tables

If not Tab.isshortcut then

Dim col

For each col in Tab.columns

Col. Servercheckexpression= ""

Col. Listofvalues = ""

Col.lowvalue= ""

Col.highvalue= ""

Next

End If

Next

' Recursive traversal of subfolders

Dim F ' Sub-folder

For each F in folder. Packages

If not F.isshortcut then

ProcessFolder F

End If

Next

End Sub

PDM Generation Database-2 removing constraint items for each field in PDM

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.