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: 

Macros Question

4 REPLIES 4
Reply
Message 1 of 5
nfelixCXUGM
338 Views, 4 Replies

Macros Question

We have a set of Macros that we use constantly. It was set up by someone that has left the company. It worked fine and still work for Inventor 2022.

 

We are testing it on Inventor 2024, but since the Level of Details go away now certain buttons won't work and gives us error: 

Error in: VBA_Macro_Function_or_Subroutine: Somewhere in function/sub Invalid procedure call or argument Error Code: 5

 

Any idea what i can replace the LevelOfDetail with to make it work?

 

@JelteDeJong

4 REPLIES 4
Message 2 of 5
CGBenner
in reply to: nfelixCXUGM

@nfelixCXUGM 

Welcome to the forums.  I've moved your post here where most of the programming experts hang out.  Good luck!


Chris Benner
Industry Community Manager – Design & Manufacturing


If a response answers your question, please use  ACCEPT SOLUTION  to assist other users later.


Also be generous with Likes!  Thank you and enjoy!


Become an Autodesk Fusion Insider
Inventor/Beta Feedback Project
Message 3 of 5
nfelixCXUGM
in reply to: CGBenner

Will do, thank you.
Message 4 of 5
^_^clovis^_^
in reply to: nfelixCXUGM

Hello

I didn't notice that the "Level of details" were removed in IN2024.

I guess you could look for "ModelStates" in document->ComponentDefinition->ModelStates. Then update your macro.

 

gr

 

Message 5 of 5
WCrihfield
in reply to: nfelixCXUGM

Just posting link here to your other current forum post with similar problem being asked about.

https://forums.autodesk.com/t5/inventor-programming-ilogic/code-question/m-p/12653350 

I posted something there that may be helpful for other folks finding this post, but not the other one, such as the following links:

DrawingView.ActiveModelState (ReadOnly property to check which one it is set to (if any)

DrawingView.SetActiveModelState (method to set its value)

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

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

Post to forums  

Autodesk Design & Make Report