Hmmm, you really are jumping in at the deep end!Originally posted in cdnusers.org by Dave Elder
First you need to get the dbid of each of the objects that you want to measure between.
Typically you might want to find the minimum distance between all shapes on a single subclass.
shapes = axlDBGetShapes("manufacturing/solder_mask")
minGap = nil
shp1 = car(shapes), shps = cdr(shapes)
gap = caddr(axlAirGap(shp1, shp2))
minGap = if(minGap then min(minGap, gap) else gap)
minGap; Rturn the minimum gap between shapes on this subclass.
This code will be slightly more complex if you are measuring between two subclasses - but you should be able to figure it out.