view orientation "Fit"

Genius
Genius

what is the method needed to fit my model to the part document window?

Bob Reinkemeyer
CAD Integration developer
Martin Sprocket and Gear Inc.
2 REPLIES

Re: view orientation "Fit"

Genius
Genius

sorry to bother everyone, I found the answer in an example on github

 

Application.StartCommand(SolidEdgeConstants.PartCommandConstants.PartViewFit);

Bob Reinkemeyer
CAD Integration developer
Martin Sprocket and Gear Inc.

Re: view orientation "Fit"

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Hi martyman,

better than calling a user command:

Find the ActiveWindow in the Application and use the View object ofthe Window and call Fit()

That should do the trick.

regards

JB
VS2015, SE ST10