Hello,
For the past week or two I have been learning how to program SolidWorks Add-Ins by searching forums and using the SolidWorks API Help. It has been frustrating at times, but I have found a way to make everything work up until now. I am creating an add-in with some tools that specifically help the designers where I work. Here is my question:
If I have a multibody sheetmetal part open and want to export a flat-pattern DXF of one of the parts, I can simply bring up the "DXF / DWG Output" dialog, select "Sheet metal" if it isn't selected already, and there is a nice "Bodies To Export" selection box where I can choose a single flat pattern to export.
Do I have access to this from an add-in? I almost have a workaround figured out, but being able to grab a flat-pattern and export a DXF would be ideal.
Here is a quick unrelated question:
Is there a way to have sketch color carry over when exporting to DXF? If not, is there a way to programmatically alter these? (sketches in yellow or bend lines in green for example)
Thanks,
-Anthony
SolidworksApi macros