API - Compile error with DrawingView

API - Compile error with DrawingView

lian_xie
Contributor Contributor
484 Views
2 Replies
Message 1 of 3

API - Compile error with DrawingView

lian_xie
Contributor
Contributor

Hello There,

I was trying to test something on the drawing document with VBA and found an error today wtih "DrawingView" object with Inventor 2014 (as shown in the attached word file).  The same code worked fine with Inventor 2017.

Since I need to support Inventor 2014 for a while and would like to have this problem solved.

Thanks, Lian

0 Likes
Accepted solutions (1)
485 Views
2 Replies
Replies (2)
Message 2 of 3

wayne.brill
Collaborator
Collaborator
Accepted solution

Hi Lien,

 

The DrawingView object has been in the Inventor API for many releases before Inventor 2014. (first available in Inventor Version 4)

 

It seems like there is something in that project that is causing it. Can you try adding the Inventor namespace?

 

Dim oDrwView As Inventor.DrawingView

 

Thanks,

Wayne



Wayne Brill
Developer Technical Services
Autodesk Developer Network

Message 3 of 3

lian_xie
Contributor
Contributor

Thanks for the quick reply.

The solution worked well.

Thanks, Lian

 

0 Likes