Function GenerateNearTable when In_Features are inside polygon

Discussion created by janver on Feb 27, 2012
Latest reply on Feb 28, 2012 by mdenil
When doing a GenerateNearTable in Arcgis 9.3 it returns a near_dist of 0 when the input features are inside the polygon.
How can i let i calculate the near_dist to the edge of the polygon?  I found there is a command named PolygonToLine, but that only works when a workspace is set. And (i think) setting the workspace is no option because the data comes from different database extracts in different formats and are at different locations.
So how can I find the near distance to the edge of the polygon, is there an option with GenerateNearTable or do I have to break up the polygons into lines in some way?