Skip to content

Commit

Permalink
Merge pull request #1143 from mcneel/1.22
Browse files Browse the repository at this point in the history
1.22
  • Loading branch information
kike-garbo authored Jul 10, 2024
2 parents b3349ab + 3502dd9 commit bbf8c83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/pages/_en/1.0/reference/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ group: Deployment & Configs
- Added 'Appearance Asset Identity' component.
- Renamed 'Add Linear Dimension' component to 'Add Aligned Dimension'.
- Fix on 'Host Shape' component when updating.
- Fix on 'Element Workset' component when the document is not workshared.

{% endcapture %}

Expand Down
2 changes: 1 addition & 1 deletion src/RhinoInside.Revit.GH/Types/Element.cs
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ public virtual ElementType Type

public Workset Workset
{
get => new Workset(Document, Document?.GetWorksetId(Id) ?? ARDB.WorksetId.InvalidWorksetId);
get => new Workset(Document, Document.IsWorkshared ? Document?.GetWorksetId(Id) ?? ARDB.WorksetId.InvalidWorksetId : ARDB.WorksetId.InvalidWorksetId);
set
{
if (value is object && Value is ARDB.Element element)
Expand Down

0 comments on commit bbf8c83

Please sign in to comment.