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

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:01:11Z  

    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

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

    ‏2014-03-20T15:00:50Z  

    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

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

    ‏2014-03-20T15:01:11Z  

    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

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

    ‏2014-03-20T15:11:49Z  
    • adevicq
    • ‏2014-03-20T15:00:50Z

    Pierre,

    The attribute modification is done by:

    <pre class="javascript dw" data-editor-lang="js" data-pbcklang="javascript" dir="ltr">AttrDef ad = find(m, "azerty") bool bDXL = ad.dxl if (bDXL) modify(ad, setDXL, "my new dxl code") </pre>

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

    I can give you something to do so...

    Alain

    Hi again,

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

    Regards,

    Alain

    Attachments

  • adevicq
    adevicq
    154 Posts

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

    ‏2014-03-20T15:13:50Z  
    • adevicq
    • ‏2014-03-20T15:00:50Z

    Pierre,

    The attribute modification is done by:

    <pre class="javascript dw" data-editor-lang="js" data-pbcklang="javascript" dir="ltr">AttrDef ad = find(m, "azerty") bool bDXL = ad.dxl if (bDXL) modify(ad, setDXL, "my new dxl code") </pre>

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

    I can give you something to do so...

    Alain

    Hi again,

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

    Regards,

    Alain

    Attachments

  • PDU
    PDU
    139 Posts

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

    ‏2014-03-21T05:52:34Z  
    • adevicq
    • ‏2014-03-20T15:01:11Z

    Pierre,

    The attribute modification is done by:

    <pre class="javascript dw" data-editor-lang="js" data-pbcklang="javascript" dir="ltr">AttrDef ad = find(m, "azerty") bool bDXL = ad.dxl if (bDXL) modify(ad, setDXL, "my new dxl code"") </pre>

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

    I can give you something to do so...

    Alain

    Thanks

    Pierre