import error

evsm1982
evsm1982 Altair Community Member
edited October 2020 in Community Q&A

Hello all,

 

I have tried to create a simple script that import a file from a specified folder.

 

*feinputpreserveincludefiles
*createstringarray 3  'HyperMesh ' ' ' 'ASSIGNPROP_BYHMCOMMENTS'
*feinputwithdata2 '#nastran\nastran' 'D:/work/test/test.bdf' 0 0 0 0 0 1 3 1 0

 

I found this in 'command.cmf'. After removing the parentheses and commas still got an error.

 

0
0
    while executing
'*feinputwithdata2 '#nastran\nastran' 'D:/work/test/test.bdf' 0 0 0 0 0 1 3 1 0 '
    (file 'D:/work/test/import.tcl' line 3)
    invoked from within
'source {D:/work/test/import.tcl}'
    ('uplevel' body line 1)
    invoked from within
'uplevel #0 'source {$file}''
    (procedure '::HM_Framework:image/emoticons/default_tongue.png' alt=':P' srcset='/emoticons/tongue@2x.png 2x' width='20' height='20'>_FileLoad' line 60)
    invoked from within
'::HM_Framework:image/emoticons/default_tongue.png' alt=':P' srcset='/emoticons/tongue@2x.png 2x' width='20' height='20'>_FileLoad 24'
    (menu invoke)

 

What is wrong or missing?

Thank you for your time.

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited July 2015

    Try this code:


    *feinputpreserveincludefiles
    *createstringarray 3 'HyperMesh ' ' ' 'ASSIGNPROP_BYHMCOMMENTS'
    *feinputwithdata2 '#nastran\\nastran' 'D:/work/test/test.bdf' 0 0 0 0 0 1 3 1 0

    Be careful of the import reader path '#nastran\\nastran' !!!

  • evsm1982
    evsm1982 Altair Community Member
    edited July 2015

    Q.NGUYEN-DAI ,thank you for your hint.

    Now is working image/emoticons/default_smile.png' alt=':)' srcset='/emoticons/smile@2x.png 2x' width='20' height='20'>.