Grasshopper

algorithmic modeling for Rhino

Hi,
Does anyone know the syntax to test for an object's type?

I'm writing a VB function that will do different things to an object that is passed in depending on it's type.

I know ObjectInQuestion.GetType will return the type but how does one test whether its a online or oncurve or on3dpoint etc?

Select Case ObjectInQuestion.GetType
Case Online

Case On3dpoint

End Select

The above returns an error.

Thanks.

Views: 918

Replies to This Discussion

Have a look at the TypeOf operator..


If (TypeOf obj Is OnLine) Then...

--
David Rutten
david@mcneel.com
Seattle, WA

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service