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
494 Views, 3 Replies

Railing Schedule

jmyr
Enthusiast
Enthusiast

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?

0 Likes

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

jmyr
Enthusiast
Enthusiast

jlpghlpglolcd

 

0 Likes

jlpghlpglolcd

 

Message 3 of 4
jmyr
in reply to: jmyr

jmyr
Enthusiast
Enthusiast

-

0 Likes

-

Message 4 of 4
franciscopossetto
in reply to: jmyr

franciscopossetto
Advocate
Advocate
Accepted solution

Hey,

 

Use BuiltInCategory.OST_StairsRailing. Your could should work.

Github:
https://github.com/franpossetto
0 Likes

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 Design & Make Report