Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
j.brodersen
in reply to: koenroovers

thank's a lot @koenroovers glad that i could help and that it's working:slightly_smiling_face:

learning a lot through this forum and posts from bradeneuropArthur, JhoelForshav, WCrugfield and all the other great people here how to use iLogic. 

 

@bradeneuropeArthur I tried your code but unfortunately i got an error message, something with "Use 'CallByName' function with 'CallType.Set'"!  But did i get it right that you can change the level with it afterwards/on an existing Partslist?

I tried the same in the beginning but got the error message that "Level" is ReadOnly.

Since it would be nice to have a code which can change the level of an existing parts list (it's frustrating if you placed a structured parts list, arranged everything just to find out that you have to change it to part only and start from the beginning). Could you tell me how I have to use callbyname? My attempt 

CallByName(oPartslist,Level,CallType.Set,kPartsOnly)

just gave me the error message member not found.(exception by  HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))