Document properties are messed up

Document properties are messed up

nmunro
Collaborator Collaborator
446 Views
1 Reply
Message 1 of 2

Document properties are messed up

nmunro
Collaborator
Collaborator

Attached picture shows a watch window for both the ActiveDocument object (a 2014 sheet metal part), and for properties of the same object. The add-in is using the Inventor 2013 interop assembly and this problem does not occur if IV 2013 is used instead of 2014. The values for the direct references to the document properties do not match what is shown under the ActiveDocument object! I've put in a support request but I thought it might get a quicker response here.

 

 

        


https://c3mcad.com

0 Likes
447 Views
1 Reply
Reply (1)
Message 2 of 2

xiaodong_liang
Autodesk Support
Autodesk Support

Hi nmunro,

 

I believe you logged this questions through ADN already:) As we have discussed, I have not yet reproduced at my side. But you found it looks it could help you to solve if you do not check the propety directly from application such as 

 

  _invApp.ActiveDocument.SubType.

 

Instead, assign it to a variable with the document and check its SubType

 

  oDoc.SubType

 

I do not know why this would be different at your side, but I'd post here in case it indeed helps in some specific scenario.

0 Likes