Maybe I misunderstand it, but I think you just looking for the token called PARTMArK:

So Advance Steel has several token for the numbers of the model:
Prelinary mark --> output: preliminary number
Single Part mark --> output: Singlepart number
Main Part mark --> output: Mainpart number
Part Mark -->output: if the part which is shown is the mainpart of the shop structure, this token will output the Mainpart number, if this part is just an attached part of the structure the output will be the singlepart number.
Sebastian Eiche
Application Engineer @Mensch und Maschine acadGraph

If this information was helpful, please use the Accept as Solution function, this make it easier for other users