Identify unused User Variables in Variable Table

PLM World Member Genius PLM World Member Genius
PLM World Member Genius

Has anyone written any code or program that will identify any unused User Variables named by User from the Variable table?

 

I would guess it needs to loop through the forumla field of all variables to search for the name to see if it is used or not.

 

Carl Breving

3 REPLIES

Re: Identify unused User Variables in Variable Table

Phenom
Phenom

Not sure if you still need this, attached is a utility macro that lists and allows to purge all unused 'user' variables. Hope you find this useful.

 

 

Untitled.png

 

 

Re: Identify unused User Variables in Variable Table

Phenom
Phenom

Just discovered Inventor 2015 has introduced this functionality and the one for Solid Edge is way better than the competition.

 

Re: Identify unused User Variables in Variable Table

Phenom
Phenom

A detailed tutorial on how to build this utility is available here:

http://www.surfandcode.in/2014/10/making-of-purge-variables-for-solid.html

This can help to improve and adapt it for mroe specific purpose.

Also it comes with the full source code.

 

~Tushar

www.SurfAndCode.in