New to scripting need help!

kentmankentman Global Mapper UserPosts: 149Trusted User
edited April 2015 in GM Script Language
I'm trying to find a script that will split a dwg by the 'Feature Description' and then export each of the split layers to a dxf. I don't know if it just me but I can't make head nor tail of the scripting language!

Has anyone got something I could use - I've looked at the reference but it is not easy to understand.

Thanks
Kent

Comments

  • JeffH@BMGJeffH@BMG Global Mapper Developer Posts: 337Trusted User
    edited April 2015
    Hi Kent,

    The EXPORT_VECTOR command (Global Mapper Scripting Reference) seems like it should work for you. You can export separate layers based on feature attributes. The following script should be a good starting point:
    GLOBAL_MAPPER_SCRIPT VERSION="1.00"
    EXPORT_VECTOR FILENAME="%SPLIT_ATTR%.dxf" TYPE="DXF" FILENAME_ATTR="<FEATURE_DESCRIPTION>" SPLIT_BY_ATTR="YES"
    

    Please let me know if this helps.

    Best,

    ~Jeff
Sign In or Register to comment.