Getting assembly dimensions in a drawing

Hi,
   I am trying to get Assembly featureonlydimensions in the drawing view using API. I am using thefollowingcommands.

'ADDING DIMENSIONS TO THE DRAWING VIEW-2
bret = swModelDocExt.SelectByID2("DrawingView2","DRAWINGVIEW", 0.075, 0.085, 0, False, 0, Nothing, 0)bret=swDrawing.ACTIVATEVIEW("DrawingView2")'swModel.ClearSelection2TrueswAnnotations='swDrawing.InsertModelAnnotations3(0,swInsertDimensionsMarkedForDrawing,False, True, False, False)
swAnnotations = swDrawing.InsertModelAnnotations3(3, 32776,False,True, False, False)
'swDrawing.InsertModelDimensions (3)

As it's described in the api help

retval =DrawingDoc.InsertModelAnnotations3( option, types, allViews,duplicateDims, hiddenFeatureDims,usePlacementInSketch)


option:    

0 - All dimensions in theview

1 - All dimensions ofthecurrently selected component (for assembly drawings)

2 - All dimensions ofthecurrently selected feature

3 - All dimensions of theassembly

I am able to get the option-0 working. But, When I tryto getthe option-3 (all dimension of the assembly) it doesn'twork. Tocheck whether i have the dimensions in the assembly,ihave tried to get the dimensions manually usingtheinsert model items, which works well.

Have anyone experienced this problem before or is thereanysolution to this problem. Your suggestions would bereallyappreciated.

Thanks,
Raj

SolidworksApi macros