param target diagram param save dir directori save export diagram save diagram object target file save dir target diagram diagram target util strip junk todo probabl worthwhil factor chooser directori stuff file handl come sure file file file save dir save graphic manag instanc suffix file path file parent save graphic action cmd save graphic manag instanc save action suffix save graphic manag instanc suffix cmd statu unknown graphic file type extens save graphic manag instanc suffix statu write path result save graphic file file cmd statu wrote path result file except ignor defin log lp log granular type statement lp log local nest statement log error got file except ignor endif io except ignor defin log lp log local nest statement lp log granular type statement log error got io except ignor endif 