Syntax Templates - MapleSim Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Syntax Templates

Syntax templates are available in the Modelica Code Editor for automatic completion of certain common programming tasks, such as if statements. The following table outlines the available templates for Modelica syntax and how to invoke them. Note that for the entries in the To Insert..., the pipe character (|) represents the position of the cursor after the template has been inserted.

 

To insert...

Type this...

block  |

 

protected

             

equation

                 

end ___;

"block" followed by Ctrl + Shift + Space

model  |

        

protected

  

equation

                        

end ___;

"model" followed by Ctrl + Shift + Space

function  |

        

protected

   

algorithm

   

end ___;

"function" followed by Ctrl + Shift + Space

connector  |

     

end ___;

"connector" followed by Ctrl + Shift + Space

record  |  

 

end ___;

"record" followed by Ctrl + Shift + Space

for  |  loop

 

end for;

"for" followed by Ctrl + Shift + Space

if  |  then

 

end if;

"if" followed by Ctrl + Shift + Space

if  |  then

 

else

 

end if;

"ife" followed by Ctrl + Shift + Space

if  |  then

 

elseif ___ then

           

else

 

end if;

"ifei" followed by Ctrl + Shift + Space

when  |  then

  

end  when;

"when" followed by Ctrl + Shift + Space

when  |  then

 

elsewhen ___  then

   

end when;

"whene" followed by Ctrl + Shift + Space

while  |  loop..

 

end while;

"while" followed by Ctrl + Shift + Space

loop

      |

end loop;

"loop" followed by Ctrl + Shift + Space

 

See Also

The Modelica Code Editor