The snippet should look like the following:
IModelDocExtension* pDocExt; model->get_Extension(&pDocExt); IPackAndGo* pPackAndGo; pDocExt->GetPackAndGo(&pPackAndGo);
Thank you for comment.
I tried that but can't solve.
But I knew that how can i solve this proble.
The Program was may made at least 6 years ago.
That is included old library. and The ModelDocExtension has not included GetPacAndGo method.
So I tried to add new type Library SW 2015 Type Libaraly.tlb.
And Added two class CPackAndGo And CModelDocExtention.
The new classes could write samely SolidWorks's API sample.