Creation of .genconf file

Hello,

I*m a total beginner, so I’m pretty sure I’m doing something wrong, although I can’t find what.
I’m trying to generate documentation for my project and I started creating a template. I’m sure I follow exactly what is written in the Reference document, but at the end, when with the M2Doc interpreter I open the .gendoc file I just created, the error is always the same: “ERROR: null or empty string. (0, 0)”.
Any suggestion?

Thanks!

Hello,

Not sure a 100% but this message could be caused by an empty expression in your template. It would look like this ({…} is a Word field):

{m:}

You should add an expression for instance:

{m:myVariable}

Then you will be able to set the type of the variable in your template and then create a generation configuration. Note that you also can use the new template wizard to create your template or start from one of the sample templates.

Let me know if you need more help.

Thanks!
Apparently no empty fields in the generated template. I tried the new template wizard option too, then after creation of the template I used “Initialize documentation configuration” to get the .genconf file, but again as soon as Iselect the newly generated file I get the same message.
I’m pretty sure it’s something very basic but I don’t know what.
Thanks again

do you have a stacktrace in the error log view ? Menu Window/show view/error log.

Error.log (252.0 KB)
Yes, although I don’t think it helps much

I think there is an issue with the genconf file it tries to load ‘:SystemEngineering’ where it should be ‘SystemEngineering’. But I’m not sure this is related with the previous error message.

If you import the sample IFE project with the M2Doc template can you run the generation using existing genconf files ?

Yes I do, it works, I just generated the two documents

I’m not sure what is going on, so you can copy one of the sample templates and setup a genconf with it for your project. Then check if it’s generating and change the content of the template. The template has a variable self of type SystemEngineering. For writing your templates see the documentation. I would suggest you use the M2Doc interpreter view to write your AQL expresisons.

Ok, I’ll try and let you know. Thank you very much for your kind assistance.

1 Like

It worked! Thanks again for your time. Now I’ll start playing with the interpreter.

1 Like