0 Replies Latest reply on Sep 24, 2013 4:10 PM by Gregory Sharp

    AutoScaling not working for CreateDrawViewFromModelView3 in SW2013

    Gregory Sharp

      I can't get the auto-scaling preference to work in 2013. It works in 2010 just fine. In 2013, the user preference toggle seems to be working ok, but the new drawing view is using the sheet scale, not the auto-scaling even though it's toggled. Here's the code I'm using:




               UserPrefScale = swApp.GetUserPreferenceToggle(swUserPreferenceToggle_e.swAutomaticScaling3ViewDrawings)

               swApp.SetUserPreferenceToggle swUserPreferenceToggle_e.swAutomaticScaling3ViewDrawings, True


                Set swDraw = swApp.NewDocument(sDrTempFileName, lDrSize, 0, 0)

                Set DrawView = swDraw.CreateDrawViewFromModelView3(pname, "Current Model View", 0.3, 0.2, 0)