is it possible to make a shortcut or macro to get this menue.
is it possible to make a shortcut or macro to get this menue.
because if I use a normal dxf macro, the macro turns my flat pattern and move the 0,0 point.
The production has to turn it always and move the 0,0 point.
Which macro you're using? Can you upload that to check. I remember that when using ExporttoDWG option, the view is rotated by 90°. To fix that in the macro the alignment needs to be corrected in the macro.
Try this one. Hopefully you're using SW2014 else you need to fix the reference libraries in the macro.
Sorry for that. Forgot to mention that you also need to change swPart.ExportToDWG2 to swPart.ExportToDWG
This is how your line should look like:
swPart.ExportToDWG FilePath & value & "Abwicklung - " & swModel.GetTitle & ".DXF", sModelName, 1, True, varAlignment, False, False, options, Null
Here is the explanation in case you want to change:
SheetMetalOptions
Bitmask that contains sheet metal export options; valid only if Action = 1:
The bitmask is {7 6 5 4 3 2 1}, where each bit is either 0 or 1 as follows:
Bit #1: 1 to export geometry; 0 to not
Bit #2: 1 to include hidden edges; 0 to not
Bit #3: 1 to export bend lines; 0 to not
Bit #4: 1 to include sketches; 0 to not
Bit #5: 1 to merge coplanar faces; 0 to not
Bit #6: 1 to export library features; 0 to not
Bit #7: 1 to export forming tools; 0 to not
Example
If you want to export flat pattern geometry, bend lines, and sketches, then Bits 1, 3, and 4 are 1, the bitmask is 0001101, and you need to set SheetMetalOptions = 2^0 + 2^2 + 2^3 = 1 + 4 + 8 = 13.
Hello Deepak Gupta,
great and thank you very much ..............................