diff --git a/SketchUpNET/Group.cpp b/SketchUpNET/Group.cpp index 5d68c51..fb454e1 100644 --- a/SketchUpNET/Group.cpp +++ b/SketchUpNET/Group.cpp @@ -57,8 +57,9 @@ namespace SketchUpNET Transform^ Transformation; SketchUpNET::Material^ Material; System::String^ Layer; + System::String^ Guid; - Group(System::String^ name, List^ surfaces, List^ curves, List^ edges, List^ insts, List^ group, Transform^ transformation, System::String^ layername, SketchUpNET::Material^ mat) + Group(System::String^ name, List^ surfaces, List^ curves, List^ edges, List^ insts, List^ group, Transform^ transformation, System::String^ layername, SketchUpNET::Material^ mat, System::String^ guid) { this->Name = name; this->Surfaces = surfaces; @@ -69,6 +70,7 @@ namespace SketchUpNET this->Transformation = transformation; this->Layer = layername; this->Material = mat; + this->Guid = guid; }; Group(){}; @@ -79,6 +81,10 @@ namespace SketchUpNET SUStringCreate(&name); SUGroupGetName(group, &name); + SUStringRef guid = SU_INVALID; + SUStringCreate(&guid); + SUGroupGetGuid(group, &guid); + SUEntitiesRef entities = SU_INVALID; SUGroupGetEntities(group, &entities); @@ -113,7 +119,7 @@ namespace SketchUpNET layername = SketchUpNET::Utilities::GetLayerName(layer); } - Group^ v = gcnew Group(SketchUpNET::Utilities::GetString(name), surfaces, curves, edges, inst, grps, Transform::FromSU(transform), layername, groupMat); + Group^ v = gcnew Group(SketchUpNET::Utilities::GetString(name), surfaces, curves, edges, inst, grps, Transform::FromSU(transform), layername, groupMat, SketchUpNET::Utilities::GetString(guid)); return v; }; diff --git a/SketchUpNET/SketchUpNET.rc b/SketchUpNET/SketchUpNET.rc index 60b62a4..5259a7b 100644 Binary files a/SketchUpNET/SketchUpNET.rc and b/SketchUpNET/SketchUpNET.rc differ