Missing Inventor eNums???

Missing Inventor eNums???

Anonymous
Not applicable
386 Views
1 Reply
Message 1 of 2

Missing Inventor eNums???

Anonymous
Not applicable

Currently we are running Inventor 2011.

 

More and more I am seeing my VBA apps complain that they do not recognize Inventor eNumerations.

 

Today an app that has run flawlesslly for years suddenly did not like the following line of code

 

Set oEdges = oFlat.GetEdgesOfType(Inventor.FlatPatternEdgeTypeEnum.kBendUpFlatPatternEdge, True) 

 

I had to change it to the enum value before it would compile and run.

 

oEdges = oFlat.GetEdgesOfType(64004, True)

 

 

Other enums appear to work fine.

 

Any Idea what is going on here?

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

philippe.leefsma
Alumni
Alumni

Hi,

 

That's not a known issue, to my knowledge I've never heard of such behavior.

 

In VBA the enum do not require to be fully qualified, unlike in .Net.

 

So 

 

oFlat.GetEdgesOfType(kBendUpFlatPatternEdge, True) 

 

Should be valid.

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

0 Likes