Calling an External Function Directly

 

Use the following method to directly call a function in your application library. This method would be used if you do not need to collect any data from the user or if you plan to collect your data "on the fly".  The latter technique should not be used if you want your application command to REGEN with your part.  If your function is mainly for analysis or inquiry or if you are processing some intermediate state which does not alter the database then this technique is fine.  You would not assign this to any feature and it would not need to REGEN.

 

To make a direct call to a function you will need to use a command of the form  "~Lib:Function".  If a command is preceded by a tilde (~), it is assumed to be the name of a void function with void arguments (void function(void)).

 

For Example:

 

 

an item=button
label=Ov Ex1
command =~VxOvx:VxTst1

 

  

In this case the function VxTst1() in the application library VxOvx will be called directly.  The included example does nothing more than print a message to the startup window.

 

MESSAGE: VxTst1() was called.

MESSAGE: VxTst1 : VX Version # = 200

 

Return to VX CAD/CAM Index