Search found 8 matches

by PacWood
Wed Apr 11, 2018 4:38 pm
Forum: Features use and tips
Topic: setSelectedLevel gives an Error
Replies: 2
Views: 1227

Re: setSelectedLevel gives an Error

Thank you very much for your help and example code.

The program works now.
by PacWood
Wed Apr 11, 2018 7:42 am
Forum: Features use and tips
Topic: setSelectedLevel gives an Error
Replies: 2
Views: 1227

setSelectedLevel gives an Error

Hello,

I am attempting to select a level in a building via the API.

Below is a snippet of code that successfully runs until
the last line is reached.


var HOME;
var HPC = viewHome("viewerCanvas",
homeUrl,
onerror,
onprogression,
{ roundsPerMinute: 0,
navigationPanel: "default ...
by PacWood
Wed Mar 14, 2018 8:56 am
Forum: Features use and tips
Topic: zoom for HTML5 tool file is weak compared to program zoom
Replies: 8
Views: 2284

Re: zoom for HTML5 tool file is weak compared to program zoom

Hello,

Thank you for your help.

I see that the selected items was not correct in my previous code
so I made a correction.

The close zoom is finally working in the .html file.

Thank you for a great program!
I made a small donation yesterday.


<script>
var HPC = viewHome("viewerCanvas ...
by PacWood
Wed Mar 14, 2018 8:18 am
Forum: Features use and tips
Topic: zoom for HTML5 tool file is weak compared to program zoom
Replies: 8
Views: 2284

Re: zoom for HTML5 tool file is weak compared to program zoom

Hello,

I put in a 6 second delay timer and then did the getUserPreferences();

The code is able to access the HOME data.

When the setSelectedItems is called, I pass in a list:
var itemSel = ["209","210"];
HOME.setSelectedItems(itemSel);

However, the zoom in the .html file does not zoom into ...
by PacWood
Wed Mar 14, 2018 7:42 am
Forum: Features use and tips
Topic: zoom for HTML5 tool file is weak compared to program zoom
Replies: 8
Views: 2284

Re: zoom for HTML5 tool file is weak compared to program zoom

Hello,

Thank you for your help.
Yes, the HPC.getUserPreferences should have been HPC.getUserPreferences()
with the parenthesis. Thank you.

I have noticed that there is still an "undefined" error when I use
the obj returned by HPC.getUserPreferences() with the code below.

I set a break point to ...
by PacWood
Tue Mar 13, 2018 9:27 pm
Forum: Features use and tips
Topic: zoom for HTML5 tool file is weak compared to program zoom
Replies: 8
Views: 2284

Re: zoom for HTML5 tool file is weak compared to program zoom

While re-reading the post, I noticed I did not copy this line in the previous post:

"UP.setAerialViewCenteredOnSelectionEnabled(true);"

Below is the code with the missing line at the end.


<script>

var HPC = viewHome("viewerCanvas",
homeUrl,
onerror,
onprogression,
{roundsPerMinute: 0 ...
by PacWood
Tue Mar 13, 2018 5:07 pm
Forum: Features use and tips
Topic: zoom for HTML5 tool file is weak compared to program zoom
Replies: 8
Views: 2284

Re: zoom for HTML5 tool file is weak compared to program zoom

Hello,

Thank you for your fast reply.

You are correct that I activated the Aerial view centered on selection option in Sweet Home 3D preferences panel
and selected an object in my buiding and was able to get closer.

As you suggested, I read omrico's thread.
In omrico's thread, there is the ...
by PacWood
Tue Mar 13, 2018 10:11 am
Forum: Features use and tips
Topic: zoom for HTML5 tool file is weak compared to program zoom
Replies: 8
Views: 2284

zoom for HTML5 tool file is weak compared to program zoom

Hello,

When I do a "Tools > Export to HTML5" , the .html file viewHomeInOverlay.html
contains the building that I have been working on and it looks good.

However, when I zoom in on 3d view of the building, there appears to be a limit with the zoom for 3d aerial view.
(In the viewHomeInOverlay ...