Get family type category value

Is there a way to get the category that is used for a family type parameter? Orchid has a node that can create a family type parameter but the example for it has simple text code block input for the category. I want to add typically three parameters. Each would possibly have their own category and these could change depending on what family the script is being ran on.

For example I have a data device family that has two parameters that control two sets of nested data device families and another parameter that controls a nested generic annotation family. I can get every piece of information needed using the “Element Parameters Properties” node from GeniusLoci except for what category the family type parameter controls for.

The only thing I’ve been able to think of is modifying all family type parameters names to include the category controlled and then split the string to get the category by itself.

hello, a solution with Python Node
just for get the value Name of Category of NestedFamilyTypeReference

import clr
from Autodesk.DesignScript.Geometry import *

import Autodesk
from Autodesk.Revit.DB import *

import RevitServices
from RevitServices.Persistence import DocumentManager

doc = DocumentManager.Instance.CurrentDBDocument
uiapp = DocumentManager.Instance.CurrentUIApplication
app = uiapp.Application
uidoc = uiapp.ActiveUIDocument

out = []

elem = UnwrapElement(IN[0])
elemTyp = doc.GetElement(elem.GetTypeId())

for j in elemTyp.Parameters:
	if j.StorageType == StorageType.ElementId:
		para = j.AsElementId()
		elempara = doc.GetElement(para)
		if isinstance(elempara, NestedFamilyTypeReference):
			out.append([j.Definition.Name, elempara.Name, elempara.Category.Name])

OUT =  out

I’ll check it out Monday, thanks for the effort.