Change beam Cross-section with C# script - Grasshopper2024-03-29T07:58:04Zhttps://www.grasshopper3d.com/forum/topics/change-beam-cross-section-with-c-script?groupUrl=karamba&commentId=2985220%3AComment%3A1660237&groupId=2985220%3AGroup%3A251211&feed=yes&xn_auth=noHi Umar,
this source code is…tag:www.grasshopper3d.com,2018-02-11:2985220:Comment:18856542018-02-11T20:00:26.365ZKaramba3Dhttps://www.grasshopper3d.com/profile/karamba
<p>Hi Umar,</p>
<p>this source code is supposed to be used as part of a Visual Studio Project for a Grasshopper plug-in.</p>
<p>For details on how to use Karamba within your scripts see <a href="https://www.karamba3d.com/download/hackers-essentials-2/?wpdmdl=4348&masterkey=57c463c0097d1" target="_blank" rel="noopener">https://www.karamba3d.com/download/hackers-essentials-2/?wpdmdl=4348&masterkey=57c463c0097d1</a>.</p>
<p>Best,</p>
<p>Clemens</p>
<p></p>
<p></p>
<p>Hi Umar,</p>
<p>this source code is supposed to be used as part of a Visual Studio Project for a Grasshopper plug-in.</p>
<p>For details on how to use Karamba within your scripts see <a href="https://www.karamba3d.com/download/hackers-essentials-2/?wpdmdl=4348&masterkey=57c463c0097d1" target="_blank" rel="noopener">https://www.karamba3d.com/download/hackers-essentials-2/?wpdmdl=4348&masterkey=57c463c0097d1</a>.</p>
<p>Best,</p>
<p>Clemens</p>
<p></p>
<p></p> Hi Clemens,How exactly are th…tag:www.grasshopper3d.com,2018-02-02:2985220:Comment:18827512018-02-02T14:47:46.923ZUmar Hossainhttps://www.grasshopper3d.com/profile/UmarHossain
<p>Hi Clemens,<br/><br/>How exactly are those scripts used in Grasshopper with Karamba?<br/><br/>I'm not sure what to do with those files.<br/><br/>Best,</p>
<p>Umar</p>
<p>Hi Clemens,<br/><br/>How exactly are those scripts used in Grasshopper with Karamba?<br/><br/>I'm not sure what to do with those files.<br/><br/>Best,</p>
<p>Umar</p> Hi Lorenzo,
the two attached…tag:www.grasshopper3d.com,2016-12-20:2985220:Comment:16602372016-12-20T08:40:05.474ZKaramba3Dhttps://www.grasshopper3d.com/profile/karamba
<p>Hi Lorenzo,</p>
<p>the two attached files show how to set up a custom cross section optimizer for beam elements. It should work with Karamba 1.2.2.</p>
<p>'DesignCroSecOpti.cs' contains the abstract base class for custom optimizers. 'DesignCroSecOpti_Simple.cs' shows how to use this in order to implement a simple optimizer.</p>
<p>The code was created in the course of the research project NFormations (see…</p>
<p>Hi Lorenzo,</p>
<p>the two attached files show how to set up a custom cross section optimizer for beam elements. It should work with Karamba 1.2.2.</p>
<p>'DesignCroSecOpti.cs' contains the abstract base class for custom optimizers. 'DesignCroSecOpti_Simple.cs' shows how to use this in order to implement a simple optimizer.</p>
<p>The code was created in the course of the research project NFormations (see <a href="http://www.nformations.com/http://" target="_blank">http://www.nformations.com/</a>)</p>
<p>Best,</p>
<p>Clemens</p>
<p></p> Hi Lorenzo,
I understand the…tag:www.grasshopper3d.com,2016-12-16:2985220:Comment:16587712016-12-16T14:34:32.930ZRobert Naguschewskihttps://www.grasshopper3d.com/profile/RobertNaguschewski
<p>Hi Lorenzo,</p>
<p>I understand the problem, but couldn't find a solution. I would also be happy if there were a solution by the Karamba team, I guess it's only one line of code where you update the model completely.</p>
<p>I added line 153 to your script and now the beam elements can refer to a cross section that is known to the model, but that doesn't solve the problem. It's interesting that the stresses are updated in the component whereas the displacements stay the same. When you…</p>
<p>Hi Lorenzo,</p>
<p>I understand the problem, but couldn't find a solution. I would also be happy if there were a solution by the Karamba team, I guess it's only one line of code where you update the model completely.</p>
<p>I added line 153 to your script and now the beam elements can refer to a cross section that is known to the model, but that doesn't solve the problem. It's interesting that the stresses are updated in the component whereas the displacements stay the same. When you disassemble and assemble the model again, the cross sections are updated correctly. I am confused...</p>
<p>Another problem I faced is the issue of changing the model upstream in the grasshopper definition. Cloning as discussed here doesn't solve this (<a href="http://www.grasshopper3d.com/group/karamba/forum/topics/scripting-shell-element?commentId=2985220%3AComment%3A1430746&groupId=2985220%3AGroup%3A251211" target="_blank">http://www.grasshopper3d.com/group/karamba/forum/topics/scripting-shell-element?commentId=2985220%3AComment%3A1430746&groupId=2985220%3AGroup%3A251211</a>).</p> Hi Robert,
Thanks for the scr…tag:www.grasshopper3d.com,2016-12-15:2985220:Comment:16582932016-12-15T10:07:13.615ZLorenzo Grecohttps://www.grasshopper3d.com/profile/LorenzoGreco
<p>Hi Robert,</p>
<p>Thanks for the script. I had already tried that approach but with a script that also analyzes the model and it seems not to update the crossection afterwards.</p>
<p></p>
<p>Attached is what I get.</p>
<p>Hi Robert,</p>
<p>Thanks for the script. I had already tried that approach but with a script that also analyzes the model and it seems not to update the crossection afterwards.</p>
<p></p>
<p>Attached is what I get.</p> Hey Lorenzo,
please have a lo…tag:www.grasshopper3d.com,2016-12-14:2985220:Comment:16578002016-12-14T20:39:55.037ZRobert Naguschewskihttps://www.grasshopper3d.com/profile/RobertNaguschewski
<p>Hey Lorenzo,</p>
<p>please have a look at the c# script component in the attached grasshopper definition where I assign a new cross section to the first element of the model. Please read the <a href="http://www.karamba3d.com/download/hackers-essentials-2/?wpdmdl=4348&masterkey=57c463c0097d1" target="_blank" title="karamba 1.1.0 Hacker's Essentials">karamba 1.1.0 Hacker’s Essentials</a>, in particular this sentence: "Before running your script in GH make sure to unhook the Memory load…</p>
<p>Hey Lorenzo,</p>
<p>please have a look at the c# script component in the attached grasshopper definition where I assign a new cross section to the first element of the model. Please read the <a title="karamba 1.1.0 Hacker's Essentials" href="http://www.karamba3d.com/download/hackers-essentials-2/?wpdmdl=4348&masterkey=57c463c0097d1" target="_blank">karamba 1.1.0 Hacker’s Essentials</a>, in particular this sentence: "Before running your script in GH make sure to unhook the Memory load *.GHA assemblies using COFF byte arrays after typing GrasshopperDeveloperSettings in the Rhino text window."</p>
<p>Cheers,</p>
<p>Rob</p>