axlCmdRegister( "Originset" 'Originset )
axlCmdRegister( "FitSize" 'FitSize )
defun( Originset ()
vcPointxy = car(axlExtentDB())
;invert the sense of the x coordinate
vc_x = minus( car( vcPointxy ) )
;invert the sense of the y coordinate
vc_y = minus( car( cdr( vcPointxy ) ) )
;put the x and y back together as a point list
vcNewPointxy = list( vc_x vc_y )
;change the origin to the new point
vcOChange = axlDBChangeDesignOrigin( vcNewPointxy )
axlUIWPrint(nil "Complete Set 00 to Origin!")
nil ;返回空值,可以直接done
);end defun