Quantcast
Viewing all articles
Browse latest Browse all 4140

GrasshopperDocument in VS

hi everyOne

using System.Collections;
using System.Collections.Generic;
using Rhino;
using Rhino.Geometry;
using Grasshopper;
using Grasshopper.Kernel;
using Grasshopper.Kernel.Data;
using Grasshopper.Kernel.Types;
using System.Linq;
  private void RunScript(ref object A)
  {
    A = from o in GrasshopperDocument.Objects where o.Attributes.Selected
        select o.NickName + " (" + o.Name + ") | " + o.Category + " > " + o.SubCategory;

if i use GrasshopperDocumen in this code in vs ? whats is GrasshopperDocument?
i use:
Instances.ActiveCanvas.Document
or
OnPingDocument()
But it doesn’t work!
@Mahdiyar
@gankeyu

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4140

Trending Articles