Skip to content

Commit

Permalink
adding Group GUIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
moethu committed Apr 4, 2022
1 parent c55859e commit aba2be4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions SketchUpNET/Group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ namespace SketchUpNET
Transform^ Transformation;
SketchUpNET::Material^ Material;
System::String^ Layer;
System::String^ Guid;

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)
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)
{
this->Name = name;
this->Surfaces = surfaces;
Expand All @@ -69,6 +70,7 @@ namespace SketchUpNET
this->Transformation = transformation;
this->Layer = layername;
this->Material = mat;
this->Guid = guid;
};

Group(){};
Expand All @@ -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);
Expand Down Expand Up @@ -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;
};
Expand Down
Binary file modified SketchUpNET/SketchUpNET.rc
Binary file not shown.

0 comments on commit aba2be4

Please sign in to comment.