Syntax Error in Template, MotionView

User: "Davide_21943"
Altair Community Member
Updated by Davide_21943

I have problems with templates in MotionView tutorials: 

Tutorials/Rigid Body Dynamics/MV-1011 and MV-1051.

MotionView reports the following error: "Syntax error in expression:...<!--Deactivate the extension motion first -->......Templex error evaluating text under Model-Template. [General]".

I just copy and paste the script for the template written in the tutorials and change the varname for the model.

{<!--Deactivate the extension motion first -->
<Deactivate
element_type = "MOTION"
element_id = "{the_model.mot_ext.idstring}"
/>}

I have changed "MODEL" to "the_model". I have tried several things but nothing seems to work. 

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Praful"
    Altair Employee
    Accepted Answer
    Updated by Praful

    Hello Davide -

    I see additional {} paranthesis (curly braces), one at the beginning and one at the end, that is giving the error. I have highlighted it in red below

    {<!--Deactivate the extension motion first -->
    <Deactivate
    element_type = "MOTION"
    element_id = "{the_model.mot_ext.idstring}"
    />}

    When adding a template you'll see a {} already put in. If you are copy-pasting, you may remove this set of curly braces. That should fix the error.

    regards

    praful