Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

Using Macros and Functions Together

  • Last UpdatedNov 10, 2025
  • 1 minute read

The existing mechanism for invoking a macro using $M continues to be available alongside the new PML Functions. Most PML code in existing macros should continue to work unmodified.

To call a macro, even from within a PML Function, use the $M command. Variables used as arguments to a macro must be STRING values. PML Variables must be converted to a STRING with a preceding $:

$M filename $!X $!Y $!Z

Note: To gain the full benefits of using PML Functions it is best not to mix Macros and Functions extensively. Many of the advantages of PML Functions depend on using variables without $ which is not possible with arguments to macros.

Related Links
TitleResults for “How to create a CRG?”Also Available in