Setting browser organisation sorting/filtering

Hi all,

Has anyone had any success accessing/setting/deleting Browser Organisation types?

As far as I can seem to get is reading that the “Type Name” field is the filter/sorting rule that you apply against the browser. As far as deleting types or creating new ones with new rules goes, I cant see much on the docs for doing that…

Any help appreciated!

import clr 

clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager

clr.AddReference("RevitAPI")

import Autodesk
from Autodesk.Revit.DB import *

doc = DocumentManager.Instance.CurrentDBDocument

# Collect browser organization data for sheets
browser_organization = BrowserOrganization.GetCurrentBrowserOrganizationForSheets(doc)

# Get params, names & values
parameters = browser_organization.Parameters
names = [p.Definition.Name for p in parameters]
values = [p.AsValueString() for p in parameters]

OUT = zip(names,values)

image

this thread should getting you bit closer when it comes to acessing. when it comes to acssesing. when it comes to setting if you manage to acess all the browser organizations it should just be a matter of selecting which one you want to set. as for creating new one that might be a a lot harder.

1 Like

Thanks for sharing @stefan.gokstorp, I’ll report back when I get some time to look into this again.