FieldBuider SetUnitType (UnitType .xxxx) method Missing in Revit2022

FieldBuider SetUnitType (UnitType .xxxx) method Missing in Revit2022

Anonymous
Not applicable
876 Views
2 Replies
Message 1 of 3

FieldBuider SetUnitType (UnitType .xxxx) method Missing in Revit2022

Anonymous
Not applicable

Hi Everyone,

Hope you're doing great!

 

We have been trying to upgrade one of our Revit Addin from Revit 2018 to Revit 2022 (.NET FW 4.8),

but in FieldBuider class we cannot find SetUnitType() method which was in Revit 2018 as eg. FieldBuider.SetUnitType(UnitType.xxxx). We searched the same at RevitAPI docs but couldn't find any related or similar method.

Can anyone help us?

Thanks,RevitAPI 2018RevitAPI 2018RevitAPI 2022RevitAPI 2022errorerror

0 Likes
Accepted solutions (1)
877 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni
Accepted solution

Search for SetUnitType in the information on What's New in the Revit 2021 API:

 

https://thebuildingcoder.typepad.com/blog/2020/04/whats-new-in-the-revit-2021-api.html

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 3

Anonymous
Not applicable

Thanks, Jeremy!

you are the "Go To" person!

0 Likes