Procedure me::ExportNode(esection, filename)

me::ExportNode

The procedure me::ExportNode writes a section to file.

me::ExportNode(
        esection,  ! (input) section element.
        filename)  ! (input) a string

Arguments

esection

An element in the set AllIdentifiers referencing a runtime library or a section in a runtime library.

filename

The name of file to which the section is written. The filename should have the .ams extension.

Return Value

The procedure returns 1 if the file is written successfully. If the procedure fails to write the file it returns 0 after raising errors.

Example

Viewing a small runtime library with prefix frerl in the model explorer:

../../_images/runtimelib-setup.png

Let ep_functionReferenceExampleRuntimeLib be the element parameter that holds the root of that library as value, then the code:

me::ExportNode(
    esection :  ep_functionReferenceExampleRuntimeLib,
    filename :  "test.ams");

writes the contents of the runtime library to the file test.ams.

References

Generic references for model edit functions can be found on the index page