Lawrence
Guest
Good morning, everyone.
on crèo paramentric 4.0 I need to change the code that appears on the table, going to read the file name, but deleting a part within the text.
example:
filename ------> pippo_topolino_001.prt
separate code --> pippo_001
in the past, who set me the software set me the start part so as to remove the last part of the text (from pippo_topolino_001.prt to pip), using the following strings in the relationships
code = rel_model_name
if search(rel_model_name, "_")!= 0
code=extract(rel_model_name,1,(search(rel_model_name,"_"))-1)
Does anyone know how to change that string to only delete the middle part of the file name?
thanks in advance
on crèo paramentric 4.0 I need to change the code that appears on the table, going to read the file name, but deleting a part within the text.
example:
filename ------> pippo_topolino_001.prt
separate code --> pippo_001
in the past, who set me the software set me the start part so as to remove the last part of the text (from pippo_topolino_001.prt to pip), using the following strings in the relationships
code = rel_model_name
if search(rel_model_name, "_")!= 0
code=extract(rel_model_name,1,(search(rel_model_name,"_"))-1)
Does anyone know how to change that string to only delete the middle part of the file name?
thanks in advance
