CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   Macro: Scene view - resetView (https://www.cfd-online.com/Forums/star-ccm/108796-macro-scene-view-resetview.html)

KaptainKaracho November 1, 2012 13:01

Macro: Scene view - resetView
 
Hi together,

I'm a new user of StarCCM+ and trying to write a dynamic postprocessing script. One function of my script should load a scene and save it as hardcopy. Especially the function should use the "resetView"-function of StarCCM+, e.g. like the resetView-button in the toolbar on top.

My question: Is this function desposited in the StarCCM+ java classes? If yes, how can I call the function to use it.

Thank you a lot for your support :)

cfdguy November 11, 2012 10:30

Hi KaptainKaracho,

Have you tried:

scene.ResetCamera();

I suggest you load your macro into NetBeans and then query any Scene type variable using Ctrl-Space. Then you'll see all the methods associated with it.

Regards.


All times are GMT -4. The time now is 11:44.