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
  • Index
  • » Users
  • » jerry88
  • » Profile

Posts

Posts

Hi,
I would want to know how to count the number of blocks in a model.

Actually, for just one model, I can count it manually.
However, for counting blocks in many models, it is hard job for doing it manually.
I use several examples included with Modelica Standard library.
In the examples, many of blocks may have sub blocks, so I tried to flatten the model, but even in flattened model, counting blocks is still hard job.

Is there any function to obtain the value ?

Please let me know.

Thank you.

Best regards.
Jerry88

  • Index
  • » Users
  • » jerry88
  • » Profile
You are here: