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: 

VBA Plugin doesn't work

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
Anonymous
749 Views, 6 Replies

VBA Plugin doesn't work

Hello,

 

we are using Inventor Professional 2015, SP2 update 6 with network licenses in our company. Since a few weeks we have problems with the VBA plugin. If someone logs on to a new computer using his Windows network user account, the VBA Plugin doesn’t work. You can open the VBA plugin but it’s “dead” (see the picture below) – you can’t even open a project manually.

The strange thing is: if you log on to a computer you have been logged on to before, everything still works.

I work as a design engineer and have no idea what to do. We have asked out IT department for help but they also couldn’t solve the problem.

 

Thanks for your help.

 

vba.jpg

Tags (1)
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: Anonymous

Hello @Anonymous

 

Have you tried to run the Inventor program as Administrator (right-click the icon or maybe shift+right-click, and thenselect "Run as Administrator...")?

 

At times it has been beneficial to run Inventor as administrator the first time a new user logs on a machine.

 

Regards,

Jens Bejer Pedersen

Developer, Symetri A/S

www.symetri.com

Message 3 of 7
Anonymous
in reply to: Anonymous

Hello jens.bejer.Pedersen,

 

thank you for the hint.

 

I tried running Inventor as administrator but it didn't help.

It made the situation even worse -  I had no access to the network drives anymore.

 

Regards

Message 4 of 7
Anonymous
in reply to: Anonymous

Hello @Anonymous

 

Yea that should probably have been expected.

 

When you run as administrator, that process would not have access to the mapped drives of the normal user.

 

I should probably have said try to start Inventor and the VBA (Alt+F11) as administrator, stop both again and then try as the normal user.

 

Sometimes this fixes some issues with proper registration in the registry.

 

There is also some command line arguments to the Inventor program that might be usefull:

Autodesk Inventor Professional 2018
Command line help

 

IMPORTCUSTOMIZATIONS - Import customization settings from a specified XML file
IMPORTOPTIONS - Import application options from a specified XML file
IMPORTRIBBONCUSTOMIZATIONS - Import Ribbon customization settings from a specified XML file
INSTALL - installs all required registry settings
LANGUAGE - Launch with a specified available language pack
NOSTARTUPCOMMAND - Don''t open a file or create a new one on start up. Often used with RunTextCommandFile
RUNTEXTCOMMANDFILE:<FILENAME> - Runs a file containing text commands. Can be combined with NoStartCommand
UNINSTALL - removes all registry settings, resulting in a loss of user preferences

 

The /INSTALL argument could maybe help?

 

Regards,

Jens Bejer Pedersen

developer, Symetri A/S

www.symetri.com

Message 5 of 7
bradeneuropeArthur
in reply to: Anonymous

Hi,

Is the VBA project file available for inventor?
Is the VBA project file on the local machine or network?
If the VBA project file is on a server, is then the path correctly defined?

Regards,

Regards,

Arthur Knoors

Autodesk Affiliations:

Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

Message 6 of 7
JaneFan
in reply to: Anonymous

Hey @Anonymous,

 

Please do following check:

On the new computer, check inventor's Application options: Find Default VBA project settings in File tab.

Is it pointing to a Default.ivb file?

If yes, try to check whether Default.ivb file can be accessed manaully with the login user.

If not, please specify Default VBA project to a certain path which the login user can access it.

 

Path.jpg




Jane Fan
Inventor QA Engineer
Message 7 of 7
Anonymous
in reply to: Anonymous

Hello

 

 

 

the /INSTALL argument worked - thank you so much 🙂

 

Regards

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report