Export All Flat Patterns from SOLIDWORKS assembly components

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 123

  • @Xarial
    @Xarial  3 года назад +5

    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

  • @zatbenny8016
    @zatbenny8016 2 года назад +5

    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.

  • @domantasplunge
    @domantasplunge 3 года назад +1

    Waiting to understand macro DXF for so long. I've been figuring out for 3months... in this video it took me 3min's !!!

  • @davidklamberg1480
    @davidklamberg1480 3 года назад +1

    Totally genius, will save me hours of late night work!

  • @romanmoreno9665
    @romanmoreno9665 4 года назад +2

    Great Work Artem !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @maz1980s
    @maz1980s Год назад +1

    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?

  • @John77Designer
    @John77Designer 3 года назад +1

    Thanks a lot, my friend. Good work!

  • @benjaminwalker5260
    @benjaminwalker5260 3 года назад +1

    This is what we call a "Big Brain Macro".

  • @robinpauwels
    @robinpauwels Год назад

    I have an assembly with subassembly, the macro does not look into those subassemblies, is there any way to do this?

  • @FrankKastelijn
    @FrankKastelijn Год назад +1

    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.

    • @maz1980s
      @maz1980s Год назад

      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?

  • @huyhieunguyen8966
    @huyhieunguyen8966 3 года назад +1

    tks u so much

  • @TienThanhNguyen-fy3ec
    @TienThanhNguyen-fy3ec Год назад

    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!

  • @ImranGhaffor-d4s
    @ImranGhaffor-d4s 11 месяцев назад

    Hello, Very good macro but one problem it misses one flat pattern is it because there could be doubles?

  • @sefix3511
    @sefix3511 Год назад

    BUG: Macro put cut-list properties of last opened part configuration (not configuration of part used in assembly). How to fix it ?

  • @gerardomondragon8474
    @gerardomondragon8474 3 года назад +2

    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?

    • @Xarial
      @Xarial  3 года назад

      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?

    • @gerardomondragon8474
      @gerardomondragon8474 3 года назад

      @@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!

    • @alco_cactus
      @alco_cactus 15 дней назад

      Was this issue resolved? I have the same issue with rotations

  • @maksimdetkov
    @maksimdetkov 7 месяцев назад

    Артем приветствую. Реально ли сделать второй макрос. 1й как он есть, а 2й делает все тоже самое, но все детали переворачивает (как бы делает зеркальными). Что думаете по этому поводу? Реально ли реализовать?

  • @ЕвгенийРоманов-э1ш
    @ЕвгенийРоманов-э1ш 3 года назад +1

    Добрый день, Артем. Отличный макрос. Но начал осваиввть проектирование сверху вниз и обнаружил, что в этом случае не выдает корректное имя детали. Так как деталь построена в сборке. Думал добавить в имя сохраняемой развертки конфигурацию сборки (тем самым сымитировать конфигурацию детали). Но пока не вышло. Как порекомендуете лучше решить этот вопрос?

    • @Xarial
      @Xarial  2 года назад

      Можно использовать переменную - это будет имя самой детали или, например любое свойство, если оно уникальное

  • @rajchorghe-e3n
    @rajchorghe-e3n 10 дней назад

    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 )

  • @tomislavivanek9236
    @tomislavivanek9236 2 года назад +1

    Great Macro!!!
    Is it possible to export also in STEP?

    • @Xarial
      @Xarial  2 года назад

      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/

  • @krishnakumar-jp2su
    @krishnakumar-jp2su Год назад

    hi dxf is working but sheet metal thickness wise not working what I do

  • @faouzimuhammed
    @faouzimuhammed 9 месяцев назад

    thank you man ♥

  • @colereynolds4607
    @colereynolds4607 3 года назад +1

    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.

    • @Xarial
      @Xarial  2 года назад

      No, unfortunately it will only work for flat patterns

  • @anthonyjosephbarlaan7908
    @anthonyjosephbarlaan7908 3 года назад +2

    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?

    • @Xarial
      @Xarial  3 года назад +1

      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

    • @anthonyjosephbarlaan7908
      @anthonyjosephbarlaan7908 3 года назад

      @@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.

    • @maz1980s
      @maz1980s 2 года назад

      @@anthonyjosephbarlaan7908 I need the exact same thing

  • @boymajoor1191
    @boymajoor1191 3 года назад +1

    i receive cut list not found in my assembly everytime ?

    • @Xarial
      @Xarial  3 года назад

      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.

    • @akshayeu7521
      @akshayeu7521 25 дней назад

      ​@@XarialI'm facing the same issue

  • @serkanemregul2964
    @serkanemregul2964 2 года назад +1

    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
      @Xarial  2 года назад

      Yes, this macro will work with multi-bodies sheet metal parts

    • @emrekuyumcu8147
      @emrekuyumcu8147 Год назад

      @@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?

    • @uppsala7347
      @uppsala7347 Год назад

      @@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

  • @tomasheatmann3078
    @tomasheatmann3078 3 года назад +1

    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

    • @Xarial
      @Xarial  2 года назад

      Yes, it is not possible: ruclips.net/video/Vbxob8fU3R8/видео.html

  • @PedroKolbEmmel
    @PedroKolbEmmel Год назад

    god bless you !

  • @9440486272
    @9440486272 Год назад

    hoe to get bend direction and band digree in this macro ?

  • @ilpoviiliainen5235
    @ilpoviiliainen5235 Год назад

    Parts and assebly ...very good :).... but what if there are several configurations in assembly.... how to produce all parts DXF configurations?

    • @Xarial
      @Xarial  Год назад

      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

    • @ilpoviiliainen5235
      @ilpoviiliainen5235 Год назад

      Many thanks! ...great ... I will take a closer look at this... @@Xarial

  • @reinoutbisschop5931
    @reinoutbisschop5931 2 года назад

    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?

    • @Xarial
      @Xarial  2 года назад +1

      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.

  • @krishnakumar-jp2su
    @krishnakumar-jp2su Год назад

    unrecognized token: sheet metal thickness what I do tell me

  • @ДмитрийВержбицкий-ъ9ю

    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?

  • @yeucokhi1007
    @yeucokhi1007 4 года назад +1

    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.

    • @Xarial
      @Xarial  4 года назад +2

      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
      @yeucokhi1007 4 года назад

      @@Xarial I will email you my assembly. it works on solidwork 2020. can i email to info@xarial.com

    • @Xarial
      @Xarial  4 года назад +1

      @@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

    • @Xarial
      @Xarial  4 года назад +1

      @@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

  • @aldandavid077
    @aldandavid077 2 года назад

    Can we also add bend notes in the exported DXF Files?

  • @akshaykumayu1366
    @akshaykumayu1366 3 года назад

    Thank you this is very usful, can you also show how I can export hidden edges with this macro

  • @stevansapic6583
    @stevansapic6583 2 года назад

    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

  • @FrankKastelijn
    @FrankKastelijn Год назад

    Hi, is it possible to export the endcaps (tubes etc.) to?

  • @hunterbakos9946
    @hunterbakos9946 2 года назад

    This is awesome. I am trying to only have it apply to the copper components in my assembly, is this possible?

    • @Xarial
      @Xarial  2 года назад

      Could you please clarify, do you want to only process components which have material set as copper?

  • @smartopplatform
    @smartopplatform 2 года назад

    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?

    • @omarlaamarti7410
      @omarlaamarti7410 2 года назад +1

      and also automatically contact my Sheetmetal provider and lazercutting and bending machinist and automatically deliver it to my client would be a cool bonus ;)

    • @Xarial
      @Xarial  2 года назад

      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.

  • @MohamedAmineBENHAJHAMOUDAAmine
    @MohamedAmineBENHAJHAMOUDAAmine 3 года назад

    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)?

  • @Tact1calP0tat0
    @Tact1calP0tat0 2 года назад

    The files exported arent flat patterns. What am I doing wrong?

    • @Xarial
      @Xarial  2 года назад

      Could you please clarify a bit more? Can you export flat pattern manually? Please contact us on support@xarial.com

  • @maz1980s
    @maz1980s 2 года назад

    Great video. How do I pull out a custom property and place it as a text inside DXF file?

    • @Xarial
      @Xarial  2 года назад

      I am afraid this is not currently supported

  • @zakaria_mohammed
    @zakaria_mohammed Месяц назад

    Nice

  • @KaushalPrajapati-ku6bi
    @KaushalPrajapati-ku6bi 6 месяцев назад

    I'm not able to create seperate folders based on materials thickness. Could anyone help me? how can I create separate folders?

    • @Xarial
      @Xarial  Месяц назад

      You need to separate folders with the \ symbols in the OUT_FILE_NAME_TEMPALATE constant

  • @designnkfs5636
    @designnkfs5636 3 года назад

    Thank you. Very Great work. Just one quick question. How can I mention repetitive part quantities in Assembly in their respective file name.

    • @Xarial
      @Xarial  3 года назад

      This is currently an open enhancement request: github.com/xarial/codestack/issues/16

    • @peterslim85
      @peterslim85 3 года назад

      I tried add Quantity: .dxf" but still is only 1 pieces. Do you have some proposal how to solve?

  • @ksphai5516
    @ksphai5516 3 месяца назад

    sir my error that "bad file name or number" how can i fix it sir, thanks a lot.

    • @Xarial
      @Xarial  Месяц назад

      Please specify what is the value of OUT_NAME_TEMPLATE?

  • @raamkumarmanickavasagam6860
    @raamkumarmanickavasagam6860 3 года назад

    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.

    • @krystianstarosta6401
      @krystianstarosta6401 3 года назад

      Have you found the solution? Also trying to add bend lines and change them to continuous thin colors

    • @krystianstarosta6401
      @krystianstarosta6401 3 года назад

      In my opinion, it is enough for the macro to additionally enable DXF mapping

    • @maz1980s
      @maz1980s Год назад

      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.

  • @loftcompany5811
    @loftcompany5811 3 года назад +2

    Бля, пушка!

  • @artursrimsa3003
    @artursrimsa3003 3 года назад

    Great Work !
    How to modify this to save .dxf files in the same folder where the part is located ?

    • @Xarial
      @Xarial  3 года назад +1

      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

  • @RenanRozante
    @RenanRozante 3 года назад

    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.

    • @Xarial
      @Xarial  3 года назад

      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
      @RenanRozante 3 года назад

      @@Xarial I apologize for the ignorance, what do you mean with CAD+ ?

    • @Xarial
      @Xarial  3 года назад +1

      ​@@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.

    • @RenanRozante
      @RenanRozante 2 года назад

      @@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.

  • @jitenderkumar3327
    @jitenderkumar3327 3 года назад

    ambiguous name detected: swAPP
    this is the error i m facing,
    pls help me out
    thanks

    • @Xarial
      @Xarial  3 года назад

      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.

  • @utrechtmannederland3460
    @utrechtmannederland3460 4 года назад

    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!!

    • @Xarial
      @Xarial  4 года назад

      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

    • @utrechtmannederland3460
      @utrechtmannederland3460 4 года назад

      @@Xarial I tried but something doesnt work.. is this the right code?
      Const OUT_NAME_TEMPLATE As String = "DXFs\____.dxf"

    • @Xarial
      @Xarial  4 года назад

      @@utrechtmannederland3460 Yes, but you might have localized name for the Thickness property. Check how it is named in your cut list custom properties.

    • @utrechtmannederland3460
      @utrechtmannederland3460 4 года назад

      @@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

    • @Xarial
      @Xarial  4 года назад

      @@utrechtmannederland3460 if you have spaces, specify those as well, i.e.

  • @abolfazlrajabi7479
    @abolfazlrajabi7479 3 года назад

    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.

    • @Xarial
      @Xarial  3 года назад

      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

    • @abolfazlrajabi7479
      @abolfazlrajabi7479 2 года назад

      @@Xarial It was sent to you. I apologize for the delay in sending it

  • @coops2729
    @coops2729 Год назад

    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.

  • @selvasenthil1997
    @selvasenthil1997 3 года назад

    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.

    • @Xarial
      @Xarial  3 года назад

      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.

  • @FrankKastelijn
    @FrankKastelijn 6 месяцев назад

    Can it export flat patterns to step?

    • @Xarial
      @Xarial  Месяц назад

      You can use this macro to export to STEP: www.codestack.net/solidworks-api/import-export/export-multi-formats/

    • @FrankKastelijn
      @FrankKastelijn Месяц назад

      @@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?

    • @Xarial
      @Xarial  Месяц назад

      @@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

  • @andrisakmenkalns123
    @andrisakmenkalns123 3 года назад

    After export flat patterns, all DXF files are rotated 180 degrees

    • @Xarial
      @Xarial  3 года назад +1

      The orientation depends on the fixed face (macro is using default orientation) of the sheet metal. You might need to change the fixed face.

    • @andrisakmenkalns123
      @andrisakmenkalns123 3 года назад

      ​@@Xarial Face side i correct, but the bottom is placed at the top(rotated 180 degrees)

  • @taheralahmar7546
    @taheralahmar7546 3 года назад

    hello bro
    so useful thanks alot
    but unrecognized token sheet metal problem occure to me

    • @Xarial
      @Xarial  3 года назад

      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.

  • @abghrnjd
    @abghrnjd 2 года назад

    I get this error: "Bad file name or number"

    • @Xarial
      @Xarial  2 года назад +1

      Please let me know what file name template you specified, looks like the resolved file name has some not supported characters.

    • @abghrnjd
      @abghrnjd 2 года назад

      @@Xarial that is correct. There was not-supported characters.

  • @wako9681
    @wako9681 3 года назад +1

    макрос платный?
    многотел как отрабатывает?

    • @Xarial
      @Xarial  3 года назад +1

      Макрос бесплатный. Многотел поддерживается (можно непосредственно из детали макрос запускать). Русская версия этого же видео: ruclips.net/video/M31hpP53UIM/видео.html