a2761a4584
* add Revit 2021 and Revit 2022 with some 22 testing * load DI dll * format * more Revit 21 work but it doesn't build, 22 works * Remove Revit 2021 * sln fixes * add shared DI project for Revit * post-merge fixes * redo some ifdefs * share conversions better * Remove class that was added * fix(dui3): fixes the black rectangle of doom basically cef65 versions need the removal of camelcasing convention to happen differently * Carry over what Dim found for 2022 * Fix Revit 2022 issues * fmt * Clean up for 2022 * More cleanup * Remove some ifdefs --------- Co-authored-by: Dimitrie Stefanescu <didimitrie@gmail.com>
10 lines
325 B
C#
10 lines
325 B
C#
using Autodesk.Revit.DB;
|
|
|
|
namespace Speckle.Converters.RevitShared.Extensions;
|
|
|
|
public static class DefinitionExtensions
|
|
{
|
|
// POC: can we just interface these specialisations out and thereby avoid this kind of BS :D
|
|
public static string GetUnitTypeString(this Definition definition) => definition.GetDataType().TypeId;
|
|
}
|