Microsoft VBScript runtime error: Type mismatch:'objStream.WriteLine'; Line 120; Char 2

Hi,

I was using Diva just fine on Rhino 5 until this last pass at it, in which now I constantly get this message:

Source: Microsoft VBScript runtime error

Error: Type mismatch: 'objStream.WriteLine'

Line: 120

Char: 2

Code:

I have set my location and my materials. I only changed a couple of things in the geometry but nothing major. Any suggestions?

Thanks,

Kaley

Tags: error, mismatch, type

Views: 3120

Reply to This

Replies to This Discussion

Hi Kaley,

It would help to know what you are doing when you get the error message. For example, have you just pressed the "Nodes" button, or just pressed Submit on the Materials dialog box? It would also help to know what you changed, since that may help to narrow things down. 

Let me know and hopefully we can track down the problem.

Kera

Hi Kera,

Thanks for helping me. 

I had set the location and the nodes. The materials had also been set. I clicked "Metrics", "Point-in-Time Illuminance", then "Run Simulation" and the message immediately pops up.

-Kaley

Hi Kaley,

I think this error is caused because one of the simulation files is 'locked' open by the operating system. Is is possible another simulation window for the same directory is still open or you had a strange crash on your previous run?

If my supposition is indeed the case, restarting your computer should solve the problem. Does that help? In a very bad case, renaming your Rhino file and going through all of the buttons again (Location, Nodes, Materials, Metrics) should also solve the problem.

Best regards,

Alstan

Hi Kaley,

I didn't have time last night to look into the problem further, but it looks like Alstan is on the case.

Let us know if you are still having problems.

Kera

Hi Alstan,

I was wondering if it has to do with the file. I tried restarting, but it repeated the same error code. I even deleted the geometry and rebuilt/reset everything with the same results. I renamed the file and still, same thing. However, when I closed that file and opened a new one to do a quick simulation on a simple box, it worked. I don't know if that gives you any details.

Thanks for the help,

Kaley

J. Alstan Jakubiec said:

Hi Kaley,

I think this error is caused because one of the simulation files is 'locked' open by the operating system. Is is possible another simulation window for the same directory is still open or you had a strange crash on your previous run?

If my supposition is indeed the case, restarting your computer should solve the problem. Does that help? In a very bad case, renaming your Rhino file and going through all of the buttons again (Location, Nodes, Materials, Metrics) should also solve the problem.

Best regards,

Alstan

Hi Kaley,

One thing I forgot to mention is that the files generated by DIVA only follow the Rhino filename up until the first space. So if you named your file from "Kaley 01" to "Kaley 02," the files will still be written in the same directory. If this is the case, try naming it something like "Kaley02" without spaces, and re-run the "Location" button.

If its not the case, please let me know!

Best,

Alstan

Hello, I am running into the same problem. It was working fine, all I did was delete some nodes and rotate the model. Then I started getting the error.

I've since renamed the file, restarted the computer and reset location and nodes - still the error.

 

Any ideas?

 

thanks!

Hi, try navigating to your C:\DIVA\Temp\ folder and deleting everything there. If a file fails to delete, it is the problem. Once you have done that, you will need to re-run all of the DIVA-buttons.

Does that help? If not, what is the name of your Rhino file?

Best,

Alstan

Hi, the name is "Detroit_Border_Patrol_2013.6.19" and i did delete temp files but again to no avail. I have since recreated a whole new file from the ground up and it seems to be working fine.

Thanks!

Hi,

I'm having precisely the same problem. Everything was working great -- I was able to run a couple of simulations without a problem. Then, I changed a few things in the geometry (the most relevant being increasing the size of the node surface by adding another surface and making it 2D), and I started getting this error for any weather-relatd calculations. When I try to run Daylight images the MSDOS window does open, but I get an error pessage upon rendering saying that some values are out of range (I can copy it if that helps).

I have restarted the computer, deleted the temp folder, change the first character of the file name and deleted any calculation folders. The VScript error is still there. Any clue of what could be happening? I don't want to have to re do the entire thing to bump into the same error...

 

Thanks!

if everything works with a simple box model you create from scratch, it's possibly something about the file.. the error message about the image means that it is empty; did you use the standard perspective viewport and had it named as such? are all layers unlocked, and the obj export settings set as per the install instructions? you could also try to walk through the layers to identify possible culprits- start doing viz images for, say, just the walls layer and see whether that works. bulk-exporting just the relevant geometry as obj or 3dm and re-importing into a clean new file might also help. I don't know what OS and settings you are on, but as always, it should be made certain that Rhino has full admin privileges.

best,

m

Hi Alejandra,

Could you zip your C:\DIVA\Temp\[RhinoFileName]\ folder after the error occurs and email it to me at alstan@solemma.net?

I'll take a look at the error.

Thank you,
Alstan

Reply to Discussion

RSS

© 2019   Created by jeff niemasz.   Powered by

Badges  |  Report an Issue  |  Terms of Service