cpp/v1_3_1/parentAndReference.tt2s could not be opened.

Questions regarding the use of UaModeler

Moderator: uamodeler

Post Reply
ChSch
Hero Member
Hero Member
Posts: 21
Joined: 07 Oct 2012, 11:18

cpp/v1_3_1/parentAndReference.tt2s could not be opened.

Post by ChSch »

Hi,

When I generate code under Linux I get the fowling error:
/opt/unifiedautomation/uamodeler/bin/templates/cpp/v1_3_1/parentAndReference.tt2s could not be opened.
Aborted.


If I do this with the Windows uaModeler, I can't see the error message during code generation.
I can't give an example, because I get this error several times and I have a bigger project. Maybe the error did not occur with the Linux Modeler V1.1 Version.

Maybe a hint:
I added under Objects->Server the method "myTestMethod" with the input argument Message:: String
Then I got the error above during the xy_nodemanagerxy.cpp generation.

And in the code stands this: (red is only generated under Windows)
parentNodeId = UaNodeId(7060, getTypeNamespace());
pParent = getNode(parentNodeId);
if(pParent)
{
dynamic_cast(pParent)->setInputArguments(UaArgument());
}


So, the final question is, what can I do against the error?
/opt/unifiedautomation/uamodeler/bin/templates/cpp/v1_3_1/parentAndReference.tt2s could not be opened.
Aborted.


Best Regards

User avatar
Support Team
Hero Member
Hero Member
Posts: 3071
Joined: 18 Mar 2011, 15:09

Re:cpp/v1_3_1/parentAndReference.tt2s could not be opened.

Post by Support Team »

Hi ChSch,

Thank you for reporting this bug. We will fix it for the version 1.2.1 of the UaModeler.

As a workaround you can copy the file parentandreference.tt2s and rename the copy to parentAndReference.tt2s.

Best Regards,
Support Team
Best regards
Unified Automation Support Team

Post Reply