+ Reply to Thread
Results 1 to 2 of 2

Thread: Get name for point

  1. #1

    Get name for point

    Hello,

    How can I get the name of a point using RhinoCommon. I am trying to do something like this:

    String name = Point.Name;

    Can some one help steer me in the right direction,

    Thanks for your help,

  2. #2
    Hi qutaibah - something like this, maybe?

    -Pascal

    Python Code:
      def test():
          filter = Rhino.DocObjects.ObjectType.Point
          rc, X = Rhino.Input.RhinoGet.GetOneObject("Select a point object", False, filter)
          if not X : return
          Y =scriptcontext.doc.Objects.Find(X.ObjectId)
          Z = Y.Name
          print Z

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts