Search
  • Sign In

Grasshopper

algorithmic modeling for Rhino

  • Home
    • Members
    • Listings
    • Ideas
  • View
    • All Images
    • Albums
    • Videos
    • Architecture Projects
    • Installations
    • Add-ons
  • Download
    • Rhino 7 w/Grasshopper
    • Add-ons
  • Forums/Support
    • Current Discussions
    • Legacy Forum
  • Learn
    • Getting Started
    • Online Reference
    • API documentation
    • Video Tutorials
    • Common Questions
    • Scripting and Coding
    • Books and Articles
  • Attend
  • My Page

Search Results - 📍 trx兑换到usdt👉【TG:@trxHomeBot】,btc最新投资情况.k

K PK P
K MatreK Matre
K YANGK YANG
K BOSEK BOSE
k yealk yeal
k tamk tam
k-moneyk-money
K DorfK Dorf
K DawesK Dawes
Comment on: Topic 'model'
s a script i used for checking different properties and correct naming (in my sample), you see i try to cast the objects and then see if it is null or valid ..! private void RunScript(List<object> CroSec, double ctBiegung, double ctDruck, double ctKragarm, double Thickness, ref object Naming_, ref object Thickness_, ref object ctFail, ref object isBoxOrI, ref object h_, ref object b_, ref object ts_, ref object tg_, ref object madeNames) { List<int> failCtLst = new List<int>(); List<int> maxThick = new List<int>(); List<int> isBoxOrILst = new List<int>(); List<int> namingFailList = new List<int>(); List<string> madeNameList = new List<string>(); List<double> h__ = new List<double>(); List<double> b__ = new List<double>(); List<double> ts__ = new List<double>(); List<double> tg__ = new List<double>(); int failed = 0; int isBoxOrI_ = 0; int failedThick = 0; int failedNaming = 0; string madeName = ""; double h___ = 0; double b___ = 0; double ts___ = 0; double tg___ = 0; for(int i = 0; i < CroSec.Count(); i++) { object item = CroSec[i]; failed = 0; isBoxOrI_ = 0; failedThick = 0; failedNaming = 0; madeName = ""; Karamba.CrossSections.CroSec_I cs_i = item as Karamba.CrossSections.CroSec_I; if (cs_i != null) { if (cs_i.name.Length > 0) { if ((cs_i.name.Substring(0, 2) == "I ") || (cs_i.name.Substring(0, 2) == "WI")) { double h = cs_i.height; double b = cs_i.uf_width; double tg = cs_i.uf_thick; double ts = cs_i.w_thick; h___ = h; b___ = b; ts___ = ts; tg___ = tg; // Steg if ((h - 2 * tg) / ts >= ctBiegung) failed = 1; // Flansche I-Träger if ((b - 1.9 * ts) / tg / 2 >= ctKragarm) failed = 1; // sheet metal thicknesses if ((ts > Thickness) || (tg > Thickness)) failedThick = 1; // naming if (cs_i.name.Substring(0, 2) == "I ") { madeName = cs_i.name.Substring(0, 2) + (1000 * h).ToString() + "_" + (1000 * b).ToString() + "_" + (1000 * ts).ToString() + "_" + (1000 * tg).ToString(); if (cs_i.name != madeName) failedNaming = 1; } if (cs_i.name.Substring(0, 3) == "WI ") { madeName = cs_i.name.Substring(0, 3) + (1000 * h).ToString() + "_" + (1000 * b).ToString() + "_" + (1000 * ts).ToString() + "_" + (1000 * tg).ToString(); if (cs_i.name != madeName) failedNaming = 1; } isBoxOrI_ = 1; } } } if (isBoxOrI_ == 0) { failed = 0; failedThick = 0; failedNaming = 0; madeName = ""; Karamba.CrossSections.CroSec_Box cs_box = item as Karamba.CrossSections.CroSec_Box; if (cs_box != null) { if (cs_box.name.Length > 0) { if ((cs_i.name.Substring(0, 2) == "WB") || (cs_i.name.Substring(0, 2) == "IB")) { double h = cs_box.height; double b = cs_box.uf_width; double tg = cs_box.uf_thick; double ts = cs_box.w_thick; h___ = h; b___ = b; ts___ = ts; tg___ = tg; // Steg if ((h - 2 * tg) / ts >= ctBiegung) failed = 1; // Flansche Boxträger if ((b - 2 * ts) / tg >= ctDruck) failed = 1; if ((ts > Thickness) || (tg > Thickness)) failedThick = 1; // naming if (cs_box.name.Substring(0, 3) == "WB ") { madeName = cs_box.name.Substring(0, 3) + (1000 * h).ToString() + "_" + (1000 * b).ToString() + "_" + (1000 * ts).ToString() + "_" + (1000 * tg).ToString(); if (cs_box.name != madeName) failedNaming = 1; } if (cs_box.name.Substring(0, 3) == "IB ") { madeName = cs_box.name.Substring(0, 3) + (1000 * h).ToString() + "_" + (1000 * b).ToString() + "_" + (1000 * (ts / 1.5)).ToString() + "_" + (1000 * tg).ToString(); if (cs_box.name != madeName) failedNaming = 1; } isBoxOrI_ = 1; } } } } failCtLst.Add(failed); isBoxOrILst.Add(isBoxOrI_); maxThick.Add(failedThick); namingFailList.Add(failedNaming); madeNameList.Add(madeName); h__.Add(h___); b__.Add(b___); ts__.Add(ts___); tg__.Add(tg___); } ctFail = failCtLst; isBoxOrI = isBoxOrILst; h_ = h__; b_ = b__; ts_ = ts__; tg_ = tg__; Thickness_ = maxThick; Naming_ = namingFailList; madeNames = madeNameList; }…
Added by Robert Vier to Karamba3D at 8:46am on May 21, 2013
  • 1
  • ...
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • ...
  • 805

About

Scott Davidson created this Ning Network.

Welcome to
Grasshopper

Sign In

Translate

Search

Photos

  • Parametric Structure

    Parametric Structure

    by Parametric House 0 Comments 0 Likes

  • Tensile Column

    Tensile Column

    by Parametric House 0 Comments 0 Likes

  • Quarter Pavilion Rhino Grasshopper Tutorial

    Quarter Pavilion Rhino Grasshopper Tutorial

    by June Lee 0 Comments 0 Likes

  • Quarter Pavilion Rhino Grasshopper Tutorial

    Quarter Pavilion Rhino Grasshopper Tutorial

    by June Lee 0 Comments 0 Likes

  • Quarter Pavilion Rhino Grasshopper Tutorial

    Quarter Pavilion Rhino Grasshopper Tutorial

    by June Lee 0 Comments 0 Likes

  • Add Photos
  • View All
  • Facebook

Videos

  • Parametric Structure

    Parametric Structure

    Added by Parametric House 0 Comments 0 Likes

  • Tensile Column

    Tensile Column

    Added by Parametric House 0 Comments 0 Likes

  • Quarter Pavilion Rhino Grasshopper Tutorial

    Quarter Pavilion Rhino Grasshopper Tutorial

    Added by June Lee 0 Comments 0 Likes

  • Circle Packs

    Circle Packs

    Added by Parametric House 0 Comments 0 Likes

  • Random Abstract 2d Pattern - Rhino Grasshopper

    Random Abstract 2d Pattern - Rhino Grasshopper

    Added by kgm 0 Comments 0 Likes

  • Inflated Diamonds

    Inflated Diamonds

    Added by Parametric House 0 Comments 0 Likes

  • Add Videos
  • View All
  • Facebook

© 2025   Created by Scott Davidson.   Powered by Website builder | Create website | Ning.com

Badges  |  Report an Issue  |  Terms of Service