Yes and no.
This is all off the top of my head so it isn't real but should get the idea across.
sub test()
dim dblPtOne(0 to 2) as double
dim dblPtTwo(0 to 2) as double
dim dblX as double
dim dblY as double
dblptone = thisdrawing.utility.getpoint(,"First point")
dblpttwo = thisdrawing.utility.getpoint(,"Second point")
dblx = dblptone(0) - dblpttwo(0)
if dblx < 0 then
dblx = dblx*-1
end if
dbly = dblptone(1) - dblpttwo(1)
if dbly < 0 then
dbly = dblx*-1
end if
if dblx < dbly then
dblpttwo(0) = dblptone(0)
else
dblpttwo(1) = dblptone(1)
end if
end sub