Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Railing Schedule

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
jmyr
429 Views, 3 Replies

Railing Schedule

Hi All,

 

I'm trying to create railing schedule using Revit API but I'm getting the following error

 

jmyr_0-1619268734449.png

 

using (Transaction t = new Transaction(doc, "Create Schedule"))
            {
               
                try
                {
                    t.Start();
                    ViewSchedule viewSchedule = ViewSchedule.CreateSchedule(doc, new ElementId(BuiltInCategory.OST_Railings));
                    t.Commit();
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }

ay ideas? what would be the correct categoryId?

3 REPLIES 3
Message 2 of 4
jmyr
in reply to: jmyr

jlpghlpglolcd

 

Message 3 of 4
jmyr
in reply to: jmyr

-

Message 4 of 4
franciscopossetto
in reply to: jmyr

Hey,

 

Use BuiltInCategory.OST_StairsRailing. Your could should work.

Github:
https://github.com/franpossetto

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Customer Advisory Groups


Rail Community