ParameterGroup as Revit.Elements

Good day,

this is possible -get ParameterGroup as Revit.Elements ?

image

i would like to get Names of them like in Revit

Sorry, could you please rephrase the question?

image

BuiltInParameterGroup is havent Description or Name so this is trouble
image

I’m also lost… the Parameter.Group node isn’t sufficient? Can you post a rvt and dyn so we can understand what you’re after?

its need to get names as in Revit of all ParameterGroup (PG_)

image

image

Get all PG_

import clr
clr.AddReference("ProtoGeometry")
from Autodesk.DesignScript.Geometry import *
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *
import System

OUT = [i for  i in System.Enum.GetValues(BuiltInParameterGroup)]

Hi @til.shviger

image

2 Likes

its Very Good news ! .I am pleased that this is a possibility

@Kulkul
thanks again for your help :v::slightly_smiling_face:

@til.shviger No Problem :wink:

@Kulkul
you are can use new avatar :grin:

3 Likes

Hi,

I try to use this code, but after writing it down, I have no result.

import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
import System


bip = System.Enum.GetValues(BuiltInParameterGroup)
pdata = list()
for b in bip:
    try:
		pdata.append((b,LabelUtils.GetLabelFor(b)))
	except:
		pass

#Weisen Sie Ihre Ausgabe der OUT-Variablen zu.
OUT = pdata

this is the resultDynymo_BuiltInGroup

can Anybody help me?
THank you
Heinrich

What are you get in bip ? may be you are get empty list ? try :

import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
import System

bip = System.Enum.GetValues(BuiltInParameterGroup)
OUT = bip

Python is indent sensitive, try recreating all indents in your script :slight_smile:

Thankyou for this post. I don’t have words to thank you Mr. @Kulkul. Your script has saved immense time for me. Thank you so much sir. God bless you.

~J