In your top level HTML file, have a go with this section near the bottom of the file. I added the underlined code during the EndLoadModel event. This starts the scene with "View 7".
<!-- init template -->
That is just wicked excellent, Earl. thanks
Obviously part of my problem is my lack of familiarity with java script. Can you tell me, how is the statement interpreted by the compiler if it doesn't have the semi-colon at the end and are the commands case-sensetive?
The ';' is interpreted as the end of that statement. In VB, the end of line is the end of the statement. You could write a whole series of commands on one line by simply separating them by semi-colons.
I know this is an older post and already answered, but I have a related question.
Is the behavior the OP saw, the opening of the browser to either a blank background or a default view, exactly how it is supposed to open or is this behavior an error. I've been struggling with the same thing this week myself. I've contacted my VAR, normally very helpful, and they struggled with a solution as well. The only thing that helped was the java scrip line shown in the solution above. Is it not fair to assume that an .html ouput of a Composer project should initially open to the same first view as the project has?
I guess what I'm asking is... "Should I consider the solution above a bandaid for erroneous behavior or standard procedure?" Thanks.
You're going to have to make the code changes as indicated every time you publish the file.
It might be worth the time to learn some java scripting and handle the Goto View statement out of the loop of the published files. That way you can modify the HTML template and not have to deal with this every time you update.
If you are using the Publish to HTML, then you could change the source files found in C:\Program Files\SolidWorks Corp\SolidWorks Composer\Html.