ApprenticeServerDrawingDocument - PartsList

ApprenticeServerDrawingDocument - PartsList

tore.marskar
Contributor Contributor
64 Views
0 Replies
Message 1 of 1

ApprenticeServerDrawingDocument - PartsList

tore.marskar
Contributor
Contributor

Hi

 

(Inventor 2025, .Net 8.0)

 

sh.Name returns the expected string, so the objects is at least partially OK.

 

I get an exception 'Not implemented (0x80004001 (E_NOTIMPL))' when I try to get the parts lists of the sheet. A simple null check throw the same exception.

 

Get the same exception if i try to get the sheets Title Block. Seems strange that two such important features should not be implemented.

 

Inventor.ApprenticeServerComponent apprentice = new Inventor.ApprenticeServerComponent();
Inventor.ApprenticeServerDocument apprenticeDoc = 
    apprentice.Open(fileName);

Inventor.ApprenticeServerDrawingDocument drw = apprenticeDoc as Inventor.ApprenticeServerDrawingDocument;

foreach(Inventor.Sheet sh in drw.Sheets)
{
    string plName = sh.Name;
    Inventor.PartsLists pls = sh.PartsLists;

 

0 Likes
65 Views
0 Replies
Replies (0)