Well, I've been beating this jlink horse for a few days now... Trying to
kill it and I think I might have had a dead horse to begin with.
I can't programatically set a view to "General". Jlink lets you create a
general or projection view only. It does not let you create anything else.
Similarly, you cannot change the view type. There is no Jlink option. So
then I got really clever and thought of running a mapkey to select each
view and set it to General. 1) Can't select a view in the same way as
pro/e right click, and 2) can't stop J-link, play the mapkey and then
resume Jlink. IE. Jlink will not allow you to run a mapkey while its
running, it will only stack the macros and run them after jlink has
stopped. You can't even prepare a mapkey that modifies "right view_3" for
example. Ctrl-F does not have views as an option of things to find.
Jlink is just very limited. Toolkit seems to be limited as well, not only
by the complexity of the license usage where a license is kept for 15
minutes and some other retarded PTC style limitations (as if anyone in
their right mind wants to compete by making pro/e better or maybe even make
money or make their software work), but also the same jlink limits:
"The function ProMacroLoad() loads a macro string or a mapkey
onto a stack of macros that are executed after control returns to
Pro/ENGINEER."
And in pro Toolkit there is also no drawing view type setting options. But
for who ever is interested in wasting their life times, there is some hope:
"To execute a macro from within Pro/TOOLKIT, call the function
ProMacroExecute(). The function runs the Pro/ENGINEER
macro and returns the control to the Pro/TOOLKIT application.
It executes the macros previously loaded using the function
ProMacroLoad(). The function works only in the synchronous
mode."
Anyway, At least I am able to delete a page using Jlink. This will
definetly mess up the views if there are child views. maybe It will fail
saying that there are child views or a parent view cannot be deleted where
child views exist in some other sheet. I will now go back to test this.
Hey maybe I get lucky and the child views are set to "general"
automatically.