Global function availible for external rules

Global function availible for external rules

j.pavlicek
Collaborator Collaborator
316 Views
0 Replies
Message 1 of 1

Global function availible for external rules

j.pavlicek
Collaborator
Collaborator

Hello,

I'd like to have some "global functions" which I can call from external rules.

 

For example:

I have buttons for external rules (PDF, DWG, BOM2Excel exports). Each of these rules contains same function which determine a filename for an exported file. It's bad for maintenance to have 3 copies of same code.

 

I know that there is possible "to pass and receive values" from external rules - iLogic: Pass an argument back to calling rule but it is not so elegant solution. I'm thinking about calling some function from ApplicationProject. But it seems not possible with RunMacro (You can call a VBA Function, but you cannot get a return value.)

 

Is there some way how to make "library" of global functions for using them across external rules?

 

Thanks

 



Inventor 2022, Windows 10 Pro
Sorry for bad English.
0 Likes
317 Views
0 Replies
Replies (0)