
Labnaf Language Transformer
c 2019-2023 Labnaf - All rights reserved

Labnaf Language Transformer Professional Edition - Version 6.0.602 (Build: 0602)
c 2019-2023 Labnaf - All rights reserved
License period start date: 02 January 2023
Licensed Users: 1
Licensee: My Company

Usage : "C:\Program Files\Labnaf\LanguageTransformer\lnxf.exe" [-]Command_or_LabnafScriptFile [arguments]

Available Commands: (Prefix the command name with '-' to run in non verbose mode)

   ChangeElementType

   ChangeConnectorType

   ChangeDiagramType

   ChangeDiagramTypesDefinedInCsv

   TvRename

   TvDelete

   ? => Show details for all commands


You can execute multiple commands from a Labnaf script file (.lnsc) as detailed below.

LABNAF SCRIPT FILE USAGE : lnxf {labnaf_script.lnsc} {RepoPathName} [SecondsBeforeRestart] [MaxMinutesRestartAfterFirstRun]

DESCRIPTION: This executes commands from a '{LabnafScriptFileName}.lnsc' file within a single Sparx EA session.
All commands refer to the same repository {RepoPathName} specified in the Windows command line,
so there's no need to include a repository argument inside the Labnaf script file itself.
If specified, the script will run iteratively:
- Resumes after {SecondsBeforeRestart}
- Concludes after {MaxMinutesRestartAfterFirstRun}
If only {SecondsBeforeRestart} is provided, the script continues until halted by the admin via the ESC key in the console window.


Command: ChangeElementType

Description: Change element types and stereotypes in a model repository.
Usage : "C:\Program Files\Labnaf\LanguageTransformer\lnxf.exe" ChangeElementType [arguments]

Arguments:
   SourceRepoPathName: Path name of the source model repository where the elements must be changed. ** NOT NEEDED IN A LABNAF SCRIPT FILE (.lnsc) **
   FromType: The element type to be changed OR '*' if the type is not a selection criteria.
   FromStereotype: The element stereotype to be changed OR '-' for changing elements without a stereotype.
   ToType: The new element type to be set for each element OR 'DerivedType' to derive the type from the following stereotype
   ToStereotype: The new element stereotype to be set for each element OR '-' for removing the stereotype (if any).
   [ToTagName]: The name of the tag to be added to each element.
   [ToTagValue]: The tag value for that named tag.


Command: ChangeConnectorType

Description: Change connector types and stereotypes in a model repository following criteria.
Element and connector types can be replaced by the constant 'DerivedType' to indicate that they need to be automatically derived from the stereotype that follows.
Usage : "C:\Program Files\Labnaf\LanguageTransformer\lnxf.exe" ChangeConnectorType [arguments]

Arguments:
   /all|/selective: Change all connectors of a certain type and stereotype or only a selected subset based on source and destination types and stereotypes.
   /samedirection|/reversedirection: Keep or reverse the connector direction. If the connector direction is reversed, please perform a repository integrity check to finalise updates.
   SourceRepoPathName: Path name of the source model repository where the connectors must be changed.
   FromType: The connector type to be changed OR '*' if the type is not a selection criteria.
   FromStereotype: The connector stereotype to be changed OR '-' for changing connectors without a stereotype.
   ToType: The new connector type to be set for each selected connector.
   ToStereotype: The new connector stereotype to be set for each selected connector.
   [SrcElmType]: Change the connector type only when the connector's source element is of this type.
   [SrcElmStereotype]: Change the connector type only when the connector's source element is of this stereotype.
   [DestElmType]: Change the connector type only when the connector's destination element is of this type.
   [DestElmStereotype]: Change the connector type only when the connector's destination element is of this stereotype.


Command: ChangeDiagramType

Description: Change diagram types in a model repository.
Usage : "C:\Program Files\Labnaf\LanguageTransformer\lnxf.exe" ChangeDiagramType [arguments]

Arguments:
   SourceRepoPathName: Path name of the source model repository where the diagrams must be changed. ** NOT NEEDED IN A LABNAF SCRIPT FILE (.lnsc) **
   FromType: The diagram type to be selected OR '*' if the type is not a selection criteria.
   FromStereotype: The diagram stereotype to be selected.
   ToType: The new diagram type to be set for each selected diagram.
   ToStereotype: The new diagram stereotype to be set for each selected diagram.


Command: ChangeDiagramTypesDefinedInCsv

Description: Change diagram types in a model repository based on a CSV configuration file.
Wild cards '*' and '-' used in command ChangeDiagramType are applicable.
Usage : "C:\Program Files\Labnaf\LanguageTransformer\lnxf.exe" ChangeDiagramTypesDefinedInCsv [arguments]

Arguments:
   SourceRepoPathName: Path name of the source model repository where the diagrams must be changed. ** NOT NEEDED IN A LABNAF SCRIPT FILE (.lnsc) **
   CsvConfigPathName: Path name of the CSV configuration file.
     The first row in the CSV file is fixed and contains the field headers:
     FromType,FromStereotype,ToType,ToStereotype
   [CsvFieldDelimiter]: The field delimiter in the CSV configuration file (default is ',')


Command: TvRename

Description: Rename tag.

Usage : "C:\Program Files\Labnaf\LanguageTransformer\lnxf.exe" TvRename [arguments]

Arguments:
   RepoPathName: Model repository path name. ** NOT NEEDED IN A LABNAF SCRIPT FILE (.lnsc) **
   FromTagName: Name of the tag to be renamed.
   ToTagName: New tag name.
   [ElementType or ElementStereotype]: Restrict the scope to this element type or stereotype.
   [ElementStereotype]: Restrict the scope to this element stereotype.


Command: TvDelete

Description: Delete tag.

Usage : "C:\Program Files\Labnaf\LanguageTransformer\lnxf.exe" TvDelete [arguments]

Arguments:
   RepoPathName: Model repository path name. ** NOT NEEDED IN A LABNAF SCRIPT FILE (.lnsc) **
   TagName: Name of the tag to be deleted.
   [ElementType or ElementStereotype]: Restrict the scope to this element type or stereotype.
   [ElementStereotype]: Restrict the scope to this element stereotype.

