@@ -57,8 +57,9 @@ namespace SketchUpNET
5757 Transform^ Transformation;
5858 SketchUpNET::Material^ Material;
5959 System::String^ Layer;
60+ System::String^ Guid;
6061
61- Group (System::String^ name, List<Surface^>^ surfaces, List<Curve^>^ curves, List<Edge^>^ edges, List<Instance^>^ insts, List<Group^>^ group, Transform^ transformation, System::String^ layername, SketchUpNET::Material^ mat)
62+ Group (System::String^ name, List<Surface^>^ surfaces, List<Curve^>^ curves, List<Edge^>^ edges, List<Instance^>^ insts, List<Group^>^ group, Transform^ transformation, System::String^ layername, SketchUpNET::Material^ mat, System::String^ guid )
6263 {
6364 this ->Name = name;
6465 this ->Surfaces = surfaces;
@@ -69,6 +70,7 @@ namespace SketchUpNET
6970 this ->Transformation = transformation;
7071 this ->Layer = layername;
7172 this ->Material = mat;
73+ this ->Guid = guid;
7274 };
7375
7476 Group (){};
@@ -79,6 +81,10 @@ namespace SketchUpNET
7981 SUStringCreate (&name);
8082 SUGroupGetName (group, &name);
8183
84+ SUStringRef guid = SU_INVALID;
85+ SUStringCreate (&guid);
86+ SUGroupGetGuid (group, &guid);
87+
8288
8389 SUEntitiesRef entities = SU_INVALID;
8490 SUGroupGetEntities (group, &entities);
@@ -113,7 +119,7 @@ namespace SketchUpNET
113119 layername = SketchUpNET::Utilities::GetLayerName (layer);
114120 }
115121
116- Group^ v = gcnew Group (SketchUpNET::Utilities::GetString (name), surfaces, curves, edges, inst, grps, Transform::FromSU (transform), layername, groupMat);
122+ Group^ v = gcnew Group (SketchUpNET::Utilities::GetString (name), surfaces, curves, edges, inst, grps, Transform::FromSU (transform), layername, groupMat, SketchUpNET::Utilities::GetString (guid) );
117123
118124 return v;
119125 };
0 commit comments