Quantcast
Channel: SCN : Discussion List - SAP PowerDesigner
Viewing all articles
Browse latest Browse all 739

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 739

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>