Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

API Onboard Help Bug Report | Inv 2018

Anonymous

API Onboard Help Bug Report | Inv 2018

Anonymous
Not applicable

.

 

Have a look at the onboard API Help Sample, "Write out all document materials to a file. API Sample".

 

VBA is reporting "(Error 91) Object variable or With block variable not set"

 

at the line Print #1, " Category: " & material.Category.DisplayName

 

Using Inv 2018.1.2 build 171

 

 

0 Likes
Reply
269 Views
1 Reply
Reply (1)

YuhanZhang
Autodesk
Autodesk

Thanks for report this error in sample, I will update it for API help. Please replace the line using below line on your side:

Print #1, "      Category: " & material.CategoryName

The problem is because some material asset's category is empty.



If this solves the problem please click ACCEPT SOLUTION so other people can find it easily.



Rocky Zhang
Inventor API PD
Manufacturing Solutions
Autodesk, Inc.

0 Likes