Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8705

Function for Get a specific entity from Entity Collection

$
0
0

Hi All

I found there is a function for retrieving the specific object collection from the Model 

Dim Mdl As PdCommon.BaseModel

    Set PD = CreateObject("PowerDesigner.Application")

    PD.OpenModel ("D:\PowerDesigner\project.pdm"

For Each Mdl In PD.Models

    Debug.Print Mdl.Name

   Set ObjTab = Mdl.GetCollectionByName("Tables")

next

Is there is any function to get the specific object from the collection than iterating through the collection . For example . I want to get the emnployee table from the   ObjTab collection

Set emptab =ObjTab .<<< functionname >>("Employee")

I tried GetCollectionByName , but its not working

 

Thanks for help

 

Ani


Viewing all articles
Browse latest Browse all 8705

Trending Articles