Retrieve geometry of part division line

Hi everybody,

I’m struggeling for a few days now on a “part/divion line” problem.
I found a lot of content in forum to create parts, but I would do the opposite workflow.

How to extract geometry of a sketch division line ?
Is this even possible ?
Or extract geometry of divisions ?

I came up with this, to me it’s a dead end…

Many thanks !

Dude go here.

you may a get anything that may be helpful.

Thanks, I’ve been already read this post, but not sure what I’m missing or supposed to specifically see.
Can you be more specific ?

I’m not so confident with python, trying to understand the more I can !

Is something related to this code in the post you mentionned ?

##Code for getting location line

import clr

from Autodesk.Revit.DB import *

import Revit

def ProcessList(_func, _list):
    return map( lambda x: ProcessList(_func, x) if type(x)==list else _func(x), _list )

def UnwrapAndGetLocation(item):
	return UnwrapElement(item).Location.Curve.ToProtoType(True)

OUT = ProcessList(UnwrapAndGetLocation, IN[0])

Not sure how to use this…