fully define sketches

Hi,
Iam trying to develop a macro that will fully define sketches.

iam using

later = SketchManager.FullyDefineSketch ( EntitiesToFullyDefine,UseRelations, RelationsToApply, UseDimensions, HorizontalDimScheme,HorizontalDatumDisp, VerticalDimScheme, VerticalDatumDisp,HorizontalDimPlacement, VerticalDimPlacement)

Once the run the macro, the sketch remains underdefined
The only dimensions missing are the ones to the origin

How do I select the origin (Both for horizontal and verticalreference) and get all entites dimensioned from it?SolidworksApi macros