I have attached a file I had laying around, can't remember who wrote it I'm afraid. It demonstrates how to use the use the RhinoCommon classes and methods in your script using Python. I think there was a thread with a single line font stroke somewhere here on the board. Hope that helps.. textToCrv.gh
Haha, it's magic! Sorry for not responding sooner, just got back from London and Copenhagen. You can always use the Python function type()to check if your geometry is of the correct type. It's pretty handy. Also, you could use to add a conditional check before the split curve function. This way it is easier to narrow down where the problem is.
Hi Hamia, you will find the material library file at C:\DIVA\Daylight\material.rad. It is a text file, you can add as many custom materials here as you like following the Radiance format. There is a short description on creating your own radiance materials on our wiki. The names you give the materials in the description will then show up using the material component in grasshopper.
First I would check over the video tutorials. If you have saved your rhino file with a name (no spaces) and run a daylight factor using the diva for rhino toolbar (the 1.9 version one- delete the old one), then you should have a folder with the needed analysis files here:
When you open grasshopper within the rhino file you are working with, it is checking this folder for the needed analysis files. These vary by the type of analysis, so check the "metric" panel on the component and select daylight factor. Let me know if this helps or if you are still getting the error even with the correct analysis files in the temp folder.