Using algorithms in DraftSight

Hello Everyone. Is it possible to write an algorithm based on some parameters which can give a specific amount of offset at each point in my 2D geometry in DraftSight automatically ?