Message 1 of 5
Modify properties in Columns
Not applicable
03-09-2015
03:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying getting the "Columns" of model with a method that receive a Category how parameter. Then, with a "for" modify the value in two properties of all Columns.
See code:
public void GenerateFormworkToElements(string category)
{
SubTransaction createFormwork = new SubTransaction(m_revit.ActiveUIDocument.Document);
try
{
createFormwork.Start();
//Parameter is a Category
if (category == "Structural Columns")
{
//Here to find the columns y modify the properties
}
createFormwork.Commit();
}
catch (Exception ex)
{
TaskDialog.Show("GenerateFormworkToElements", "Error = " + ex.Message);
createFormwork.RollBack();
}
}The following are properties to change:
Thanks for your help.
David