Anonymous
267 Views, 1 Reply
11-21-2018
06:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
11-21-2018
06:35 AM
API Onboard Help Bug Report | Inv 2018
.
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
01-28-2019
01:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
01-28-2019
01:31 AM
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.