It is possible to have access trough c# on this value --see combo box.
I have a drawing wich contain multiple solid parts onto one sheet, but only one is associated with the drawing block description (could be default view or Drawing View XX). I want to take the custom properties of that model and save the PDF with some custom properties parameters on the filename (ex. )
Thank you
Yes it is possible. It takes some iterating through variables though. See below for my example snipped from my project.
I use it here to determine if the default (first) view references the model and if not, it gets the view with the same name as the "CustomPropertyView" and then creates an ModelDoc2 object of the referenced model. From there, I can get it's custom properties, sort through its feature tree and everything else.
Edit - to clarify.
Note: you won't use the model.AsDrawing() function. This is one from an addin library I am using. It essentially casts the ModelDoc2 file to a DrawingDoc file.