Topic
5 replies Latest Post - ‏2014-03-21T05:52:34Z by PDU
PDU
PDU
139 Posts
ACCEPTED ANSWER

Pinned topic is it possible possible modifie all DXL attributes of a project by a script ?

‏2014-03-20T12:25:32Z |

Hi,

is it possible possible modifie all DXL attributes of a project by a script ?

For example replace  string by another in all DXL attributes.

 

Pierre

  • adevicq
    adevicq
    154 Posts
    ACCEPTED ANSWER

    Re: is it possible possible modifie all DXL attributes of a project by a script ?

    ‏2014-03-20T15:00:50Z  in response to PDU

    Pierre,

    The attribute modification is done by:

    AttrDef ad = find(m, "azerty")
    bool bDXL = ad.dxl
    if (bDXL)
        modify(ad, setDXL, "my new dxl code")
    

    The you have to loop through all th modules in your project.

    I can give you something to do so...

    Alain

    • adevicq
      adevicq
      154 Posts
      ACCEPTED ANSWER

      Re: is it possible possible modifie all DXL attributes of a project by a script ?

      ‏2014-03-20T15:11:49Z  in response to adevicq

      Hi again,

      Check the attached file to process all modules in a folder/project.

      Regards,

      Alain

      Attachments

    • adevicq
      adevicq
      154 Posts
      ACCEPTED ANSWER

      Re: is it possible possible modifie all DXL attributes of a project by a script ?

      ‏2014-03-20T15:13:50Z  in response to adevicq

      Hi again,

      Check the attached file to process all modules in a folder/project.

      Regards,

      Alain

      Attachments

  • adevicq
    adevicq
    154 Posts
    ACCEPTED ANSWER

    Re: is it possible possible modifie all DXL attributes of a project by a script ?

    ‏2014-03-20T15:01:11Z  in response to PDU

    Pierre,

    The attribute modification is done by:

    AttrDef ad = find(m, "azerty")
    bool bDXL = ad.dxl
    if (bDXL)
        modify(ad, setDXL, "my new dxl code"")
    

    The you have to loop through all th modules in your project.

    I can give you something to do so...

    Alain

    • PDU
      PDU
      139 Posts
      ACCEPTED ANSWER

      Re: is it possible possible modifie all DXL attributes of a project by a script ?

      ‏2014-03-21T05:52:34Z  in response to adevicq

      Thanks

      Pierre