ZW3D macro Language templates

HI ALL:

In order to make it convenient for you to write macros or mapping keys, I share my highlighted template!
image

Notepad++ language:
image

zw3d_macro.zip (12.2 KB)

Also welcome interested friends to modify and upgrade it!

1 Like

Hi,
following the instructions at this link
https://help.zwsoft.com/help/helpres/ZW3D_en-US_2025/Eng/articles/article-654.html?pid=U2FsdGVkX19Wy%2BcsKICoJ3XaQovWLAeHtlZ%2BqkNTSLTe0leqi1i99ca34cTEX4zGYwAu5q4vWlukO4FwkYm%2BmbD3GOD2J5tpEzrWAic9ApbBuBkbLG3OQofDfg3Wi%2FPpji1%2Bb%2F8aFhjdPh3EeOwPkVmSV7G6gzU1HiEoRlwCSzIm9l%2Be%2BL%2FRWyUnc97EXsHyIaQRCpBiUSQK%2B3Yj8XLA2%2F55A5vo%2BzPbtEZ3B6eFqkbms5j6uDXC6blmp6n6R8o3eDMfoPd9d%2BE56vGxxZESbOGn8BMmWg%3D%3D&from=#pdt_zw3d2025enus_n01266

I created a file in my user directory named _alias.txt.
I put the example _alias code in the _alias.txt file.
I typed $run _alias.txt on the command line in ZW3D 2015.
I get this feedback -
ALERT: [fil,!FtFlltConst…] is not inside a “macro” or “data” block.

ALERT: [mac,$load test.mac…] is not inside a “macro” or “data” block.

ALERT: [boss,!FtBossExt…] is not inside a “macro” or “data” block.

ALERT: Macro [_alias.txt] has not been loaded.

? next?
thanks
Stuart

HI
That file of yours is wrong,
_alias <<<<<<<<<<<

image
image

I’m out of third-party editors.

image

Hi,
I changed the file name.
I get the same error messages
thanks
Stuart

I typed $run _alias.txt on the command line in ZW3D 2015. NO

You don’t have to do this, you simplify the instructions

AAA,!FtBossExt

and then you type it directly into the software.

!AAA

you can see the effect.

AAA,!FtBossExt - gives me the error - not a valid command - when typed into the command line

wish I could help you!

Hello

Could you please explain how file_alias does it work?

I have try it following to guide but it seems it doesn’t work.

I see the video but it very pur quality I don’t recognize the text…

Thank you

I am using zw3d 2025

I have create file _alias in install folder and insert this code and in the same location I have placed macro file…

#
# VX command shortcuts (shortcut_name,command_string)
#
fil,!FtFlltConst
AAA,$load STEP_export_PMI.mac
boss,!FtBossExt
# end of file

when I write $run _alias it show me

Open a file for editing
DEBUG: Initial 692636 KB memory working set, 792176 KB of page file usage, 0 KB video memory available
DEBUG: Elapsed time = 0.0110719 seconds.
DEBUG: Ending 692792 KB memory working set, 792316 KB of page file usage, 0 KB video memory available
DEBUG: Change 156 KB memory working set, 140 KB of page file usage, 0 KB video memory
DEBUG: Ending memory working set peak is 692800 KB, page file usage peak is 792320 KB

DEBUG: QA macro processing aborted prematurely
NOTE: EXECUTION: [_alias] PASSED.
Total execution time = 0.142027 seconds
See [C:\Users\admin\AppData\Roaming\ZWSOFT\ZW3D\ZW3D 2025\output\QaOutputFiles\QaLogFile.txt] in the QaOutputFiles directory

When I type !AAA into command line, nothing happens…

it’s very strange

@Petrnejedly
HI
That’s what’s inside him.
image