Open Part Model associated with Titleblock

Hi All,

I have a question for you.

How would I go about determining which drawing view is associated with the title block and then open that part/assy?

basically, I've written a macro that made some changes to a drawing and now i want to open the part/assy model and make some changes to that also, but I don't know how.

I recorded a macro to try and figure it out but, I'm thinking there must be a cleaner way to get this done.

it is important that the macro doesn't care if its a part or assy model because this macro will be used for both.

thanks in advance for your help!

Chris

SolidworksApi macros