Grasshopper

algorithmic modeling for Rhino

Rhino.FileIO.File3dm file_in = Rhino.FileIO.File3dm.Read(@"I:\Users\m.sprinzl\test.3dm");
    Rhino.FileIO.File3dmObject file_objects = file_in.Objects[1];
    file_objects.Geometry.EnsurePrivateCopy();
    A = file_objects.Geometry;
    B = file_objects.Geometry.GetUserStrings();
    file_objects.Geometry.GetObjectData(xxx, yyy);

 

can someone explain me how GetObjectData works ??? do i get the name of the object by this method?

Views: 662

Replies to This Discussion

Hi Michael,

GetObjectData is a function used to support .NET serialization and is not something you will likely ever directly call.

http://msdn.microsoft.com/en-us/library/system.runtime.serializatio...

 

I still need to write the code that let's you look at the attributes for each object in the File3dmObject class. Are you trying to get the "name" string for each object or looking to do something else?

 

Thanks,

-Steve

I try to get the name string thats right. I have difficulties because Rhino.FileIO.File3dmObject i can access geometry and userstring data ,but not attributes in this or the geomerty level...

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service