Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix ticket #6300, use NF for getElementAnnotations if -d=nfAPI is on
- add Documentation record to Constants.mo - add a test for the ticket
- Loading branch information
Showing
6 changed files
with
86 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// name: Ticket6300.mos | ||
// keywords: | ||
// status: correct | ||
// | ||
// Tests if -d=nfAPI will use the NF for getElementAnnotations | ||
// | ||
|
||
setCommandLineOptions("-d=nfAPI"); getErrorString(); | ||
|
||
loadModel(Modelica); getErrorString(); | ||
getElementAnnotations(Modelica.Mechanics.MultiBody.World); getErrorString(); | ||
|
||
// Result: | ||
// true | ||
// "" | ||
// true | ||
// "" | ||
// {{Placement(true,-,-,84.0,-16.0,116.0,16.0,-,-,-,-,-,-,-,)},{},{Dialog("General","Parameters",true,false,false,-,-,-,-,"",false)},{Dialog("General","Parameters",true,false,false,-,-,-,-,"",false)},{Dialog("General","Parameters",true,false,false,-,-,-,-,"",false)},{},{},{Evaluate=true},{Dialog("General","Parameters",true,false,false,-,-,-,-,"",false)},{Evaluate=true, Dialog("General","Parameters",true,false,false,-,-,-,-,"",false)},{Dialog("General","Parameters",false,false,false,-,-,-,-,"",false)},{},{Dialog("Animation","if animateWorld = true",true,false,false,-,-,-,-,"",false)},{Dialog("Animation","if animateWorld = true",true,false,false,-,-,-,-,"",false)},{Dialog("Animation","if animateWorld = true",true,false,false,-,-,-,-,"",false)},{Dialog("Animation","if animateWorld = true",true,false,true,-,-,-,-,"",false)},{Dialog("Animation","if animateWorld = true",true,false,true,-,-,-,-,"",false)},{Dialog("Animation","if animateWorld = true",true,false,true,-,-,-,-,"",false)},{Dialog("Animation","if animateGravity = true and gravityType = UniformGravity",true,false,false,-,-,-,-,"",false)},{Dialog("Animation","if animateGravity = true and gravityType = UniformGravity",true,false,false,-,-,-,-,"",false)},{Dialog("Animation","if animateGravity = true and gravityType = UniformGravity",true,false,false,-,-,-,-,"",false)},{Dialog("Animation","if animateGravity = true and gravityType = UniformGravity",true,false,true,-,-,-,-,"",false)},{Dialog("Animation","if animateGravity = true and gravityType = PointGravity",false,false,false,-,-,-,-,"",false)},{Dialog("Animation","if animateGravity = true and gravityType = PointGravity",false,false,true,-,-,-,-,"",false)},{Dialog("Animation","if animateGround = true and gravityType = UniformGravity",false,false,false,-,-,-,-,"",false)},{Dialog("Animation","if animateGround = true and gravityType = UniformGravity",false,false,false,-,-,-,-,"",false)},{Dialog("Animation","if animateGround = true and gravityType = UniformGravity",false,false,false,-,-,-,-,"",false)},{Dialog("Animation","if animateGround = true and gravityType = UniformGravity",false,false,true,-,-,-,-,"",false)},{Dialog("Defaults","Parameters",true,false,false,-,-,-,-,"",false)},{Dialog("Defaults","Parameters",true,false,false,-,-,-,-,"",false)},{Dialog("Defaults","Parameters",true,false,false,-,-,-,-,"",false)},{Dialog("Defaults","Parameters",true,false,false,-,-,-,-,"",false)},{Dialog("Defaults","Parameters",true,false,false,-,-,-,-,"",false)},{Dialog("Defaults","Parameters",true,false,false,-,-,-,-,"",false)},{Dialog("Defaults","Parameters",true,false,false,-,-,-,-,"",false)},{Dialog("Defaults","Parameters",true,false,false,-,-,-,-,"",false)},{Dialog("Defaults","Parameters",true,false,false,-,-,-,-,"",false)},{Dialog("Defaults","Parameters",true,false,false,-,-,-,-,"",false)},{Dialog("Defaults","Parameters",true,false,false,-,-,-,-,"",false)},{Dialog("Defaults","Parameters",true,false,false,-,-,-,-,"",false)},{Dialog("Defaults","Parameters",true,false,false,-,-,-,-,"",false)},{choicesAllMatching=true, Dialog("General","Parameters",false,false,false,-,-,-,-,"",false), Documentation("<html> | ||
// <p>Replaceable function to define the gravity field. | ||
// Default is function | ||
// <a href=\"modelica://Modelica.Mechanics.MultiBody.Forces.Internal.standardGravityAcceleration\">standardGravityAcceleration</a> | ||
// that provides some simple gravity fields (no gravity, constant parallel gravity field, | ||
// point gravity field). | ||
// By redeclaring this function, any type of gravity field can be defined, see example | ||
// <a href=\"modelica://Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField\">Examples.Elementary.UserDefinedGravityField</a>. | ||
// </p> | ||
// </html>","")},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}} | ||
// "" | ||
// endResult |