Dimensioning Drawings

Hey all,

I have a nice little program going that reads some variables from afile and generates a 3d model based on those variables. The modelpart of it is working great. I am now working on a seperate partthat will make a drawing from it and automatically add dimensions.This part is not so great. I am having some problems selectingspecific edges.

One specific problem is with selecting a chamfered edge. I amusing:

xIDrawingDocExtension.SelectByID2("", "SILHOUETTE", xCenter,yCenter, 0, True, 0, Nothing, 0)

This line does not work unless I am zoomed in. It does not evenmatter if the region that the chamfer is in is on the screen, justthat I am zoomed in somewhere on the drawing. What is causing thisbehavior? Is there any way to change this? If not, are there anyfunctions that can be used on a IDrawingDoc that can zoom changethe zoom?

Thanks,

Rob
SolidworksApi macros