on 08-25-2016 4:17 PM
Hi all,
does anyone have issues using FindChildByCode() in the PD 16.6? All out Extensions/Script using FindChildByCode() are not working after the migration to PD 16.6.
BR,
Rafal
Problem solved
In 16.6 you have to use:
FindChildByCode("00_MASTER", PdPDM.cls_User)
instead of
FindChildByCode("00_MASTER", cls_User)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rafal,
I think, that using the library prefix is correct approach in this case. Your previous syntax (just cls_User without library prefix) might work in unambiguous cases, like for example cls_Table. This object is only in PDM. But the object User is present in more than one libraries: RMG, RQM, ILM and PDM).
So if you don`t want to examine each object type separately and make your scripts less vulnerable to PD upgrades, I suggest you to use the library prefix each time.
Ondrej
P.S. Your post led me to idea to start a discussion about the complete list of changes in API. You can check here:
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.