As we know, drawing name is stored in dwg_name system parameter, but this parameter through toolkit is not accessible. How to get value of dwg_name using toolkit?
There is a support article:
Article - CS96733 'How to use the "dwg_name" in a relation or in a Pro/ Program in Creo Parametric Creo 2.0'
Why is it not possible for you to use ProMdlDataGet(model,&data) -> data.name,
which is equivalent to the requested value.