Defining all enumerators yourself or replacing in code with plain numbers in some cases may be a bit too challenging. There is also another way.
If you use scripting in windows (the language looks like .vbs) then you still can use these constants, by wrapping your file into .WSF (Windows Script) file.
In a .wsf file, you have a "reference" item which allows you to use constants from a type library.
<job id='my script'>
<!-- this imports enumerators from Visio typelib -->
<reference guid="{00021A98-0000-0000-C000-000000000046}" version="4.14" />
<script language="vbscript">
...
your code here which uses constants from Visio type library here, like:
...
WScript.Echo visRowXFormOut ' prints 1
...
</script>
</job>
Not 100% sure if you must specify the version explicitly in the item but anyways, Visio 2010 version is 4.14, Visio 2013 is 4.15. It may work without explicit version specification as well (please refer to the wsf docs)
You could also consider wrapping the whole .vbs file without changes like this:
<job id='my script>
<reference guid="{00021A98-0000-0000-C000-000000000046}" version="4.14"/>
<!-- you can use enumerators in that script -->
<script language="vbscript" src="code.vbs" />
</job>