iAssembly and Parts List - access to member data

iAssembly and Parts List - access to member data

pzuziak
Contributor Contributor
478 Views
0 Replies
Message 1 of 1

iAssembly and Parts List - access to member data

pzuziak
Contributor
Contributor

Good morning,

 

I have assembly drawings that contain a factory drawing and multiple parts lists for all the members.

I am trying to automatically generate title of the Parts list - to include member part number. The member part number is also required for parts list export - I'd like to map the member part number to the exported file name.

 

I am having trouble to access the member information from the parts list. This code returns an error:

 

string[]  membersList = partsList.get_MembersToInclude();

Error message:

{"Member not found. (Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))"}

 

The property "MembersToInclude" shows that there is one element in the array:

memberstoinclude.JPG

 

Could someone point me in the right direction please?

 

Kind regards

Przemek

0 Likes
479 Views
0 Replies
Replies (0)