Clear Filters
Clear Filters

How do I get the RTW filename of a block I am building from a script?

1 view (last 30 days)
I have a block, buried in a model, and I am trying to get the primary .cpp file name out of it (using a script). We are using encapsulated cpp, and there are a handful of files, but I am wishing to get the basic, top-level file name (perhaps the .h file would be more appropriate, since that is where the class definition is).
I am currently able to get the interface spec using: lcInterfaceSpec.getClassName;
How about the path where this file gets generated?

Answers (0)

Categories

Find more on Modeling in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!