Include class

The Include class allows you to access the include files in a model. More...

The PRIMER JavaScript API provides many class constants, properties and methods. For Arup to be able to extend and enhance the API in the future any constant, property or method names beginning with a lowercase or uppercase letter are reserved.
If you need to add your own properties or methods to one of the existing classes then to avoid any potential future conflict you should ensure that the name begins with either an underscore (_) or a dollar sign ($) or the name is prefixed with your own unique identifier.
For example if company 'ABC' need to add a property called 'example' then to avoid any potential future conflict use one of:

Class functions

Member functions

Include constants

Name Description
Include.COPY_INTO_CURRENT Copied elements are put into the current layer. See also Options.copy_target_include
Include.COPY_INTO_SOURCE Copied elements are put into the include of the original element. See also Options.copy_target_include
Include.MASTER_ONLY Only write the master file. See also Model.Write()
Include.MERGE Merge include files into the master file. See also Model.Write()
Include.NOT_WRITTEN Prevent include files from being written. See also Model.Write()
Include.SAME_DIR Write master and include files into the same directory. See also Model.Write()
Include.SELECT Select include files to be written out. See also Model.Write()
Include.SUBDIR Write include files to subdirectory. See also Model.Write()

Constants for Directory separators

Name Description
Include.NATIVE Use directory separators native to this machine when writing directory names. See also Model.Write()
Include.UNIX Use unix directory separators when writing directory names. See also Model.Write()
Include.WINDOWS Use windows directory separators when writing directory names. See also Model.Write()

Constants for Pathnames

Name Description
Include.ABSOLUTE Write include file with absolute pathname. See also Model.Write()
Include.RELATIVE Write include file with relative pathname. See also Model.Write()

Constants for Transformation offsets

Name Description
Include.ENDOFF Offset applied to PRIMER post end keywords (Dummy, Mechanism etc.)
Include.IDDOFF Offset to define ID (used in Include.SetTransformOffset() )
Include.IDEOFF Offset to element ID (used in Include.SetTransformOffset() )
Include.IDFOFF Offset to function and table ID (used in Include.SetTransformOffset() )
Include.IDMOFF Offset to material ID (used in Include.SetTransformOffset() )
Include.IDNOFF Offset to node ID (used in Include.SetTransformOffset() )
Include.IDPOFF Offset to part ID (used in Include.SetTransformOffset() )
Include.IDROFF Offset to other ID (used in Include.SetTransformOffset() )
Include.IDSOFF Offset to set ID (used in Include.SetTransformOffset() )

Constants for compress mode

Name Description
Include.INDIVIDUAL_GZIP Each file 'name.key' is 'gzipped' to become the individual file 'name.key.gz'
Include.INDIVIDUAL_ZIP Each file 'name.key' is 'zipped' to become the individual file 'name.key.zip'
Include.KEEP_ORIGINAL Each file 'name.key' is written using its original compression: uncompressed, '.gz. or '.zip' format

Include properties

Name Type Description
comments string Comments stored at the top of the include file. Note that this property is not supported for master include file.
fctchg real Electric charge transformation factor. Note that this property is not supported for master include file.
fctlen real Length transformation factor. Note that this property is not supported for master include file.
fctmas real Mass transformation factor. Note that this property is not supported for master include file.
fcttem string Temperature transformation factor. Note that this property is not supported for master include file.
fcttim real Time transformation factor. Note that this property is not supported for master include file.
file string The absolute filename for this include file.Note that this property is not supported for master include file. Also see the name and path properties.
genmax integer Include maximum label range value for general items
genmin integer Include minimum label range value for general items
iddoff (read only) integer Offset to define ID. To set property use Include.SetTransformOffset(). Note that this property is not supported for master include file.
ideoff (read only) integer Offset to element ID. To set property use Include.SetTransformOffset(). Note that this property is not supported for master include file.
idfoff (read only) integer Offset to function and table ID. To set property use Include.SetTransformOffset(). Note that this property is not supported for master include file.
idmoff (read only) integer Offset to material and equation of state ID. To set property use Include.SetTransformOffset(). Note that this property is not supported for master include file.
idnoff (read only) integer Offset to node ID. To set property use Include.SetTransformOffset(). Note that this property is not supported for master include file.
idpoff (read only) integer Offset to part, nodal rigid body and constrained node set ID. To set property use Include.SetTransformOffset(). Note that this property is not supported for master include file.
idroff (read only) integer Offset to other ID. To set property use Include.SetTransformOffset(). Note that this property is not supported for master include file.
idsoff (read only) integer Offset to set ID. To set property use Include.SetTransformOffset(). Note that this property is not supported for master include file.
incout integer Create file containing transformed data. Note that this property is not supported for master include file.
label (read only) integer Include number. This number is used to identify the include file. A number is required as it is possible (with include transforms) to have multiple include files with the same name so they cannot be identified by name. The master file is include file number 0. Also see the parent property.
model integer The Model number that the include is in.
n_locked_range integer Number of locked label ranges. Note that this does not include label ranges locked model-wide (ALL includes).
name string The filename for this include file excluding any path. Note that this property is not supported for master include file. Also see the file and path properties.
nelmax integer Include maximum label range value for nodes/elements/nrbc/const. spotwelds/define HWA items
nelmin integer Include minimum label range value for nodes/elements/nrbc/const. spotwelds/define HWA items
parent integer Include number for the parent include file of this include. This number is used to identify the parent include file. A number is required as it is possible (with include transforms) to have multiple include files with the same name so they cannot be identified by name. The master file is include file number 0. Also see the label property. Note that this property is not supported for master include file.
path string The path for this include file. Note that this property is not supported for master include file. Also see the file and name properties.
suppressed logical If keyout of Include file has been suppressed. Note that this property is not supported for master include file.
tranid integer Define transformation number. Note that this property is not supported for master include file.
transform logical true if this include file is an *INCLUDE_TRANSFORM, false otherwise. Note that this property is not supported for master include file.

Detailed Description

The Include class allows to create and query include files in a model. See the documentation below for more details.

Constructor

new Include(Model[Model], name[string], parent (optional)[integer])

Description

Create a new Include object.

Arguments

  • Model (Model)

    Model that include will be created in

  • name (string)

    Include filename

  • parent (optional) (integer)

    Parent include file number. If omitted parent will be 0 (main file).

    Returns

    Include object

    Return type

    Include

    Example

    To create a new include file /path/to/include.key in model m

    var i = new Include(m, "/path/to/include.key");

    Details of functions

    BlankAll(Model[Model], redraw (optional)[boolean], masterInclude (optional)[boolean]) [static]

    Description

    Blanks all of the includes in the model.

    Arguments

  • Model (Model)

    Model that all includes will be blanked in

  • redraw (optional) (boolean)

    If model should be redrawn or not. If omitted redraw is false. If you want to do several (un)blanks and only redraw after the last one then use false for all redraws apart from the last one. Alternatively you can redraw using View.Redraw().

  • masterInclude (optional) (boolean)

    If masterInclude file should be blanked or not. If omitted masterInclude is false. The master file is include file number 0.

    Returns

    No return value

    Example

    To blank all of the includes in model m:

    Include.BlankAll(m);


    BlankFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]

    Description

    Blanks all of the flagged include files in the model.

    Arguments

  • Model (Model)

    Model that all the flagged includes will be blanked in

  • flag (Flag)

    Flag set on the includes that you want to blank

  • redraw (optional) (boolean)

    If model should be redrawn or not. If omitted redraw is false. If you want to do several (un)blanks and only redraw after the last one then use false for all redraws apart from the last one. Alternatively you can redraw using View.Redraw().

    Returns

    No return value

    Example

    To blank all of the include files in model m flagged with f:

    Include.BlankFlagged(m, f);


    ClearFlag(flag[Flag], clear contents (optional)[boolean])

    Description

    Clears a flag on the include.

    Arguments

  • flag (Flag)

    Flag to clear on the include

  • clear contents (optional) (boolean)

    If true then the items in the include file will also have flag cleared. If false (default) then the include file contents are not cleared.

    Returns

    Number of item flags cleared

    Return type

    Number

    Example

    To clear flag f for include i:

    i.ClearFlag(f);

    To clear flag f for include i and all of the items inside the include file, returning the number of item flags cleared in the include file:

    var ncleared = i.ClearFlag(f, true);


    Error(message[string], details (optional)[string])

    Description

    Adds an error for an include file. For more details on checking see the Check class. Note that this function is not supported for the master include file.

    Arguments

  • message (string)

    The error message to give

  • details (optional) (string)

    An optional detailed error message

    Returns

    No return value

    Example

    To add an error message "My custom error" for include i:

    i.Error("My custom error");


    First(Model[Model]) [static]

    Description

    Returns the first include file in the model.

    Arguments

  • Model (Model)

    Model to get first include in

    Returns

    Include object (or null if there are no includes in the model).

    Return type

    Include

    Example

    To get the first include in model m:

    var i = Include.First(m);


    FlagAll(Model[Model], flag[Flag], masterInclude (optional)[boolean]) [static]

    Description

    Flags all of the includes in the model with a defined flag.

    Arguments

  • Model (Model)

    Model that all includes will be flagged in

  • flag (Flag)

    Flag to set on the includes

  • masterInclude (optional) (boolean)

    If masterInclude file should be flagged or not. If omitted masterInclude is false. The master file is include file number 0.

    Returns

    No return value

    Example

    To flag all of the includes with flag f in model m:

    Include.FlagAll(m, f);


    Flagged(flag[Flag])

    Description

    Checks if the include is flagged or not.

    Arguments

  • flag (Flag)

    Flag to test on the include

    Returns

    true if flagged, false if not.

    Return type

    Boolean

    Example

    To check if include i has flag f set on it:

    if (i.Flagged(f) ) do_something...


    GetAll(Model[Model], masterInclude (optional)[boolean]) [static]

    Description

    Returns an array of Include objects for all of the includes in a model in PRIMER

    Arguments

  • Model (Model)

    Model to get includes from

  • masterInclude (optional) (boolean)

    If masterInclude file should be included or not. If omitted masterInclude is false. The master file is include file number 0.

    Returns

    Array of Include objects

    Return type

    Array

    Example

    To make an array of Include objects for all of the includes in model m

    var i = Include.GetAll(m);


    GetDetailedRange(type argument[string])

    Description

    Gets detailed min and max label ranges for specified type from the include.

    Arguments

  • type argument (string)

    Entity type for which ranges are returned

    Returns

    An array containing the min and max label ranges for the specified type or null if no range defined for this type.

    Return type

    Array

    Example

    To get node ranges for include i:

    var ranges = i.GetDetailedRange("NODE");
    var min = ranges[0];
    var max = ranges[1];
          


    GetFromID(Model[Model], include number[integer]) [static]

    Description

    Returns the Include object for an include label.
    Note that items that are in the main keyword file will have a layer value of 0 which can be used as the include number argument to this function to return master include file.

    Arguments

  • Model (Model)

    Model to find the include in

  • include number (integer)

    number of the include you want the Include object for

    Returns

    Include object (or null if include does not exist).

    Return type

    Include

    Example

    To get the Include object for include 10 in model m

    var i = Include.GetFromID(m, 10);


    GetLockedLabelData(rangenum[integer])

    Description

    Returns the locked label data for include files. Also see the n_locked_range property

    Arguments

  • rangenum (integer)

    The range number you want the data for; includes can have multiple ranges. Note that range numbers start at 0, not 1.

    Returns

    An array containing the include name (string can also be "ALL" if range is applicable model-wide), start (min) label (integer), end (max) label (integer), safe range (0 or 1 for false or true), and entity type (string).

    Return type

    Number

    Example

    To get the locked label data for the 3rd range for include i:

    if (i.n_locked_range >= 3)
    {
        var locked_label_data = i.GetLockedLabelData(2);
    }


    IsEmpty()

    Description

    Returns true if include is Empty (contains no INSTALLED static/sort/kid/include items).

    Arguments

    No arguments

    Returns

    logical

    Return type

    Boolean

    Example

    To see if include inc is empty

    if(inc.Empty())


    Keyword()

    Description

    Returns the keyword for this include (*INCLUDE, *INCLUDE_TRANSFORM). Note that a carriage return is not added. See also Include.KeywordCards(). This function is not supported for the master include file.

    Arguments

    No arguments

    Returns

    string containing the keyword.

    Return type

    String

    Example

    To get the keyword for include i:

    var key = i.Keyword();


    KeywordCards()

    Description

    Returns the keyword cards for the include. Note that a carriage return is not added. See also Include.Keyword(). Also note that this function is not supported for the master include file.

    Arguments

    No arguments

    Returns

    string containing the cards.

    Return type

    String

    Example

    To get the cards for include i:

    var cards = i.KeywordCards();


    Last(Model[Model]) [static]

    Description

    Returns the last include file in the model.

    Arguments

  • Model (Model)

    Model to get last include in

    Returns

    Include object (or null if there are no includes in the model).

    Return type

    Include

    Example

    To get the last include in model m:

    var i = Include.Last(m);


    MakeCurrentLayer()

    Description

    Sets this include file to be the current layer so that any newly created items are put in this include file. Also see the Model.layer property.

    Arguments

    No arguments

    Returns

    No return value

    Example

    To make include i the current layer:

    i.MakeCurrentLayer();


    Modified(listing[boolean])

    Description

    Returns true if include has been modified.

    Arguments

  • listing (boolean)

    false for no listing output, true for listing output

    Returns

    logical

    Return type

    Boolean

    Example

    To see if include inc is modified

    if(inc.Modified(false)) ... (no listing output)


    Next()

    Description

    Returns the next include in the model. Note that this function is not supported for the master include file.

    Arguments

    No arguments

    Returns

    Include object (or null if there are no more includes in the model).

    Return type

    Include

    Example

    To get the include in model m after include i:

    var i = i.Next();


    Pick(prompt[string], limit (optional)[Model or Flag], modal (optional)[boolean], button text (optional)[string]) [static]

    Description

    Allows the user to pick an include.

    Arguments

  • prompt (string)

    Text to display as a prompt to the user

  • limit (optional) (Model or Flag)

    If the argument is a Model then only includes from that model can be picked. If the argument is a Flag then only includes that are flagged with limit can be selected. If omitted, or null, any includes from any model can be selected. from any model.

  • modal (optional) (boolean)

    If picking is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the pick will be modal.

  • button text (optional) (string)

    By default the window with the prompt will have a button labelled 'Cancel' which if pressed will cancel the pick and return null. If you want to change the text on the button use this argument. If omitted 'Cancel' will be used.

    Returns

    Include object (or null if not picked)

    Return type

    Include

    Example

    To pick an includee from model m giving the prompt 'Pick include from screen':

    var i = Include.Pick('Pick include from screen', m);


    Previous()

    Description

    Returns the previous include in the model. Note that this function is not supported for the master include file.

    Arguments

    No arguments

    Returns

    Include object (or null if there are no more includes in the model).

    Return type

    Include

    Example

    To get the include in model m before include i:

    var i = i.Previous();


    RemoveLockedLabelData(rangenum[integer])

    Description

    Removes the locked label data for a range in include files. Also see the n_locked_range property

    Arguments

  • rangenum (integer)

    The locked label range you want to remove. Note that range numbers start at 0, not 1.

    Returns

    No return value.

    Example

    To remove the locked labels for the 3rd range for include i:

    i.RemoveLockedLabelData(2);


    Select(flag[Flag], prompt[string], Model (optional)[Model], modal (optional)[boolean]) [static]

    Description

    Allows the user to select includes using standard PRIMER object menus.

    Arguments

  • flag (Flag)

    Flag to use when selecting includes

  • prompt (string)

    Text to display as a prompt to the user

  • Model (optional) (Model)

    Model to select from

  • modal (optional) (boolean)

    If selection is modal (blocks the user from doing anything else in PRIMER until this window is dismissed). If omitted the selection will be modal.

    Returns

    Number of items selected or null if menu cancelled

    Return type

    Number

    Example

    To select an include from model m, flagging those selected with flag f, giving the prompt 'Select include':

    Include.Select(f, 'Select include', m);


    SetDetailedRange(type argument[string], min label[integer], max label[integer])

    Description

    Sets detailed min and max label ranges for specified type on the include.

    Arguments

  • type argument (string)

    Entity type for which ranges are to be defined

  • min label (integer)

    Defines the smallest label for entities of this type

  • max label (integer)

    Defines the largest label for entities of this type

    Returns

    No return value

    Example

    To set node ranges for include i:

    i.SetDetailedRange("NODE", 50000, 60000);


    SetFlag(flag[Flag], flag contents (optional)[boolean])

    Description

    Sets a flag on the include.

    Arguments

  • flag (Flag)

    Flag to set on the include

  • flag contents (optional) (boolean)

    If true then the items in the include file will also be flagged. If false (default) then the include file contents are not flagged.

    Returns

    Number of items flagged

    Return type

    Number

    Example

    To set flag f for include i:

    i.SetFlag(f);

    To set flag f for include i and all of the items inside the include file, returning the number of items flagged in the include file:

    var nflagged = i.SetFlag(f, true);


    SetLockedLabelData(rangenum[integer], min[integer], max[integer], type[string], safe (optional)[boolean], all_includes (optional)[boolean])

    Description

    Sets the locked label data for a particular range for an include file. Also see the n_locked_range property

    Arguments

  • rangenum (integer)

    The range you want to set the data for. Note that range numbers start at 0, not 1.

  • min (integer)

    Start (min) label for a locked range.

  • max (integer)

    End (max) label for a locked range.

  • type (string)

    Entity type code - "NODE", "SHELL" etc. Can also be "ALL" (for a list of types see Appendix I of the PRIMER manual).

  • safe (optional) (boolean)

    Determines whether a locked range is safe (protected).

  • all_includes (optional) (boolean)

    Specified range will be set model-wide (all includes). Only useful when working with the 'master' include.

    Returns

    No return value.

    Example

    To set the locked label data for the 3rd range with min 99, max 199, for nodes for include i:

    i.SetLockedLabelData(3, 99, 199, "NODE");


    SetTransformOffset(offset[constant], value[integer], check_only (optional)[boolean])

    Description

    Sets offset values for include transform. This function is required to change the offset values rather than changing the properties directly so that the include can be checked to ensure that the new value does not cause any label clashes with existing items or any negative labels when the transform is unapplied when writing the include. Note that this function is not supported for the master include file.

    Arguments

  • offset (constant)

    The include transform offset type to change. Can be Include.IDNOFF, Include.IDEOFF, Include.IDPOFF, Include.IDMOFF, Include.IDSOFF, Include.IDFOFF, Include.IDDOFF or Include.IDROFF.

  • value (integer)

    The value to change the offset to

  • check_only (optional) (boolean)

    Sometimes it may be necessary to check if changing an offset for an include will cause an error or label clash rather than actually changing it. If check only is true then PRIMER will just check to see if the new value for the offset will cause any label clashes or negative labels and not change the offset value or any item labels. If false or omitted then the offset and labels will be updated if there are no errors.

    Returns

    logical, true if change successful. false if the change would cause a clash of labels or negative labels, in which case the value is not changed.

    Return type

    Boolean

    Example

    To set idpoff for include i to 1000, checking that the change is successful:

    var success = i.SetTransformOffset(Include.IDPOFF, 1000);


    Total(Model[Model]) [static]

    Description

    Returns the total number of include files in the model.

    Arguments

  • Model (Model)

    Model to get include total from

    Returns

    integer

    Return type

    Number

    Example

    To get the number of include files in model m:

    var t = Include.Total(m);


    UnblankAll(Model[Model], redraw (optional)[boolean]) [static]

    Description

    Unblanks all of the includes in the model.

    Arguments

  • Model (Model)

    Model that all includes will be unblanked in

  • redraw (optional) (boolean)

    If model should be redrawn or not. If omitted redraw is false. If you want to do several (un)blanks and only redraw after the last one then use false for all redraws apart from the last one. Alternatively you can redraw using View.Redraw().

    Returns

    No return value

    Example

    To unblank all of the includes in model m:

    Include.UnblankAll(m);


    UnblankFlagged(Model[Model], flag[Flag], redraw (optional)[boolean]) [static]

    Description

    Unblanks all of the flagged include files in the model.

    Arguments

  • Model (Model)

    Model that all the flagged includes will be unblanked in

  • flag (Flag)

    Flag set on the includes that you want to unblank

  • redraw (optional) (boolean)

    If model should be redrawn or not. If omitted redraw is false. If you want to do several (un)blanks and only redraw after the last one then use false for all redraws apart from the last one. Alternatively you can redraw using View.Redraw().

    Returns

    No return value

    Example

    To unblank all of the include files in model m flagged with f:

    Include.UnblankFlagged(m, f);


    UnflagAll(Model[Model], flag[Flag]) [static]

    Description

    Unsets a defined flag on all of the includes in the model.

    Arguments

  • Model (Model)

    Model that the defined flag for all includes will be unset in

  • flag (Flag)

    Flag to unset on the includes

    Returns

    No return value

    Example

    To unset the flag f on all of the includes in model m:

    Include.UnflagAll(m, f);


    Warning(message[string], details (optional)[string])

    Description

    Adds a warning for an include file. For more details on checking see the Check class. Note that this function is not supported for the master include file.

    Arguments

  • message (string)

    The warning message to give

  • details (optional) (string)

    An optional detailed warning message

    Returns

    No return value

    Example

    To add a warning message "My custom warning" for include i:

    i.Warning("My custom warning");


    Write(filename[string], options (optional)[object])

    Description

    Writes an include file. Note that this function is not supported for the master include file.

    Arguments

  • filename (string)

    Filename of the Ansys LS-DYNA keyword file you want to write

  • options (optional) (object)

    Options specifying how the file should be written out. If omitted the default values below will be used. The properties available are:

    Object has the following properties:

    Name Type Description
    binary (optional) boolean If true then the output file will be written out in binary. If false (default) then an ascii file will be written.
    compress (optional) boolean If true then the output file will be compressed. If false (default) then an uncompressed file will be written.
    compressLevel (optional) integer Compression level for .gz and .zip files. Must be in the range 1 to 9 with 1 being the least compression (fastest speed) to 9 being the greatest compression (slowest speed)
    compressMode (optional) integer This option can be used to specify the mode of compression. Can be Include.KEEP_ORIGINAL or Include.INDIVIDUAL_GZIP or Include.INDIVIDUAL_ZIP
    fileStartAscii (optional) boolean If true then the begining of the file (*CONTROL etc) file is written out in ascii. If false (default) then the entire file is converted to binary.
    i10 (optional) boolean If true then i10 format will be used to write the file. If false (default) then the normal Ansys LS-DYNA format will be used.
    large (optional) boolean If true then large format will be used to write the file. If false (default) then the normal Ansys LS-DYNA format will be used. Note that large format is only available from version R7.1 and above.
    path (optional) integer The method used to write include paths. Can be Include.ABSOLUTE (default) or Include.RELATIVE
    separator (optional) integer The directory separator used when writing include files. Can be Include.NATIVE (default), Include.UNIX or Include.WINDOWS
    version (optional) string The Ansys LS-DYNA version used to write the file. Can be "971R5", "971R4", "971R3", "970v6763" etc (see the version popup in Model->Write '>>> Ansys LS-DYNA output options' for a full list). See also Options.dyna_version

    Returns

    No return value

    Example

    To Write include i to file /data/test/file.key as a compressed gzip in version R10.0

     var output_obj = new Object();
     output_obj.version = "R10.0";
     output_obj.compress = true;
     output_obj.compressMode = Include.INDIVIDUAL_GZIP;
     i.Write("/data/test/file.key", output_obj);


    Write(filename[string], path (optional)[constant], separator (optional)[constant], version (optional)[string], large (optional)[boolean])   [deprecated]

    This function is deprecated in version 15.0. It is only provided to keep old scripts working. We strongly advise against using it in new scripts. Support may be removed in future versions.

    Description

    Writes an include file. Note that this function is not supported for the master include file.

    Arguments

  • filename (string)

    Filename of the Ansys LS-DYNA keyword file you want to write

  • path (optional) (constant)

    The method used to write include paths. Can be Include.ABSOLUTE (default) or Include.RELATIVE

  • separator (optional) (constant)

    The directory separator used when writing include files. Can be Include.NATIVE (default), Include.UNIX or Include.WINDOWS

  • version (optional) (string)

    The Ansys LS-DYNA version used to write the file. Can be "971R5", "971R4", "971R3", "970v6763" etc. (see the version popup in Model->Write '>>> Ansys LS-DYNA output options' for a full list). See also Options.dyna_version

  • large (optional) (boolean)

    If true then large format will be used to write the file. If false (default) then the normal Ansys LS-DYNA format will be used. Note that large format is only available from version R7.1 and above.

    Returns

    No return value

    Example

    To write include file i to file /data/test/file.key

    i.Write("/data/test/file.key");


    toString()

    Description

    Creates a string containing the include data in keyword format. Note that this contains the keyword header and the keyword cards. See also Include.Keyword() and Include.KeywordCards(). Also note that this function is not supported for the master include file.

    Arguments

    No arguments

    Returns

    string

    Return type

    String

    Example

    To get data for include i in keyword format

    var s = i.toString();