I am getting an error exporting an Excel custom material BOM using iLogic I need help

I am getting an error exporting an Excel custom material BOM using iLogic I need help

ngtatsang98
Contributor Contributor
1,083 Views
8 Replies
Message 1 of 9

I am getting an error exporting an Excel custom material BOM using iLogic I need help

ngtatsang98
Contributor
Contributor

I'm having trouble exporting a custom Bill of Materials. Because I'm new to ilogic, I don't understand much about it. I have attached the code and error image when running the code below. Any help is helpful.

0 Likes
Accepted solutions (1)
1,084 Views
8 Replies
Replies (8)
Message 2 of 9

Frederick_Law
Mentor
Mentor

https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-BE996AA3-DE49-4765-86A7-129DD7B42A4A

 

You have "Logger.Trace".

Don't run in "Trace".

Run in "Info" and change it to "Logger.Info".

0 Likes
Message 3 of 9

ngtatsang98
Contributor
Contributor

It doesn't seem to work. I tried it. Can you help me fix the code? I'm new to it so I don't understand it very well other than copying and pasting to run the code

0 Likes
Message 4 of 9

Frederick_Law
Mentor
Mentor

Hmmm are you running iLogic?

Your screen shot doesn't looks like iLogic.

Change Log Level to "Info":

ilogicLog-01.jpg

0 Likes
Message 5 of 9

ngtatsang98
Contributor
Contributor

yes i am running it 

0 Likes
Message 6 of 9

Curtis_Waguespack
Consultant
Consultant
Accepted solution

@ngtatsang98 

 

The logger was added to Inventor 2019.1.

 

If you are using an older version than 2019, you can just delete all the lines that start with Logger, and the code should still work.

 

If you are using Inventor 2019 without any updates, then you can install the 2019.1 update and then the code should run with the Logger lines.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

EESignature

Message 7 of 9

Frederick_Law
Mentor
Mentor

Which version IV are you using?

Try comment out lines with Logger.

0 Likes
Message 8 of 9

ngtatsang98
Contributor
Contributor

It's great it works I use the 2018 version. I have a request that I need to add a bomb structure column in the Excel spreadsheet. How do I edit the code to separate the purchase details from other details?

0 Likes
Message 9 of 9

ngtatsang98
Contributor
Contributor

I use the 2018 version

0 Likes