|
Sweet Home 3D Forum » List all forums » » Forum: Features use and tips » » » Thread: setSelectedLevel gives an Error » » » » Post: setSelectedLevel gives an Error |
Print at Jan 26, 2026, 11:40:49 AM |
| Posted by PacWood at Apr 11, 2018, 9:42:07 AM |
|
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. At the line: A javascript error occurs, which is: However, the code prints the object 'objLevel' I can see in the console log, the object 'objLevel' shows there is a function named "getElevation". Does anyone have an idea why there is an error of "getElevation is not a function" and yet there is a function named "getElevation" in the object that is being passed to HOME.setSelectedLevel() ? Below is a screen shot of the console output. thank you for your help. |
|
|
Current timezone is GMT Jan 26, 2026, 11:40:49 AM |