Dimension on assembly

Hi guys.

Im trying to make a script that automatic places dimensions on a “simple” elevation view of a assembly/part.
ive searched here on the forums and there is alot of threads about dimensions and parts/assemblies but i cant seem to find the way to go/start.

i tried a little with chatgpt/Dynamo and it helped extract xyz with boundingbox but i just cant seem to extract a reference to the part.

info on the part
Wall
System family
no layers

im not even sure its the right way to start :slight_smile:

this is the goal to begin with so i could work with it and add more afterwards :slight_smile: