Message 1 of 1
Revit Wall Cut Pattern visibility

Not applicable
10-10-2011
08:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to turn off the wall cut pattern visibility using the API.
Category val1 = rvtUIDoc.Document.Settings.Categories.get_Item BuiltInCategory.OST_Walls);
Autodesk.Revit.DB.CategoryNameMapcat1 = val1.SubCategories;
foreach (Category cat2 incat1)
{
if (cat2.Name == "cut Pattern")
{
cat2.set_Visible(rvtUIDoc.Document.ActiveView,
false);
}
}
The above code is what I've tried so far. Does not work.