Reading the project name from code

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Reading the project name from code

1,155件の閲覧回数
k_g
Contributor II

Hello,

I want to know how can I read the name of the project from the code.

For example, if I have a project with name "MyProject", I want to read the name and store this string in a variable.

Thanks in advance.

0 件の賞賛
返信
2 返答(返信)

1,106件の閲覧回数
k_g
Contributor II

Thanks Lukas!
I tried this but got some errors. 
After searching for a while, I found this:
https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073809

Thanks again for your help!

0 件の賞賛
返信

1,129件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

you can use following:

lukaszadrapa_0-1643796898372.png

And then in the code something like:

lukaszadrapa_1-1643796947127.png

Hope this helps.

Regards,

Lukas