Adding all numbers of a sheet or layer - is that possible?

Hello,

is there somebody out there who knows if you can add all existing numbers on a single sheet or layer - and if that is possible - who also can explain it to me how to do it?

Greetings,
André

Comments

  • DogtagDogtag Moderator, Betatester Traveler
    Wow, I never thought about doing that. I'm afraid I don't have an answer for you but I am curious; what is your purpose for doing so? Are you counting troop numbers or something similar?

    ~Dogtag
  • Dogtag - I actually never thought about counting troop numbers :)
    But this could be just one of many possibilities!
    Counting the number of citizens in your town or your fantasy kingdom
    or the taxes being payed by them...

    I found a little workaround in meantime.
    You can export all text in a drawing (in the menu File->Save As ->all text in drawing) - and i seems that only all visible text is exported into a simple text file that I could import to a calculation program where I could add all the numbers...

    But if someone has a more easy way - let me now... :)
  • WarEagleWarEagle Newcomer
    edited October 2015
    You can do a little macro for helping you.

    This macro will export all texts on layer "CAVES" to the 1.txt and all texts on layer "STANDARD" to 2.txt

    MACRO CntAll
    SELBYL
    TEXPORTM CAVES
    0 c:\\Users\\WarEagle\\Desktop\\1\\1.txt
    TEXPORTM STANDARD
    0 c:\\Users\\WarEagle\\Desktop\\1\\2.txt
    SELBYD
    ENDM

    The 0 tells cc3 how to order the numbers, for other values take a look into the help for TEXTPORTM.
  • DogtagDogtag Moderator, Betatester Traveler
    edited October 2015
    Also, remember to change Users\\WarEagle\\Desktop to the path on your machine to your desktop. image

    @Wareagle
    You macro mavens blow my mind.
Sign In or Register to comment.