import error
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:/emoticons/default_tongue.png' alt=':P' srcset='/emoticons/tongue@2x.png 2x' width='20' height='20'>_FileLoad' line 60)
invoked from within
'::HM_Framework:/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.
Answers
-
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 0Be careful of the import reader path '#nastran\\nastran' !!!
0 -
Q.NGUYEN-DAI ,thank you for your hint.
Now is working /emoticons/default_smile.png' alt=':)' srcset='/emoticons/smile@2x.png 2x' width='20' height='20'>.
0