-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f408980
commit 580521f
Showing
5 changed files
with
39 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace Speckle.Core.Models.Instances; | ||
|
||
/// <summary> | ||
/// Grouped objects with a meaningful way for host application so use this proxy if you want to group object references for any purpose. | ||
/// i.e. in rhino -> creating group make objects selectable/moveable/editable together. | ||
/// </summary> | ||
public class GroupProxy : Base, IProxyCollection | ||
{ | ||
public List<string> objects { get; set; } | ||
|
||
public string name { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
namespace Speckle.Core.Models.Instances; | ||
|
||
/// <summary> | ||
/// Collection to proxy objects that lies in definitions, groups or whatever logic in the host app. | ||
/// </summary> | ||
public interface IProxyCollection | ||
{ | ||
/// <summary> | ||
/// The original ids of the objects that are part of this definition, as present in the source host app. | ||
/// On receive, they will be mapped to corresponding newly created definition ids. | ||
/// </summary> | ||
public List<string> objects { get; set; } | ||
|
||
/// <summary> | ||
/// Name of the proxy collection which is unique for rhino, autocad and sketchup | ||
/// </summary> | ||
public string name { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters