All the time I have to convert psm files to dxf manually. Its time consuming...its ST7
Do you have some customization and able to share some macro to do this automatically?
I would be highly greatfull for your support!!
Thank you very much.
Solved! Go to Solution.
as Imre mentioned, You can use my SheetLaser macro, which will do this for You and even a little bit more.
There are options within the INI file, to automatically save the flat and the file after running the macro.
Also a couple of properties are generated like cutting length, number of bends etc.
Attached is a macro for batch .PSM to .DXF export in a folder.
-Start Solid Edge and open any .PSM file in a project folder.
-Run the macro
-The macro will look in the folder for all .PSM files and export them to .DXF if a flat pattern exists. If a flat pattern does not exist, it will list the filename and exit. It will NOT look in subfolders. It gives a status in a console window.
-Exported DXF's will be located in a created subfolder called DXF.
Occasionally it will crash and not notify the user when it comes across a .psm without a flat pattern. Just kill Edge.exe, (as the macro hides the SE window when started,) look through the files and add in the missing flat pattern, and try again.
NOTE: The forum doesn't let you post .exe files, so I had to change the extension to .txt. Change it back to use it.
That is my solution. It is almost perfect. Should creates flat pattern also Possible?
You are DA MAN Mr Dylan! Thank you very much Sir.
Glad to hear it helped
I used to have it automatically pick a face and axis for flatten, but there were too many bad scenarios that could result. This is a trimmed down version of the code that I use for my own company. It would REALLY help if sometime soon, the developers allowed a coordinate axis to be chosen for the flat pattern X axis.........
By the method...
" -The macro will look in the folder for all .PSM files "
There's a way to make the macro search for the psm files inside a cfg or asm file , instead of whole system folder ?
Or, after opening multiple psm files manually, the macro only exports the flat of these opened ones (considering all opened windows, not only the active one)?