start

PKGETFNAMEM

Intended to be used inside macros

Syntax: PKGETFNAMEM;variable

The variable will be assigned the current file name excluding path and extension.

Example

Save the current drawing as DXF in folder C:\files and run application test.exe

MACRO DXFOUT
PKGETFNAMEM;filename
GL;pathname;C:\files\
APND;pathname;filename
APND;pathname;.DXF
SAVEASM;pathname
GL;app;C:\files\TEST.EXE 
APND;app;pathname
RUNAPP;app
ENDM

Please note the extra space after TEST.EXE