pdf with apprentice

pdf with apprentice

Anonymous
Not applicable
863 Views
2 Replies
Message 1 of 3

pdf with apprentice

Anonymous
Not applicable


Hi,

I'm trying to create a PDF from an IDW. Thing is, I want to use Apprentice server and I want to use C# to do it.

I have seen examples of this in VB but it won't work for me:
{color:#008080}TranslatorAddIn{color} PDFMaker = m_oserver.ApplicationAddIns.get_ItemById({color:#993300}"{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}"{color});

This results in th error:
Error 2 Cannot implicitly convert type 'Inventor.ApplicationAddIn' to 'Inventor.TranslatorAddIn'. An explicit conversion exists (are you missing a cast?)

I can get the ApplicationAddIn just fine, but I cant turn it into a {color:#008080}TranslatorAddIn.{color}

0 Likes
864 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
And of course:

{color:#008080}ApprenticeServerComponent{color} m_oserver = {color:#0000ff}new{color} {color:#008080}ApprenticeServerComponentClass{color}();
0 Likes
Message 3 of 3

keli_li
Autodesk
Autodesk
You need to use explicit conversion here: PDFMaker = (TranslatorAddIn) ...;
However, publish PDF through Apprentice Server is not supported currently, you could use Inventor Instance instead.
0 Likes