######## WORK NOTES COPIED FROM INCIDENT 411105 ########
QUESTION:
Is it possible to have more than 32 characters in a parameter? Any workarounds? The customer wanted to put the directory path in the parameter, for example.
PDIR='P:AutomotivedynamicsPROJP059413486_LV_3567_BerakningsresursGrenror_andbitANSYS_Inputgrenror_end_v11_gror_base'
/INPUT,'grenror_v5a','cdb',PDIR
ANSWER:
I recommend the use of a string array as follows (I picked 128 as just a relatively large number):
*DIM,PDIR,string,128,2
PDIR(1)='P:AutomotivedynamicsPROJP059413486_LV_3567_BerakningsresursGrenror_andbitANSYS_Inputgrenror_end_v11_gror_base'
PDIR(2)=join(PDIR(1),'grenror_v5a')
/INPUT,PDIR(2),'cdb'
Note that the dir field is no longer documented and users should put the path and filename into the Fname field.
######## WORK NOTES COPIED FROM INCIDENT 411105 ######## QUESTION: Is it possible to have more than 32 characters in a parameter? Any workarounds? The customer wanted to put the directory path in the parameter, for example. PDIR='P:AutomotivedynamicsPROJP059413486_LV_3567_BerakningsresursGrenror_andbitANSYS_Inputgrenror_end_v11_gror_base' /INPUT,'grenror_v5a','cdb',PDIR ANSWER: I recommend the use of a string array as follows (I picked 128 as just a relatively large number): *DIM,PDIR,string,128,2 PDIR(1)='P:AutomotivedynamicsPROJP059413486_LV_3567_BerakningsresursGrenror_andbitANSYS_Inputgrenror_end_v11_gror_base' PDIR(2)=join(PDIR(1),'grenror_v5a') /INPUT,PDIR(2),'cdb' Note that the dir field is no longer documented and users should put the path and filename into the Fname field. |
||
|