API for Sheet metal part drawing

Hi, here's an odd issue I've come across. I run a macro which makes drawings from all types of parts or assemblies using the "current" model view. The API call I'm using is CreateDrawViewFromModelView3. The macro creates a single drawing view from the "Current" model view of a part or assembly. Problem is, with some, but not all parts that are sheet metal parts, and some, but not all, assemblies that contain a sheet metal part, the drawing view created uses the "Top"  view instead of the "Current" view as the drawing view.  Also, the view palette is not populated, and there seems to be no way to approach it from that angle. Does anyone have any idea what's going on here? Thanks!

SolidworksApi macros