IModelDoc2::IInsertBOMBalloon2 return S_FALSE

When selected segments or points belong to a view, the IModelDoc2::IInsertBOMBalloon2 return S_FALSE and the note is NULL.

Why?

And if the object does not belong to a view, the API runs well.

I'm confused.

Can anybody helps?

Thanks in advance.

SolidworksApi macros