ASSIGN statement for long filepaths
ASSIGN statement for long filepaths
(OP)
I'm having a bit of trouble with an ASSIGN statement in a NASTRAN data file. I need to assign a file that has a quite long filepath. At first I tried simply putting the statement on a single line like so:
However this statement results in a fatal error because apparently it exceeds a line length limit:
I know that in INCLUDE statements you can simply split the filepath over two lines with a line break. I've tried the same here in the ASSIGN statement, but without success.
So right now I'm stuck and I would be really grateful for any help. Does anyone here know of a solution?
CODE --> .dat
ASSIGN INPUTT4='subfolder_with_a_long_name/subfolder_with_a_long_name/subfolder_with_a_long_name/file.op4'
However this statement results in a fatal error because apparently it exceeds a line length limit:
CODE --> .f06
ASSIGN INPUTT4='/subfolder_with_a_long_name/subfolder_with_a_long_name/sUBFOLDER
0*** USER FATAL MESSAGE 723 (XTRACI)
THE ABOVE FILE NAME CONTAINS AN UNBALANCED NUMBER OF DELIMITERS. I know that in INCLUDE statements you can simply split the filepath over two lines with a line break. I've tried the same here in the ASSIGN statement, but without success.
So right now I'm stuck and I would be really grateful for any help. Does anyone here know of a solution?





RE: ASSIGN statement for long filepaths
I don't know about NASTRAN specifically, but I've had other programs choke on files with spaces in the path. The solution was to add double quotes around the entire file name.
CODE
RE: ASSIGN statement for long filepaths
RE: ASSIGN statement for long filepaths
CODE --> .dat
Now my NASTRAN file runs as it should.