Hello Everyone,
I load a part model (3D cube) through macro and then i do some calculation and select one of the faces. I want to now zoom fit my model so that the selected surface is viewed. Is there a way to do it?
Regards,
Prashant Mohan
Hello Everyone,
I load a part model (3D cube) through macro and then i do some calculation and select one of the faces. I want to now zoom fit my model so that the selected surface is viewed. Is there a way to do it?
Regards,
Prashant Mohan
If you made the normal to selection and then the zoom fit command. See example for normal to command.
2015 SOLIDWORKS API Help - Get Normal of Planar Face Example (VBA)
Select the face, run the command normal to and then zoom to fit.
C#: Entity swEntity = swFace as Entity; swEntity.Select(false); swModel.Extension.RunCommand((int)swCommands_e.swCommands_NormalTo, ""); swModel.ViewZoomtofit2();
Select the face, run the command normal to and then zoom to fit.