Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

keyword "within"

keyword "within"

Do you have a clear explane to explain how to use the "within" keyword? in the guides it's not clear, do you have a pratical example please?

Re: keyword "within"

I use the "within"-statement to define the position of a new model within the model library.
I do not use the function "save in one file" when creating new packages. Instead of this Option, every package is a new file (which prevents data loss). After I created a new model, I first add the within-statement, e.g.
package - Test
model - Test01: first line in code: within Test;
model - Test01a: first line in code: within Test.Test01;
....

There are 0 guests and 0 other users also viewing this topic
You are here: