Welcome to Golden Software Support

Comments

2 comments

  • Avatar
    Kien Pham

    It seems to me that the per unit settings don't behave the same as the scale input in the Transform menu. Is there a way to automate setting specifically the X and Y scale inputs in the Transform menu?

    EDIT: I was actually able to figure out the scaling I want using the MapPerPU properties. However, I have not figured out how to turn off Proportional XY scaling via automation. Please help on that. 

  • Avatar
    Brittany Bodane

    Hi Kien,

    Thank you for posting your questions! I am happy you found how to automat setting the X and Y scale inputs in the Transform menu. 

    Regarding your new question, The Proportional XY Scaling option is automatically turned off if you set the Map scale to lengths that are not proportional. Thus, there is no method to uncheck this option. If you only establish a length for the X, Y, or Z, Surfer assumes you would like to keep the map proportionally scaled. Otherwise, it will take the lengths stated in the script. For example, the script below will change the X,Y, and Z scales to disproportionate scaling:


    MapFrame1.zLength = 1.75
    MapFrame1.xLength = 3
    MapFrame1.yLength = 3

    Another sample script you may be interested in seeing in located by default in C:\Program Files\Golden Software\Surfer <version number>\Samples\Scripts and is named MapFrame.bas

     

    Please let us know if you have any further questions.

    Thank you,

    Brittany Bodane

    Golden Software

     

     

Please sign in to leave a comment.