RevisionNumberType class missing on Revit 2023 API

RevisionNumberType class missing on Revit 2023 API

Archigrafix_Norge
Advocate Advocate
632 Views
2 Replies
Message 1 of 3

RevisionNumberType class missing on Revit 2023 API

Archigrafix_Norge
Advocate
Advocate

Hi!

 

I wonder if any one knows why the RevisionNumberType is missing from the class Revision inside the Autodesk.Revit.DB on the 2023 API?

 

Previously it was like this:

 

 

 

public RevisionNumberType NumberType { get; set; }

 

 

 

I still need to determine if the revision is alphanumeric or int so I can organize the data. Am I missing something here or this is just wiped out?

 

@jeremy_tammik 


Luis Santos

archi systems as

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

Sean_Page
Collaborator
Collaborator
Accepted solution

Looks like the change relates to the new Revisions settings release in R22 I think.

 

https://www.revitapidocs.com/2022/52b6f8d8-4d5e-dfee-7782-5cd7a77ee543.htm

 

Revision rev = new Revision();
Document doc = new Document();
RevisionNumberingSequence seq = doc.GetElement(rev.RevisionNumberingSequenceId) as RevisionNumberingSequence;
RevisionNumberType type = seq.NumberType;

 

Sean Page, AIA, NCARB, LEED AP
Partner, Computational Designer, Architect
Message 3 of 3

drafting5NWUM
Explorer
Explorer

Is there a way of getting the revision type in a revit 2023 project?