60002014 ZoomToObject and ZoomToSelection commands added

Article 60002014
Type Wish
Product Engine
Version 6025
Date Added 8/5/2013 12:00:00 AM
Fixed (8/5/2013 12:00:00 AM)
Submitted by Peter Chanios

Summary

I wish to have these two commands ZoomToObject and ZoomToSelection.

Solution

In version 6026 we added two more options to the Zoom command of the commandAction object.

public void Zoom(object Type, object FirstCorner, object OtherCorner)

"o" : zoom to object. The second parameter can be a vdFigure or null so the user is asked to select a figure from the drawing.
"sel" : zoom to selection. The second parameter can be either a vdSelection object or null so the user is asked to select figures from the drawing.

Send comments on this topic.