on 08-04-2017 5:38 PM - last edited on 02-04-2024 12:29 AM by postmig_api_4
Hi,
I am creating automation in Java and stuck on deleting model from the folder in Power Designer. My code is:
Model model = new Model(pdApp.OpenModel(projectName));
//Going inside the folder
BaseObject fO = model.FindChildByName("DataLake", PdPRJ_Classes.cls_ProjectFolder);
//Getting the list of models
ObjectBag models = fO.GetChildColl(PdPRJ_Classes.cls_ModelDocument);
So how can I iterate through the list of models and delete only that have special names
I am using org.eclipse.swt.win32.win32.x86_64 and pdj2com_16.6.2X64
Do not use GetChildColl.
Instead, use f0.Children.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.