This macro now works in part as well (no need to wrap part into assembly to run the macro). Macro now also supports placeholders for the custom property from the part itself and the main assembly in addition to cut list custom properties. There is also a breaking change, placeholder now is defined as
Is it possible to include the part number, material and thickness inside the DXF? Also, we would like to be able to have short bend lines about 30mm from the edges and in a certain colour and font. We do not want it all the way across the part. Is this doable?
Hello, is it possible, instead of displaying the entire bend lines, to place a short (for example about 15mm) bend lines at the beginning and at the end so that the laser can engrave it for use with the press brake. And can these short lines be yellow so the laser software recognizes this lines for engraving.
I would want the same thing. Having bend lines etches all the way across the parts is not ideal and in thin materials can cause cracking when pressed. Artem, can you please reply to this comment as I think this will be useful for a lot of people?
Very useful, but some dxf files it leaves me rotated at 45 degrees, but only some, do you know why this happens? And other thing, at minute 0:56 you use a submenu, how do you get it? Thank you and I'm already subscribed, I almost forgot, how can I do that if it asks me in each file if it wants to save, that it ignores it and closes itself?
Thank you. The rotation issue was reported several times by different users. It looks like a bug in SW API itself (there is no specific steps taken in the macro to rotate the view). You can try to change the fixed face of sheet metal, but I will be looking into this issue. I will be rewriting this macro and integration into the CAD+ toolset SOLIDWORKS add-in. I am not sure I understand your question about submenu, do you mean subfolder? I am also not sure the reason of confirmation message for closing (I do not have one from my side). Could you please try to open this assembly as read-only before running the macro, does it fix the issue?
@@Xarial Thanks a lot for your anwers, let me tell you something, First, I have already verified that the rotated dxf are pieces that are not parallel to some main axis, X, Y or Z, that is why they come out rotated, second, the menu I am referring to is the one that comes out at minute 0:56 where you are changing the code and before finishing the command: "SheetMetalOptions_e." A small box opens where it says: "ExportBendLines", "ExportBoundingBox", "ExportFlatPatternGeometry", "ExportFormingTools", "ExportLibraryFeatures", "IncludeHiddenEdges", "IncludeSketches" and more options that are not seen, then you selected: "ExportBoundingBox" and the command you were writing was completed, to that "menu" I mean, Third, I already did the test by opening the assembly as read-only, but unfortunately it keeps asking me if I want to save the changes when the DXF of each piece ends, I think this is what affects me the most because 2 days ago I had to create almost 400 dxf and I had to be telling it not to save in all the files, even so it helped me a lot, Thanks Again, Finally if you integrate it as a add-in, it would be great!
Артем приветствую. Реально ли сделать второй макрос. 1й как он есть, а 2й делает все тоже самое, но все детали переворачивает (как бы делает зеркальными). Что думаете по этому поводу? Реально ли реализовать?
Добрый день, Артем. Отличный макрос. Но начал осваиввть проектирование сверху вниз и обнаружил, что в этом случае не выдает корректное имя детали. Так как деталь построена в сборке. Думал добавить в имя сохраняемой развертки конфигурацию сборки (тем самым сымитировать конфигурацию детали). Но пока не вышло. Как порекомендуете лучше решить этот вопрос?
Hi. This macro is great , is is possible to export all flat patterns in a single file & rather than DXF can we get output file in solid works ( .slddrw )
This macro works with flat pattern (2D views), STEPS are 3D views. Do you want to simply export components to STEP files? If so, take a look at this macro: www.codestack.net/solidworks-api/import-export/export-multi-formats/ and it can be automated to work with all files of the assembly with Batch+: cadplus.xarial.com/batch/assembly/
Can this be used for an assembly that has plywood parts in it? I would normally go into each part and save as a solidworks drawing, front view only. Then I'll save each as dxf. lots of steps.
Thank you very much for this macro. I was wondering if it is possible to include the part number, material and thickness on the DXF? If yes, what would be the code for that and where will that be placed on the coding?
I assume those values are in the custom properties. If so, you can pull these (either from cut-list or from the file custom properties). You will need to set the value of OUT_NAME_TEMPLATE. To pull the custom property from cut list, you need to use the $CLPRP placeholder, e.g. to read the material. If the property is file specific, then it needs to be set as
@@Xarial thank you for your reply. But if i do the OUT_NAME_TEMPLATE plus , this will be on the file name. But I want the material and thickness inside the dxf if that is possible.
What version of SOLIDWORKS do you use? Some old SOLIDWORKS files do not have cut-lists in the same way as newer versions and might not be compatible. If you can share your assembly via info@xarial.com I will be able to look into this issue.
Hello, thank you very much for the macro. I have a question. Is it possible to export dxf of multi body sheet metal parts? (Bodies to Export all of them) if its possible can you please help me?
@@Xarial Hi. Firstly thank you for this macro but ı have a problem . For example I draw a part1.sldprt and its contains multi body sheet metal for example has Sheet Metal 1 , Sheet Metal 2 .... etc. When ı run macro notice ıf sheet 1 and sheet 2 has same thickness it makes rewrite dxf file and file number makes less than ı need so ı try add properties PARTNumber but ı cant do this . I hope you can understand me. Can you help me in this stuation?
Iš IT possible to save assembly pats with this macro and see count in filė name. Dxf. For example got 6 same parts in assembly so Dxf would be named like partname - 6pcs.dxf
This macro does not support this, but this tool does: ruclips.net/video/1Du-TkBjF-E/видео.html. It can be automated via API: github.com/xarial/cad-plus/tree/dev/com-api/flat-pattern-export/export-all-configurations
Hello, this macro is working great so far, the only problem that keeps me from fully automating my work is the following: I run the macro, A dxf is created, then comes the problem: SolidWorks prompts 'Save Modified Documents'. I now have to click Save after every DXF that is created. Is there an easy way to fix this?
Check this tool: ruclips.net/video/1Du-TkBjF-E/видео.html. This macro will be recreated as a CAD+ module with more features, including the automatic killing of popups.
Hi guys! I use English and Russian templates SolidWorks in my work. Can anyone suggest how to rewrite the code to pull up the flat from both file types?
macro worked fine on moderate assembly .. but for large assemblies, solidwork is frozen, how do i turn off finished parts ... from 44 parts, macro don't worrk anymore.
Most likely this is just hardware limitation and it is just slow - exporting DXF is pretty heavy operation. If you leave it for longer - most likely it will finish (or crash if you run the limits of your hardware). If you can send me the assembly - I can have a closer look.
@@yeucokhi1007 Great, thank you. I can confirm that I have received the assembly. You can track the progress of this bug here: github.com/xarial/codestack/issues/11
@@yeucokhi1007 Issue has been fixed now. New macro is reuploaded. Another option to continue exporting after restart was added. Please read comment to github.com/xarial/codestack/issues/11 ticket for more information
Thank you very much for this macro. Very Great work. But I have a problem. when I run macro some parts work well and but then throw out error " Not cut-list items found". Help pleas
Xarial, this macro is amazing! Would it be possible to do a similar macro: Instead of dxf exports, the flat pattern of each part is exported to a SW drawing and the bend lines are automatically dimensioned?
and also automatically contact my Sheetmetal provider and lazercutting and bending machinist and automatically deliver it to my client would be a cool bonus ;)
This module of CAD+ can save flat pattern to any format (including .slddrw): ruclips.net/video/1Du-TkBjF-E/видео.html. It does not currently have an option for bend line dimensions, but it can be added. Please contact us at info@xarial.com for more information.
This is amazing, is it possible to save in one click in the same folder, DXFs same as you did here but in addition of their drawings in format PDF (from parts drawing file.SLDDRW), with custom name that include the revision number at the end? for example the part number is (1234567.sldprt) and I want to save it as (1234567 R1.DXF) and (1234567 R1.PDF)?
Thank you very much this has been very helpful, I just have few questions. I would like to have the bend lines as "dotted lines" and differentiate bend up and bend down lines by different color. How can I implement this through macro? Thanks in advance.
When do you have the bend lines etched on the parts, how do you actually use them to bend the parts as you obviously can't have coloured lines etches on steel parts.
Thank you. I am afraid it is not possible at the moment (you can only do relative to the root assembly). But I have created an enhancement request for that: github.com/xarial/codestack/issues/34
This looks like a bug in the macro. Macro only exports unique files, but I have not considered mirrors where the geometry can be different. I will be looking for fix, but most likely the fix will come in the CAD+ version of this macro.
@@RenanRozante Sorry, my fault, just realized I did not clarify what CAD+ is. This is a product (SOLIDWORKS add-in) which we are developing. It is essentially a collection of various tools for different aspects of the SOLIDWORKS: cadplus.xarial.com/. There are free and paid modules (currently in private beta, but you can watch newest videos of this channel to see the previews of new modules for managing custom properties, BOM and non-modeled items). Add-ins are more robust and easier to maintain and develop. I believe this macro already hit the limit (I am considering macros as scripts and thus trying not to overcomplicated them) in terms of features - it is hard to support. As I have lots of requests and this is one of the most used macros I am planning to include it to CAD+ as the module. So it will have a nice Property Page UI to enter parameters, reports, progress bar and all the requests I currently have, the most notable are: add quantity of components as the placeholder, add bend lines to different layers, add etching notes, your request with mirrored parts, proper orientation (sometimes it gets 45 degs rotated due to API issue), etc. Please do not hesitate to contact me on to info@xarial.com if you any questions.
@@Xarial If anyone else had this problem: if you select to transfer information of the metallic sheet when you're mirroring, then it exports the mirrored piece too. I just didn't knew enough about metallic sheets at the time. I can't thank you enough for this macro.
What version of SOLIDWORKS do you use? Please make sure that when you place the code into the macro - your macro is empty. I believe what happens that you have appended the macro code to a new macro.
Just specify the name of the cut-list property with thickness in the OUT_NAME_EMPLATE constant, for example DXFs\.dxf, if the property name is Thickness
@@Xarial Yeah, so its called Sheet Metal Thickness Then this should be the right code? Const OUT_NAME_TEMPLATE As String = "DXFs\____.dxf" But it doesnt work
Hello, dear friend. I'll do the electric sign, and I'd need it a lot. I did it and I saw it, but I didn't see the full alert. Because it didn't complete. The files were done correctly but some files did not output and they were bug. And the problem was from the list cut. Thanks.
Hello, this is awesome.. thank you! Having a bit of trouble with the file naming system.. would be amazing if you could help. I am after - FileName_Material Thickness_Material Description (From custom part properties) any help would be greatly appreciated.
Getting error This video is nice really I needed to use this feature but I am getting the error mentioned below. "Microsoft Visual Basic Application Compile error: User-defined type not defined" I request you to give some solution if you know.
What line is highlighted when you get this error? Also which SOLIDWORKS version do you use? This macro was tested on SW 2019 and newer and might be incompatible with older versions.
@@Xarial Thank you, but that’s not exactly what I meant. I would like to export flat patterns to STEP format, similar to how this macro unfolds and exports to DXF/DWG. Is it possible to modify this?
@@FrankKastelijn thanks for the clarification. We do not have this macro at the moment. But this is possible to implement. We offer custom development service, please contact us info@xarial.com and we can discuss the requirements
Please check the pinned comment (or check the 'Configuration' section on the macro's page). The macro was improved since the video was published and now supports more placeholders (to load from part properties or from cut-list properties) and thus the token names have changed.
Макрос бесплатный. Многотел поддерживается (можно непосредственно из детали макрос запускать). Русская версия этого же видео: ruclips.net/video/M31hpP53UIM/видео.html
This macro now works in part as well (no need to wrap part into assembly to run the macro). Macro now also supports placeholders for the custom property from the part itself and the main assembly in addition to cut list custom properties. There is also a breaking change, placeholder now is defined as
Without a doubt, this is the sheet metal macro that many people dream of, thank you very much, you have reduced our work errors and precious time.
Waiting to understand macro DXF for so long. I've been figuring out for 3months... in this video it took me 3min's !!!
Totally genius, will save me hours of late night work!
Great Work Artem !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Is it possible to include the part number, material and thickness inside the DXF?
Also, we would like to be able to have short bend lines about 30mm from the edges and in a certain colour and font. We do not want it all the way across the part. Is this doable?
Thanks a lot, my friend. Good work!
This is what we call a "Big Brain Macro".
I have an assembly with subassembly, the macro does not look into those subassemblies, is there any way to do this?
Hello, is it possible, instead of displaying the entire bend lines, to place a short (for example about 15mm) bend lines at the beginning and at the end so that the laser can engrave it for use with the press brake. And can these short lines be yellow so the laser software recognizes this lines for engraving.
I would want the same thing. Having bend lines etches all the way across the parts is not ideal and in thin materials can cause cracking when pressed. Artem, can you please reply to this comment as I think this will be useful for a lot of people?
tks u so much
Hi, I get error code "No cut-list items found". When I check the DXFs folder, there are still some details missing.
How to fix it?
Thanks!
Hello, Very good macro but one problem it misses one flat pattern is it because there could be doubles?
BUG: Macro put cut-list properties of last opened part configuration (not configuration of part used in assembly). How to fix it ?
Very useful, but some dxf files it leaves me rotated at 45 degrees, but only some, do you know why this happens? And other thing, at minute 0:56 you use a submenu, how do you get it? Thank you and I'm already subscribed, I almost forgot, how can I do that if it asks me in each file if it wants to save, that it ignores it and closes itself?
Thank you. The rotation issue was reported several times by different users. It looks like a bug in SW API itself (there is no specific steps taken in the macro to rotate the view). You can try to change the fixed face of sheet metal, but I will be looking into this issue. I will be rewriting this macro and integration into the CAD+ toolset SOLIDWORKS add-in. I am not sure I understand your question about submenu, do you mean subfolder? I am also not sure the reason of confirmation message for closing (I do not have one from my side). Could you please try to open this assembly as read-only before running the macro, does it fix the issue?
@@Xarial Thanks a lot for your anwers, let me tell you something, First, I have already verified that the rotated dxf are pieces that are not parallel to some main axis, X, Y or Z, that is why they come out rotated, second, the menu I am referring to is the one that comes out at minute 0:56 where you are changing the code and before finishing the command: "SheetMetalOptions_e." A small box opens where it says: "ExportBendLines", "ExportBoundingBox", "ExportFlatPatternGeometry", "ExportFormingTools", "ExportLibraryFeatures", "IncludeHiddenEdges", "IncludeSketches" and more options that are not seen, then you selected: "ExportBoundingBox" and the command you were writing was completed, to that "menu" I mean, Third, I already did the test by opening the assembly as read-only, but unfortunately it keeps asking me if I want to save the changes when the DXF of each piece ends, I think this is what affects me the most because 2 days ago I had to create almost 400 dxf and I had to be telling it not to save in all the files, even so it helped me a lot, Thanks Again, Finally if you integrate it as a add-in, it would be great!
Was this issue resolved? I have the same issue with rotations
Артем приветствую. Реально ли сделать второй макрос. 1й как он есть, а 2й делает все тоже самое, но все детали переворачивает (как бы делает зеркальными). Что думаете по этому поводу? Реально ли реализовать?
Добрый день, Артем. Отличный макрос. Но начал осваиввть проектирование сверху вниз и обнаружил, что в этом случае не выдает корректное имя детали. Так как деталь построена в сборке. Думал добавить в имя сохраняемой развертки конфигурацию сборки (тем самым сымитировать конфигурацию детали). Но пока не вышло. Как порекомендуете лучше решить этот вопрос?
Можно использовать переменную - это будет имя самой детали или, например любое свойство, если оно уникальное
Hi. This macro is great , is is possible to export all flat patterns in a single file & rather than DXF can we get output file in solid works ( .slddrw )
Great Macro!!!
Is it possible to export also in STEP?
This macro works with flat pattern (2D views), STEPS are 3D views. Do you want to simply export components to STEP files? If so, take a look at this macro: www.codestack.net/solidworks-api/import-export/export-multi-formats/ and it can be automated to work with all files of the assembly with Batch+: cadplus.xarial.com/batch/assembly/
hi dxf is working but sheet metal thickness wise not working what I do
thank you man ♥
Can this be used for an assembly that has plywood parts in it? I would normally go into each part and save as a solidworks drawing, front view only. Then I'll save each as dxf. lots of steps.
No, unfortunately it will only work for flat patterns
Thank you very much for this macro. I was wondering if it is possible to include the part number, material and thickness on the DXF? If yes, what would be the code for that and where will that be placed on the coding?
I assume those values are in the custom properties. If so, you can pull these (either from cut-list or from the file custom properties). You will need to set the value of OUT_NAME_TEMPLATE. To pull the custom property from cut list, you need to use the $CLPRP placeholder, e.g. to read the material. If the property is file specific, then it needs to be set as
@@Xarial thank you for your reply. But if i do the OUT_NAME_TEMPLATE plus , this will be on the file name. But I want the material and thickness inside the dxf if that is possible.
@@anthonyjosephbarlaan7908 I need the exact same thing
i receive cut list not found in my assembly everytime ?
What version of SOLIDWORKS do you use? Some old SOLIDWORKS files do not have cut-lists in the same way as newer versions and might not be compatible. If you can share your assembly via info@xarial.com I will be able to look into this issue.
@@XarialI'm facing the same issue
Hello, thank you very much for the macro. I have a question. Is it possible to export dxf of multi body sheet metal parts? (Bodies to Export all of them) if its possible can you please help me?
Yes, this macro will work with multi-bodies sheet metal parts
@@Xarial Hi.
Firstly thank you for this macro but ı have a problem .
For example I draw a part1.sldprt and its contains multi body sheet metal for example has Sheet Metal 1 , Sheet Metal 2 .... etc. When ı run macro notice ıf sheet 1 and sheet 2 has same thickness it makes rewrite dxf file and file number makes less than ı need so ı try add properties PARTNumber but ı cant do this .
I hope you can understand me.
Can you help me in this stuation?
@@Xarial, Seems to be an issue where the macro will not work where there are >1 quantity of a body. Works well if there is 1 of each body
Iš IT possible to save assembly pats with this macro and see count in filė name. Dxf. For example got 6 same parts in assembly so Dxf would be named like partname - 6pcs.dxf
Yes, it is not possible: ruclips.net/video/Vbxob8fU3R8/видео.html
god bless you !
hoe to get bend direction and band digree in this macro ?
Parts and assebly ...very good :).... but what if there are several configurations in assembly.... how to produce all parts DXF configurations?
This macro does not support this, but this tool does: ruclips.net/video/1Du-TkBjF-E/видео.html. It can be automated via API: github.com/xarial/cad-plus/tree/dev/com-api/flat-pattern-export/export-all-configurations
Many thanks! ...great ... I will take a closer look at this... @@Xarial
Hello, this macro is working great so far, the only problem that keeps me from fully automating my work is the following:
I run the macro, A dxf is created, then comes the problem: SolidWorks prompts 'Save Modified Documents'.
I now have to click Save after every DXF that is created.
Is there an easy way to fix this?
Check this tool: ruclips.net/video/1Du-TkBjF-E/видео.html. This macro will be recreated as a CAD+ module with more features, including the automatic killing of popups.
unrecognized token: sheet metal thickness what I do tell me
Hi guys! I use English and Russian templates SolidWorks in my work. Can anyone suggest how to rewrite the code to pull up the flat from both file types?
macro worked fine on moderate assembly .. but for large assemblies, solidwork is frozen, how do i turn off finished parts ... from 44 parts, macro don't worrk anymore.
Most likely this is just hardware limitation and it is just slow - exporting DXF is pretty heavy operation. If you leave it for longer - most likely it will finish (or crash if you run the limits of your hardware). If you can send me the assembly - I can have a closer look.
@@Xarial I will email you my assembly. it works on solidwork 2020. can i email to info@xarial.com
@@yeucokhi1007 Great, thank you. I can confirm that I have received the assembly. You can track the progress of this bug here: github.com/xarial/codestack/issues/11
@@yeucokhi1007 Issue has been fixed now. New macro is reuploaded. Another option to continue exporting after restart was added. Please read comment to github.com/xarial/codestack/issues/11 ticket for more information
Can we also add bend notes in the exported DXF Files?
Thank you this is very usful, can you also show how I can export hidden edges with this macro
Thank you very much for this macro. Very Great work. But I have a problem. when I run macro some parts work well and but then throw out error " Not cut-list items found". Help pleas
Hi, is it possible to export the endcaps (tubes etc.) to?
This is awesome. I am trying to only have it apply to the copper components in my assembly, is this possible?
Could you please clarify, do you want to only process components which have material set as copper?
Xarial, this macro is amazing! Would it be possible to do a similar macro: Instead of dxf exports, the flat pattern of each part is exported to a SW drawing and the bend lines are automatically dimensioned?
and also automatically contact my Sheetmetal provider and lazercutting and bending machinist and automatically deliver it to my client would be a cool bonus ;)
This module of CAD+ can save flat pattern to any format (including .slddrw): ruclips.net/video/1Du-TkBjF-E/видео.html. It does not currently have an option for bend line dimensions, but it can be added. Please contact us at info@xarial.com for more information.
This is amazing, is it possible to save in one click in the same folder, DXFs same as you did here but in addition of their drawings in format PDF (from parts drawing file.SLDDRW), with custom name that include the revision number at the end? for example the part number is (1234567.sldprt) and I want to save it as (1234567 R1.DXF) and (1234567 R1.PDF)?
The files exported arent flat patterns. What am I doing wrong?
Could you please clarify a bit more? Can you export flat pattern manually? Please contact us on support@xarial.com
Great video. How do I pull out a custom property and place it as a text inside DXF file?
I am afraid this is not currently supported
Nice
I'm not able to create seperate folders based on materials thickness. Could anyone help me? how can I create separate folders?
You need to separate folders with the \ symbols in the OUT_FILE_NAME_TEMPALATE constant
Thank you. Very Great work. Just one quick question. How can I mention repetitive part quantities in Assembly in their respective file name.
This is currently an open enhancement request: github.com/xarial/codestack/issues/16
I tried add Quantity: .dxf" but still is only 1 pieces. Do you have some proposal how to solve?
sir my error that "bad file name or number" how can i fix it sir, thanks a lot.
Please specify what is the value of OUT_NAME_TEMPLATE?
Thank you very much this has been very helpful, I just have few questions. I would like to have the bend lines as "dotted lines" and differentiate bend up and bend down lines by different color. How can I implement this through macro? Thanks in advance.
Have you found the solution? Also trying to add bend lines and change them to continuous thin colors
In my opinion, it is enough for the macro to additionally enable DXF mapping
When do you have the bend lines etched on the parts, how do you actually use them to bend the parts as you obviously can't have coloured lines etches on steel parts.
Бля, пушка!
Great Work !
How to modify this to save .dxf files in the same folder where the part is located ?
Thank you. I am afraid it is not possible at the moment (you can only do relative to the root assembly). But I have created an enhancement request for that: github.com/xarial/codestack/issues/34
Hello! this is my first time using macros, I wonder what do I have to do to export the mirrored parts too. It just exported the original parts.
This looks like a bug in the macro. Macro only exports unique files, but I have not considered mirrors where the geometry can be different. I will be looking for fix, but most likely the fix will come in the CAD+ version of this macro.
@@Xarial I apologize for the ignorance, what do you mean with CAD+ ?
@@RenanRozante Sorry, my fault, just realized I did not clarify what CAD+ is. This is a product (SOLIDWORKS add-in) which we are developing. It is essentially a collection of various tools for different aspects of the SOLIDWORKS: cadplus.xarial.com/. There are free and paid modules (currently in private beta, but you can watch newest videos of this channel to see the previews of new modules for managing custom properties, BOM and non-modeled items). Add-ins are more robust and easier to maintain and develop. I believe this macro already hit the limit (I am considering macros as scripts and thus trying not to overcomplicated them) in terms of features - it is hard to support. As I have lots of requests and this is one of the most used macros I am planning to include it to CAD+ as the module. So it will have a nice Property Page UI to enter parameters, reports, progress bar and all the requests I currently have, the most notable are: add quantity of components as the placeholder, add bend lines to different layers, add etching notes, your request with mirrored parts, proper orientation (sometimes it gets 45 degs rotated due to API issue), etc. Please do not hesitate to contact me on to info@xarial.com if you any questions.
@@Xarial If anyone else had this problem: if you select to transfer information of the metallic sheet when you're mirroring, then it exports the mirrored piece too. I just didn't knew enough about metallic sheets at the time. I can't thank you enough for this macro.
ambiguous name detected: swAPP
this is the error i m facing,
pls help me out
thanks
What version of SOLIDWORKS do you use? Please make sure that when you place the code into the macro - your macro is empty. I believe what happens that you have appended the macro code to a new macro.
This is great stuff!!
How can i change the name of the DXF-file? I would like to have the plate-thickness in the name..
THANKS!!
Just specify the name of the cut-list property with thickness in the OUT_NAME_EMPLATE constant, for example DXFs\.dxf, if the property name is Thickness
@@Xarial I tried but something doesnt work.. is this the right code?
Const OUT_NAME_TEMPLATE As String = "DXFs\____.dxf"
@@utrechtmannederland3460 Yes, but you might have localized name for the Thickness property. Check how it is named in your cut list custom properties.
@@Xarial Yeah, so its called Sheet Metal Thickness
Then this should be the right code?
Const OUT_NAME_TEMPLATE As String = "DXFs\____.dxf"
But it doesnt work
@@utrechtmannederland3460 if you have spaces, specify those as well, i.e.
Hello, dear friend.
I'll do the electric sign, and I'd need it a lot.
I did it and I saw it, but I didn't see the full alert. Because it didn't complete.
The files were done correctly but some files did not output and they were bug.
And the problem was from the list cut.
Thanks.
Hello Abolfazl, I apologize for the issue. Is there any chance you can send the problematic file to us so we can take a look? info@xarial.com
@@Xarial It was sent to you. I apologize for the delay in sending it
Hello, this is awesome.. thank you! Having a bit of trouble with the file naming system.. would be amazing if you could help. I am after - FileName_Material Thickness_Material Description (From custom part properties) any help would be greatly appreciated.
Getting error
This video is nice really I needed to use this feature but I am getting the error mentioned below.
"Microsoft Visual Basic Application
Compile error:
User-defined type not defined"
I request you to give some solution if you know.
What line is highlighted when you get this error? Also which SOLIDWORKS version do you use? This macro was tested on SW 2019 and newer and might be incompatible with older versions.
Can it export flat patterns to step?
You can use this macro to export to STEP: www.codestack.net/solidworks-api/import-export/export-multi-formats/
@@Xarial Thank you, but that’s not exactly what I meant. I would like to export flat patterns to STEP format, similar to how this macro unfolds and exports to DXF/DWG. Is it possible to modify this?
@@FrankKastelijn thanks for the clarification. We do not have this macro at the moment. But this is possible to implement. We offer custom development service, please contact us info@xarial.com and we can discuss the requirements
After export flat patterns, all DXF files are rotated 180 degrees
The orientation depends on the fixed face (macro is using default orientation) of the sheet metal. You might need to change the fixed face.
@@Xarial Face side i correct, but the bottom is placed at the top(rotated 180 degrees)
hello bro
so useful thanks alot
but unrecognized token sheet metal problem occure to me
Please check the pinned comment (or check the 'Configuration' section on the macro's page). The macro was improved since the video was published and now supports more placeholders (to load from part properties or from cut-list properties) and thus the token names have changed.
I get this error: "Bad file name or number"
Please let me know what file name template you specified, looks like the resolved file name has some not supported characters.
@@Xarial that is correct. There was not-supported characters.
макрос платный?
многотел как отрабатывает?
Макрос бесплатный. Многотел поддерживается (можно непосредственно из детали макрос запускать). Русская версия этого же видео: ruclips.net/video/M31hpP53UIM/видео.html