Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Is there a way to set the model orientation to a named view using the VB API? All I can find in the docs is some information on drawing views.
I have an Excel spreadsheet set up as a model configurator, and need to set the view to "Default" or some other defined view after setting model parameters and regenerating.
Solved! Go to Solution.
Hi, please find mapkey string which can be called from VB API.
session.RunMacro("~ Command `ProCmdNamedViewsGalSelect` `RIGHT`;")
Instead of "RIGHT", you can write your named view's name.
Regards,
Jaykishan
I guess there is no such VBAPI function. but you can send a Creo command with Mapkey in VB API, as a work around.
Hi, please find mapkey string which can be called from VB API.
session.RunMacro("~ Command `ProCmdNamedViewsGalSelect` `RIGHT`;")
Instead of "RIGHT", you can write your named view's name.
Regards,
Jaykishan