Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2024.0.9 #188

Merged
merged 49 commits into from
Nov 20, 2023
Merged
Changes from 2 commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
7962c5f
Main window refactoring
Nice3point Jul 1, 2023
8be21c3
Fix issue 180
Nice3point Jul 1, 2023
4a7b10a
CleanUp
Nice3point Jul 1, 2023
e110dc1
CleanUp
Nice3point Jul 1, 2023
db76776
Integrate Qodana Scan
Nice3point Jul 1, 2023
a5652d0
Update pipeline
Nice3point Jul 2, 2023
363effd
Update qodana
Nice3point Jul 2, 2023
1b2bab5
Nuke update
Nice3point Jul 3, 2023
d4a9030
Add qodana config
Nice3point Jul 3, 2023
ca5f225
Update menuitem style
Nice3point Jul 4, 2023
e97432d
Update Contributing.md
Nice3point Jul 4, 2023
e191d25
Fix modifiers
Nice3point Jul 4, 2023
eca3599
Update UI layout and boost performance
Nice3point Jul 4, 2023
f3f6de2
Restore border style consistency across UI components
Nice3point Jul 4, 2023
a91e0a4
Merge pull request #181 from jeremytammik/dev_gridmenu
Nice3point Jul 4, 2023
2519320
Simplify Content Overlay
Nice3point Jul 7, 2023
f6cd39c
Remove refresh awaiting
Nice3point Jul 7, 2023
e3b14c2
Enable group virtualization
Nice3point Jul 10, 2023
f147065
Apple group methods
Nice3point Jul 10, 2023
cfca963
Split builder
Nice3point Jul 10, 2023
8e7c003
Auto find context
Nice3point Jul 10, 2023
e036cdc
Update services
Nice3point Nov 14, 2023
5b05925
Update Readme.md
Nice3point Nov 14, 2023
ca364bf
Update dependencies
Nice3point Nov 14, 2023
55727dd
Merge remote-tracking branch 'origin/dev' into dev
Nice3point Nov 14, 2023
0fc01e7
Update qodana
Nice3point Nov 15, 2023
8e87c9f
Fluent lookup service
Nice3point Nov 15, 2023
5a07f46
Clean up
Nice3point Nov 15, 2023
a62a440
Merge UI library
Nice3point Nov 17, 2023
690e6db
Restore dialogs
Nice3point Nov 17, 2023
b5bdac5
Controls update
Nice3point Nov 18, 2023
865ae4b
Changed textBox border
Nice3point Nov 18, 2023
156bba3
SymbolIcon preview support
Nice3point Nov 18, 2023
02fba95
Update about view
Nice3point Nov 18, 2023
cb06296
ContentDialog restore height during resizing
Nice3point Nov 19, 2023
542f18e
Add missing ItemsPanel virtualization
Nice3point Nov 19, 2023
1781742
Dialog boundary
Nice3point Nov 19, 2023
ca77427
Disable selection restoring
Nice3point Nov 19, 2023
0cb771c
Fix revit unfocus during closeCurrentCommand
Nice3point Nov 19, 2023
c537b56
.Net 8 support
Nice3point Nov 19, 2023
c723533
GetBoundarySegments method of spatial elements support added
SergeyNefyodov Nov 19, 2023
a301d65
Issue 184
Nice3point Nov 19, 2023
8bdc905
Disable Qodana
Nice3point Nov 19, 2023
4a44ae0
Merge pull request #187 from SergeyNefyodov/dev-room-boundaries-feature
Nice3point Nov 19, 2023
95665da
Cleanup
Nice3point Nov 19, 2023
8a12d27
Fix R21 compability
Nice3point Nov 19, 2023
c46b60b
Update Changelog.md
Nice3point Nov 19, 2023
4a459b8
Fix wpfui #825
Nice3point Nov 19, 2023
876001b
Update Changelog.md
Nice3point Nov 19, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions RevitLookup/Core/ComponentModel/DescriptorMap.cs
Original file line number Diff line number Diff line change
@@ -99,6 +99,8 @@ public static Descriptor FindDescriptor(object obj, Type type)
CompoundStructureLayer value when type is null || type == typeof(CompoundStructureLayer) => new CompoundStructureLayerDescriptor(value),
Workset value when type is null || type == typeof(Workset) => new WorksetDescriptor(value),
WorksetTable when type is null || type == typeof(WorksetTable) => new WorksetTableDescriptor(),
BoundarySegment value when type is null || type == typeof(BoundarySegment) => new BoundarySegmentDescriptor(value),
SpatialElement value when type is null || type == typeof(SpatialElement) => new SpatialElementDescriptor(value),
#if R24_OR_GREATER
EvaluatedParameter value when type is null || type == typeof(EvaluatedParameter) => new EvaluatedParameterDescriptor(value),
#endif
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Copyright 2003-$File.CreatedYear by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting
// documentation.
//
// AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
// AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC.
// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
// UNINTERRUPTED OR ERROR FREE.
//
// Use, duplication, or disclosure by the U.S. Government is subject to
// restrictions set forth in FAR 52.227-19 (Commercial Computer
// Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
// (Rights in Technical Data and Computer Software), as applicable.

using Autodesk.Revit.DB;
using RevitLookup.Core.Contracts;
using RevitLookup.Core.Objects;

namespace RevitLookup.Core.ComponentModel.Descriptors;

public class BoundarySegmentDescriptor : Descriptor, IDescriptorCollector
{
public BoundarySegmentDescriptor(BoundarySegment boundarySegment)
{
Name = $"ID: {boundarySegment.ElementId}, {boundarySegment.GetCurve()?.Length} ft";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
// Copyright 2003-$File.CreatedYear by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting
// documentation.
//
// AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
// AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC.
// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
// UNINTERRUPTED OR ERROR FREE.
//
// Use, duplication, or disclosure by the U.S. Government is subject to
// restrictions set forth in FAR 52.227-19 (Commercial Computer
// Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
// (Rights in Technical Data and Computer Software), as applicable.

using System.Reflection;
using Autodesk.Revit.DB;
using RevitLookup.Core.Contracts;
using RevitLookup.Core.Objects;

namespace RevitLookup.Core.ComponentModel.Descriptors;

public class SpatialElementDescriptor : ElementDescriptor, IDescriptorResolver
{
private readonly SpatialElement _spatialElement;
public SpatialElementDescriptor(SpatialElement spatialElement) : base(spatialElement)
{
_spatialElement = spatialElement;
}

public new ResolveSet Resolve(Document context, string target, ParameterInfo[] parameters)
{
return target switch
{
nameof(SpatialElement.GetBoundarySegments) => new ResolveSet(8)
.AppendVariant(_spatialElement.GetBoundarySegments(new SpatialElementBoundaryOptions()
{
SpatialElementBoundaryLocation = SpatialElementBoundaryLocation.Center,
StoreFreeBoundaryFaces = true
}), $"Center, store free boundary faces")
.AppendVariant(_spatialElement.GetBoundarySegments(new SpatialElementBoundaryOptions()
{
SpatialElementBoundaryLocation = SpatialElementBoundaryLocation.CoreBoundary,
StoreFreeBoundaryFaces = true
}), "Core boundary, store free boundary faces")
.AppendVariant(_spatialElement.GetBoundarySegments(new SpatialElementBoundaryOptions()
{
SpatialElementBoundaryLocation = SpatialElementBoundaryLocation.Finish,
StoreFreeBoundaryFaces = true
}), "Finish, store free boundary faces")
.AppendVariant(_spatialElement.GetBoundarySegments(new SpatialElementBoundaryOptions()
{
SpatialElementBoundaryLocation = SpatialElementBoundaryLocation.CoreCenter,
StoreFreeBoundaryFaces = true
}), "Core center, store free boundary faces")
.AppendVariant(_spatialElement.GetBoundarySegments(new SpatialElementBoundaryOptions()
{
SpatialElementBoundaryLocation = SpatialElementBoundaryLocation.Center,
StoreFreeBoundaryFaces = true
}), "Center")
.AppendVariant(_spatialElement.GetBoundarySegments(new SpatialElementBoundaryOptions()
{
SpatialElementBoundaryLocation = SpatialElementBoundaryLocation.CoreBoundary,
StoreFreeBoundaryFaces = true
}), "Core boundary")
.AppendVariant(_spatialElement.GetBoundarySegments(new SpatialElementBoundaryOptions()
{
SpatialElementBoundaryLocation = SpatialElementBoundaryLocation.Finish,
StoreFreeBoundaryFaces = true
}), "Finish")
.AppendVariant(_spatialElement.GetBoundarySegments(new SpatialElementBoundaryOptions()
{
SpatialElementBoundaryLocation = SpatialElementBoundaryLocation.CoreCenter,
StoreFreeBoundaryFaces = true
}), "Core center"),
_ => null
};
}
}