Getting the SplitElementId of FaceSplitter Elements

Hi!
I am trying to get the SplitElementId from a list of FaceSplitter Elements (which is a built-in category of the lines that split walls for the Paint tool).
The purpose is to create a list of the Wall instances each FaceSplitter Element relates to.

Unfortunately my knowledge of Python is still basically limited to copying and pasting code… I found virtually no package nodes for handling these FaceSplitter elements. I already managed to make a list of all the Facesplitter Elements using basic Python, but I still cannot get their SplitElementId.

Can anyone lend me a hand with that? Thanks in advance

Can you post the code with formatting so we can see how you’ve gotten this far?

This may help with the next step: SplitElementId Property

It seems old dogs can indeed learn new tricks, lol:

import clr
clr.AddReference(“RevitAPI”);
from Autodesk.Revit.DB import *
clr.AddReference(“RevitServices”)
from RevitServices.Persistence import DocumentManager
doc = DocumentManager.Instance.CurrentDBDocument
def getSplitElementId(element):
el = doc.GetElement(ElementId(element.Id))
if el.SplitElementId <> None:
return el.SplitElementId
return “”
ret =
for each in IN[0]:
ret.append(getSplitElementId(each))
#Assign your output to the OUT variable.
OUT = ret

This might be very basic stuff, but I’m glad I’m learning something

1 Like

Well done!