Welcome to Golden Software Support

New to Golden Software? Our software gurus will help you make the most of your time in the trial.

Schedule a Demo Now >



  • Sharon Shaji
    Sharon Shaji

    How can I export Labels by automation?

    ExportContour doesn't allow me to access the Export options to make Render Text = 1

    I can't export labels of a contour map using Export or Export2

  • Brittany Bodane
    Brittany Bodane

    Hi Sharon,

    Thank you for contacting Surfer technical support.  The Export Contours command is designed to export only the contour lines with the associated Z value.  This is the case both in the user interface and via automation.  However, Surfer 12 and newer versions include the Z value during any export of a contour map.  Therefore, the Export2 command should include the ZLEVEL attribute and I have confirmed this in my testing.  Please note that the text will be exported to a second SHP file with Poly added to the end of the file name.

    To update your script, I would recommend changing line 33 to 

    ContourLayer.Export2(FileName:="z:\GWM_Schwetzingen\P01_Programme\GRD to SHP\SHP\"+schicht+"_major.shp", SelectionOnly:=True, Options:="RenderText=1, ScalingSource=1”, FilterId:=”shp")

    My colleague, Katie, has replied to your email with this information as well. If you have any additional questions, please reply to her email. 

    Thank you,

    Brittany Bodane

    Golden Software


Please sign in to leave a comment.