plication to Rhino.Exe.
3. Press Start.
4. Rhino is opening and I open grasshopper.
5. I add native grasshopper c# component and reference .dll
6. I have an access to static variable.
then what I want to do but I can't:
7. I stop the debugger in visual studio and add one more variable and expect that the library would be updated as is when I compile gh components.
8. But when I press continue and the .dll file is not updated and I do not see any additional variables declared. First I thought ok, maybe it is not visible, but I typed a correct name, but the message says that my dll does not contain this type.
9. Then I tried to reference the .dll again, but nothing happens, same old .dll is referenced.
10. When I close and open rhino it is updated. The whole closing and opening operation is a bit disturbing and I would like to debug it via Visual Studio.
Do you know what I doing wrong?
Is it working like so, because .dll is loaded to memory and not referenced from Hard Drive?…
hape files. They need to be either points, polylines, polygones, so one geometry type.
To fix this I saved your shape file in QGIS as polygon type.
You can download it below, along with .gh example file:https://www.dropbox.com/s/5bi3q8n77nxvxov/3D_LoD2_33416_5622_2_sn_QGIS.zip?dl=0https://www.dropbox.com/s/qy4fo6mgkbkcd9d/Geising_shp.gh?dl=0
Or for future cases, when you have such an issue, you can correct it yourself:
1) Download the latest QGIS.2) Install and open QGIS.choose:3) Project->New4) Layer->Add Layer->Add Vector Layer5) Then under 'Vector Dataset', choose the .shp file and click on 'Add'.6) If asked to choose the geometry type, choose 'polygon' for example.7) Layer->Save as8) Define the 'File name' box, and change the 'CRS' value to 'Default CRS: EPSG:4325 - WGS84'.9) Click on 'Ok' to save a new shapefile.10) Load that newly saved shapefile into Gismo with the 'Read SHP' component.…
Added by djordje to Gismo at 10:10am on September 23, 2021
ield I had to use some different jumper settings as if I wanted to use the conceptinetics DMX library.
To send a chanel and a value I had to send a string from grasshopper like 001c255w to send the highest DMX value to chanel 1. See description in my code below:
/*jumper setup for Conceptinetics DMX shield:1st jumper to the right: "EN_"2nd jumper to the right: "DE"3rd jumper to the left: "TX-io"4th jumper to the left: "RX-io"
this jumper setup allows the shield to do the following actions without having to change any jumper:- transfer this arduino sketch to the arduino board- receive data from the serial port (grasshopper)- send data to a DMX device
<number>c : Select DMX channel<number>v : Set DMX channel to new value
These can be combined:001c255w002c0w003c0w --> Set channel 1 to value 255 and channel 2 and 3 to value 0.it is important that the channels are being addressed with 3 digits (001c instead of 1c)
http://dmxshield.blogspot.de/ http://playground.arduino.cc/Learning/DMX http://code.google.com/p/tinkerit/wiki/SerialToDmx http://groups.google.com/group/dmxsimple */
#include <DmxSimple.h>
void setup() { Serial.begin(9600); Serial.println("SerialToDmx ready"); Serial.println(); digitalWrite (2, HIGH);}int value = 0;int channel;void loop() { int c; while(!Serial.available()); c = Serial.read(); if ((c>='0') && (c<='9')) { value = 10*value + c - '0'; } else { if (c=='c') channel = value; else if (c=='w') { DmxSimple.write(channel, value); } value = 0; }}
…
tions or components.
Participants will learn concepts of object oriented programming and essential syntax of C# to endeavour into personally extending cad toolsets. The workshop will focus on introducing the .NET language C# and the Software Development Kit (SDK) RhinoCommon.
Topics
- use of Script Component within Grasshopper
- explanation to the .NET Framework
- introduction to RhinoCommon SDK
- basics of imperative / object-oriented programming
- data types, operators, properties
- variables, arrays, lists, enumerations
- methods
- objects, classes
- control structures: conditional statements (if, else, switch)
- control structures: loops (for, foreach, while, do)
- walk-through iterative und recursive code-samples
- use of RhinoCommon Geometry class library: creation, sorting, editing of Geometry (Points, Vectors, Curves, Surfaces)
- adding (baking) geometry to the active Rhino 3DM Document, including attributes (Name, Layer, Colors etc.)
- introduction to the Integrated Development Environment MS Visual Studio Express Edition
- compiling code to dll/gha files (plug-ins) / making your own Grasshopper custom components
Grasshopper wird auf der .NET Softwareplattform entwickelt, und kann ebenso wie das CAD Programm Rhinoceros mit "RhinoCommon", einem Software Development Kit, erweitert werden.
Dieser Kurs richtet sich an Designer, Architekten, Ingenieure und Techniker, welche mit dem grafischen Algorithmus-Modellierer "Grasshopper3d" sowie dem CAD-Programm "Rhinoceros" bereits vertraut sind und einen Einstieg in die Programmierung von Geometrie erlernen möchten.
Der Kurs Grasshopper II folgende Grundlagen:
Kennenlernen der Script Componente
Erläuterung zum .NET Framework
Einführung in RhinoCommon SDK
Grundlagen d. imperativen / objektorientierten Programmierung
Datentypen, Operatoren, Eigenschaften
Variablen, Reihen, Listen, Aufzählungen
Methoden
Objekte und Klassen
Kontrollstrukturen: Bedingte Ausführung, Schleifen
praxisnahe iterative und rekursive Code-Beispiele für generatives Design unter Verwendung der RhinoCommon Geometrie Klassenbibiliothek - Punkt- und Vektorgeometrie erstellen, sortieren, bearbeiten, Flächen und Netze erstellen - Geometrie in das Rhino 3DM Dokument baken, einschließlich Attribute (Name, Layer, Color)
Einführung in die Entwicklungsumgebung MS Visual Studio Express Edition
Kompilieren von Programmerweiterungen (plug-ins) als Komponenten (custom components)
Details, Anmeldung:
www.vhs-stuttgart.de
Trainer Peter Mehrtens
Kursdauer: 3 Tage x 8 h
Freitag, 21.02.2014, 9:00-17:00 Uhr Samstag, 22.02.2014, 9:00-17:00 Uhr Sonntag, 23.02.2014, 9:00-17:00 Uhr Ort: VHS Stuttgart, Fritz-Elsas-Str. 46/48
Teilnahmegebühr 510,00 €…
her bump on the road. I've evolved the original idea into something that remotely resembles this childish doodle:
That is, 3 different rows of panels with fixed heights but random widths. Each panel will be perforated in voronoi patterns that vary according to my original sun intensity diagram, but I'm thinking they'll have a fixed frame width and a small gap between them, kinda like this other childish doodle:
I've mastered the method of turning my original diagram into a voronoi panel that's denser where the sun hits harder thanks to Vicente's method. But it gives the voronoi frames a width by scaling each cell by .9, but that doesn't yield frames with constant width... which is fine for my 3D, but I wanna use the files to draw diagrams for laser cutting and actual building of the panels, so I guess I can't be too precise there.
Again thanks for all the useful (and funny) input! :)
…
mber of assumptions can be safely made, and this is not the case for equations with unknown behaviour. The initial division may be too coarse to find a specific peak, and this approach cannot handle discontinuities either.
Assume we're trying to find where a function becomes zero, within some domain. We know ahead of time that there may be any number of solutions; zero (x²+1), one (x+1), two (x²-1), many (Sin(x)) and even infinite (Sin(1/x)).
So we evaluate the equation at 9 values, dividing it into 8 spans (the dashed purple curve is how the search algorithm sees the equation). We immediately determine that none of the spans crosses the y=0 line, so either we give up or we focus on spans 5 & 6 as they got closest. We'll never find the two solution in span 3.
Or maybe the equation results in a discontinuous graph, like so:
It seems as though the answer must be somewhere in span 4, but no matter how hard we search there, we'll never find it.…
Added by David Rutten at 1:05pm on September 7, 2015
the same C:\MapWinGIS_installation_folder\gdal-data folder, which is: C:\Program Files\MapWinGIS\gdal-data in your case, I assume.
It seems as now your system is allowing the deletion of the osmconf.ini file, but not the creation of a new osmconf.ini file.
Can we now try the following please:
1) Shut down both Grasshopper and Rhino2) Restart your system.3) Make sure you are logged in as Administrator once the Windows boots up.4) When it boots up, again in your Start menu's search box type: "UAC". Click on it and check if the bar on the left is still set to "Never notify".5) Download the osmconf.ini file attached below.6) Check if downloaded osmconf.ini file has been blocked: right click on it, and choose "Properties". If there is an "Unblock" button click on it, and then click on "OK". If there is no "Unblock" button, just click on "OK".7) Copy the osmconf.ini file to your C:\MapWinGIS_installation_folder\gdal-data folder8) Right-click on "Rhino 5" icon and then choose: "Run as administrator".9) Download and open the newest create_3dbuildings_trees_streets.gh file from here.
What happens?…
Added by djordje to Gismo at 10:38am on April 3, 2017
fused now because I'd like to use brute-force instead of genetic/swarm algorithms. I am worried about fitness landscape and local extremes with my variables. On the other hand Colibri Iterator would compute millions of combinations in my case.
I'd like to use Colibri brute force+Design Explorer to explore different solutions. I am not sure how many combinations there would be but I assume that up to 10^7. That is a lot of data to compute and look through. Probably impossible to do.
I looked into 3rd example on Design Explorer page (the building one) which is pretty close to what i want to do. As far as i understand the graph, there are 9 variables. Each has different domain. My calculation for number of combinations (going from left to right - from 'elevator width' to 'solid wall amount') is 3*5*5*10*6*4*10*50. That is 72.000.000 combinations. On design explorer page there are around 250 solutions. I probably do not understand something or there is a way to filter data somehow.
My questions are - Is it even possible for Colibri Iterator to go through such huge data? Have you got any tips how to filter that data so that only chosen solutions are saved to *.csv file? Maybe I am missing something and there is another way used for design explorer examples? Any tips or tricks? :)
Thank you for your time and help,
Have a nice weekend…
hange at regular intervals along the length in such a way that at each interval the order of strands is completely unique, until the system comes full circle.
The rule established to create this pattern is shown in the attached excel file. It's clearer that way.System%20rule.xlsx
All I'm looking to achieve here is something to get me started. I don't need to completely recreate the system with all its complexities. (E.g. strands from one group crossing over strands of lower rank groups to get to their new groups...)
I feel like I need to be using lists to divide a set of curves and then rearrange them according to a pattern, but I'm not sure how to do that and I also have no idea how I could use the rearrangement of data to actually rearrange the geometry... Any thoughts on how to tackle this?
Here are some photos of the model:
Thanks in advance!…
flat) and then subdivide your surface using the divide domain component and feed that into a surface box. Your base geometry, base geometry bounding box and surface boxes will all drive the box morph.
From the looks of your geometry, it appears that it is designed to nest in a particular way that isn't strictly rectilinear, but is more staggered, so that the top corner of one element fits into the bottom corner of an adjacent element. You can achieve this using the box morph, but you have to get pretty creative with how you subdivide your surface:
I'm attaching a couple of files...first of all is your definition with the changes in it to make the above. But also I used some components that I made recently (will release them in a package with a bunch more hopefully soon) called tree sloth, which helps manage data trees and lists. I used a couple of those components, so I'm also attaching the gha for those. Just copy that file into your components folder (under file-> special folders) and restart rhino/gh. The new components are just layered into different parts of the "Sets" components.
To explain what I did: you basically you want to have adjacent sub-surfaces along your guide surface to overlap at the top and bottom thirds. There are any number of ways to extract these surfaces...I just pulled out strips in each column and culled every fourth element, but shifted by one in alternating columns. So in the first column I take strips 1,2 and 3 and skip 4, take 5, 6 and 7, etc. and in the second column I start at number 3, 4, 5 and skip 6, then take 7, 8, 9, etc. Then I collect each of these batches of three strips and take the bottom left corner and upper right corner UV domains to create the target surfaces for the morph.
Hope this helps you out...…