Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
developer:scriptsamples:countobjects [2015/09/16]
sandy
developer:scriptsamples:countobjects [2015/10/26] (current)
sandy
Line 1: Line 1:
 ====== Count Objects ====== ====== Count Objects ======
 > **Developer:​** //​[[developer:​rhinoscript|RhinoScript]]//​ > **Developer:​** //​[[developer:​rhinoscript|RhinoScript]]//​
-> **Summary:​** //​Demonstrates how to count up all of the different object types using RhinoScript.//​+> **Summary:​** //​Demonstrates how to count all the different object types using RhinoScript.//​
  
 =====Question===== =====Question=====
-I would like to count all of the different objects in a model, but I cannot find a command that will do this. Is there a method that I am overlooking or anything that returns a count?+I would like to count all the different objects in a model, but I cannot find a command that will do this. Is there a method that I am overlooking or anything that returns a count?
  
 =====Answer===== =====Answer=====
-Rhino does not have a command that will return how may of each type of object exists in a model. But, with RhinoScript,​ you can write your own. For example, the following sample script will do this:+Rhino does not have a command that will return how many of each type of object exists in a model. But, with RhinoScript,​ you can write your own command. For example, the following sample script will do this:
  
 <code vb> <code vb>
developer/scriptsamples/countobjects.txt ยท Last modified: 2015/10/26 by sandy