Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Missing Inventor eNums???

1 REPLY 1
Reply
Message 1 of 2
Anonymous
281 Views, 1 Reply

Missing Inventor eNums???

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?

1 REPLY 1
Message 2 of 2
philippe.leefsma
in reply to: Anonymous

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report