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

1 次查看(过去 30 天)
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?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by