@dan rathbun said:
The API docs say this won't work... because the file is already open (on PC,) by the time the AppObserver gets loaded.
Dan,
In my script:
When double-click on SU file
- opening the model in SU
- execute PRODUCE.sceneobserver (automatically)
- A Appobserver is also created (which fires PRODUCE.sceneobserver again, but since there already is an observer there is no new one created)
- When a model is then opened from the file menu the Appobserver is called
Logically and after testing this seems to work ok.
My code here is not complete though, since in my code there is another check to see if the framobserver must be created or not (depending if the opened model has some specific settings)