untime error:
Runtime error (PythonException): unable to add point to document Traceback: line 97, in AddPoint, "C:\Users\AKIDRIBM\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\geometry.py" line 136, in Point, "" line 47, in toGH, "" line 187, in RunScript, ""
Could anyone help me figure out what's causing it? The code for adding the point is below:
# Plots points/text dots def Point(self, pointSource): print pointSource, type(pointSource) pt = rs.AddPoint(float(pointSource.value.x.value), float(pointSource.value.y.value), float(pointSource.value.z.value)) return pt
pointSource is a custom object that stores information about the point. Its only relevance here is to obtain the point coordinates. I do not get this error all the time, so I'm having trouble figuring out what is exactly causing it.…
ted in how to solve the problem keeping the structure of the grasshopper document as is in my example:
In reality, the project I'm working on is actually much more complex. In a nutshell, I have a bunch of parameters that determine the shape of a building (like the number of floors, dimensional ratios etc...). Then I perform a series of analysis on that model using some plugins, such as a solar radiation analysis with LadyBug etc. What I need is to create a spreadsheet in which I associate those initial parameters with the output of the analysis. A spreadsheet that would enumerate all the possible cases: for 4 floors, the solar radiation is 100, for 5 floors, the solar radiation is 97, for 6 floors is... I need a method to automate this process so I don't have to move the sliders and record the output manually, as each iteration requires quite some time to be computed and needs more than one slider to be adjusted.I've decided to bring up a way simpler example than the whole thing, in which I replaced all the complex geometry generation/analysis components with a simple multiplication component to avoid cluttering the thread with irrelevant logic...…
i tried to create a simple surface in C# component and i get an error
specified cast invalid at line 113
this error is a little odd since the last line is 89
attached is the simple example