p;xg_source=msg_com_gr_forum
(Below the last post from that discussion).
***************************************
Hi Matthew, Thanks for such a swift response and sorry for the false alarm. After reinstalling Karamba the examples open without a problem.
I hoped that the examples will clarify something, unfortunately you do not use Beam Resultant Forces' output as a source of optimization criteria/objective there.
I am still having problem with the fact that Beam Resultant Forces component gives a list of zeros as a 1st output till it finishes calculation.
This is my case: 1. Karamba calculates normal forces in elements that are in the mast's traversal plane (mast sections, spreaders and wires (shrouds)). 2. Normal forces in forestays and backstays are calculated analytically elsewhere. 3. Having the normal forces in the wires, the algorithm selects the wires' diameters (having given the wires catalogue), calculates their weights and centers of gravity. 4. Objectives are: minimizing the mass and minimizing the VCG (vertical centre of gravity). They are convergent, but constraint (minimal sail area) is dealing with it. 5. The thing is that normal forces from Karamba and calculated analytically arrives at different times (Karamba need a bit more time). I tried to delay the other data (till Karamba finishes calculation) with Data Dam, Anemone's Time Buffer, Phyton/C#/VB components, but all of them caused that Octopus/Wallacei weren't working correctly.
Any idea comes to your mind how this problem might be solved?
Thanks, Mikołaj…
script, it works fine, however if I copy the example in c# into a c# script, it doesn't recognize the methods. The help files outlines additional steps when coding in c#:
""1. Create a new Visual C# 2005 Console Application project.
2. Add a reference (COM) in the project to the Sap2000.exe.
3. Paste the following code inside function Main():
//dimension variables
Sap2000v15.SapObject mySapObject;
Sap2000.cSapModel mySapModel;
int ret;
int i;""
Is there a way to still script inside a grasshopper component in c# or should I switch to using VBA?…
Firefly_firmata into my Arduino UNO board;
3. I wrote a definition with open port component and serial read (with timer) component, feeding the correct COM number and opening the port in the right time.
All components are grey, but when I connect a panel component I can't see anything but a list of nosense numbers (see attached image).
What am I doing wrong? I also downloaded files from this youtube video, but nothing...
https://www.youtube.com/watch?v=RNoAYWtky6g
I really hope in your help :) thank you in advance…
owing error has been raised: System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {CE7E6869-6F74-4E9D-9F07-3DCBADAB6299} failed due to the following error: 80040154 没有注册类 (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). at System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(RuntimeType objectType) at System.Runtime.Remoting.Activation.ActivationServices.CreateInstance(RuntimeType serverType) at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(RuntimeType serverType, Object[] props, Boolean bNewObj) at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.Scripting.Interpreter.NewInstruction.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.LightLambda.Run3[T0,T1,T2,TRet](T0 arg0, T1 arg1, T2 arg2) at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1) at Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) If upper error is:1) "Retrieving the COM class factory for component with CLSID…" then try the following fix: a) Close Rhino. Restart your PC. Once the PC boots up, double click on the "regMapWinGIS.cmd" file in "MapWinGIS" installation folder. When it closes the Command Prompt window it opened, try running Rhino, Grasshopper and the component again. b) If the upper COM class error appears again, then close Rhino, and uninstall the MapWinGIS application. It is advisable to do that with an application which does that by removing not only the installation files but also the leftover files (like those from registry). For example, use the: Revo Uninstaller Pro. A free 30 days full working version can be downloaded from: http://www.revouninstaller.com. After the Revo Uninstaller Pro uninstalls MapWinGIS, install it again, but this time by running the installation file by right clicking on it, and choosing: Run as -> Administrator. After the installation is complete double click on "regMapWinGIS.cmd" file in "MapWinGIS" installation folder. When it closes the Command Prompt window it opened, try running Rhino, Grasshopper and the component again. If after this the COM class error appears again, then post a question about this issue at: http://www.grasshopper3d.com/group/gismo/forum. 2) If the upper error is not "Retrieving the COM class factory for component with CLSID…", please post a question about this issue at:http://www.grasshopper3d.com/group/gismo/forum.…
Added by Elise to Gismo at 6:11am on November 13, 2019
picture:
... and on a PC without anything attached to the serial port. When you open the port, start the read component and its timer, do you then get a stream of <empty> values in the log output? (hmmm... I suppose that's only reasonable - but still, you are also seeing this?)
I suppose that, because of the mutually exclusive behavior of both the spider and grasshopper (i.e. only one at a time can access the COM port), we can deduce that we are listening on the correct port.
Am I listening on the correct pin (if such a notion makes sense at all)? If I look back to the spider software, I see that 9 channels are listed and that it's only the measured value on channel 0 that changes when I press the load cell. Channels 1, 2, and 3 report OVERFLOW; 4, 5, 6, and 7 are pretty much constant at 0.000 to 0.005 V; and channel 8 says FFFF. I do not know how things like that work so I do not know if they reflect reading from the 9 pins on the D-sub 9 connector.
As for your BTW question: no, I don't need to record all of the sensor values. I suppose that the Out value on the Read component will always reflect the most current value and that's all that I need to get on with life. In the end, the idea is that we have 4 load cells in the 4 corners of a plate onto which a vertical pipe is fixed. Loads are then put on the top end of the pipe and we'll have to visualize both direction and magnitude of the bending moment that is calculated from the compression - tension readings from the load cells... We've done this on a scaled model and streamed load cell information into MatLab. Now we'll have to use a different datalogger and I was hoping to be able to do the post processing in Rhino.
wim…
ceros.
Public concerné /
Architectes et designers, utilisateurs de Rhino souhaitant paramétrer Rhinocéros à l’aide de Grasshopper, programme
associant des composants et une structure de graphe interagissants avec le modèle Rhino.
Une bonne connaissance de Rhinocéros est nécessaire. La langue de la formation est le français.
Structure et Objectif de la formation /
La formation se déroule sur 3 jours : les 2 premières journées sont consacrées aux « fondamentaux » de Grasshopper
avec en préambule une introduction au design et à l’architecture paramétrique et leurs impacts dans la conception, la
création et la construction.
La troisième journée sous forme d’atelier est dédiée à l’étude de cas concrets proposés par les stagiaires, qui, quelques
jours avant la formation, pourront envoyer leurs projets par mail à info AT rhinoforyou DOT com
Les stagiaires, après la formation, pourront rester en contact avec les formateurs de HDA par le biais du blog
complexitys.com et le twitter @HDA_Paris. La durée de cette formation permettra d’atteindre une autonomie et une
bonne compréhension basée sur des exemples concrets.
3 Formules possibles /
3 jours ( Initiation+Atelier ) : du lundi 20 septembre au mercredi 22 septembre
2 jours ( Initiation ) : lundi 20 et mardi 21 septembre
1 jour ( Atelier ) : mercredi 22 septembre
Programme ind icatif des notions traitéES pendan t la formation /
Introduction à la conception Paramétrique . Rhinoscript, Grasshopper: différences et similarités . Interface
graphique de Grasshopper . Objets, Données, Listes . Opérateurs scalaires : La mathématique de
Grasshopper . Gestions des données : la logique de Grasshopper . Vecteurs, Points, Lignes, Surfaces : La
géométrie de Grasshopper . Listes, Arbres, Branches . Le dessin paramétrique: exercices divers et exemples
. Références, Bibliographie, Support de cours . Ateliers d’architecture et design paramétrique (3ème jour) .
Moda lité de la formation /
Venir avec un PC portable équipé de Rhinocéros version 4.0 SR 7 et de la dernière version du plug-in
Grasshopper (téléchargeable sur www.grasshopper3d.com).
Le coût du stage est de 350 € HT/jour par personne.
Réserver votre place dès que possible car les places sont limitées à 10 participants maximum.
Inscriptions et renseignements: Jacques Hababou, info AT rhinoforyou DOT com
Pour en savoir plus sur l’architecture paramétrique: www.complexitys.com…
e HelloWorld function should need no argument but return the string “Hello World”.
Help on method-descriptor HelloWorld
| HelloWorld(...)
| HelloWorld(self: MyClassLibrary) -> str
Can anybody help?
Sourcecode MyClassLibrary.vb:
Simple Class Library Project in Visual Studio 2015
Function has no parameters and Returns String „Hello World“
Compiled *.dll works fine in other Visual Studio Projects as reference
Project Properties
Checkbox „COM Interop“ has no impact
…
ceros.
Public concerné /
Architectes et designers, utilisateurs de Rhino souhaitant paramétrer Rhinocéros à l’aide de Grasshopper, programme
associant des composants et une structure de graphe interagissants avec le modèle Rhino.
Une bonne connaissance de Rhinocéros est nécessaire. La langue de la formation est le français.
Structure et Objectif de la formation /
La formation se déroule sur 3 jours : les 2 premières journées sont consacrées aux « fondamentaux » de Grasshopper
avec en préambule une introduction au design et à l’architecture paramétrique et leurs impacts dans la conception, la
création et la construction.
La troisième journée sous forme d’atelier est dédiée à l’étude de cas concrets proposés par les stagiaires, qui, quelques
jours avant la formation, pourront envoyer leurs projets par mail à info AT rhinoforyou DOT com
Les stagiaires, après la formation, pourront rester en contact avec les formateurs de HDA par le biais du blog
complexitys.com et le twitter @HDA_Paris. La durée de cette formation permettra d’atteindre une autonomie et une
bonne compréhension basée sur des exemples concrets.
3 Formules possibles /
3 jours ( Initiation+Atelier ) : du lundi 20 septembre au mercredi 22 septembre
2 jours ( Initiation ) : lundi 20 et mardi 21 septembre
1 jour ( Atelier ) : mercredi 22 septembre
Programme ind icatif des notions traitéES pendan t la formation /
Introduction à la conception Paramétrique . Rhinoscript, Grasshopper: différences et similarités . Interface
graphique de Grasshopper . Objets, Données, Listes . Opérateurs scalaires : La mathématique de
Grasshopper . Gestions des données : la logique de Grasshopper . Vecteurs, Points, Lignes, Surfaces : La
géométrie de Grasshopper . Listes, Arbres, Branches . Le dessin paramétrique: exercices divers et exemples
. Références, Bibliographie, Support de cours . Ateliers d’architecture et design paramétrique (3ème jour) .
Moda lité de la formation /
Venir avec un PC portable équipé de Rhinocéros version 4.0 SR 7 et de la dernière version du plug-in
Grasshopper (téléchargeable sur www.grasshopper3d.com).
Le coût du stage est de 350 € HT/jour par personne.
Réserver votre place dès que possible car les places sont limitées à 10 participants maximum.
Inscriptions et renseignements: Jacques Hababou, info AT rhinoforyou DOT com
Pour en savoir plus sur l’architecture paramétrique: www.complexitys.com…