Zoom |
Top Previous Next |
// This will zoom all the current document... void ZoomAll() { CComPtr<Application> pInvApp = GetInvAppPtr () ; if (pInvApp == nullptr) { return ; }
CComPtr<Document> pCurrentDoc ; HRESULT hRes = pInvApp->get_ActiveDocument (&pCurrentDoc) ; if (FAILED(hRes)) { return ; }
CameraPtr pCam = pInvApp->ActiveView->Camera ; pCam->Fit() ; pCam->Apply () ; }
|
Text, images and diagrams © 2021 Owen F. Ransen. All rights reserved. (But copy the source code as much as you want!)