Dec 4, 2022 #1 Siddesh pharakate Mechanical Joined Dec 4, 2022 Messages 3 Location IN Can someone please help me with a macro to import dxf layers as separate sketches in a solidworks part file? I'm not familiar with writing macros.
Can someone please help me with a macro to import dxf layers as separate sketches in a solidworks part file? I'm not familiar with writing macros.
Dec 7, 2022 #2 MysteriousDrX Aerospace Joined Sep 14, 2011 Messages 24 Location GB As long as you import as new part you should be able to do that with a tickbox on the second page of the import dialogue box, without the need for a macro, but it does rely on layers actually having been used instead of just different colours. Is that not working for you? Upvote 0 Downvote
As long as you import as new part you should be able to do that with a tickbox on the second page of the import dialogue box, without the need for a macro, but it does rely on layers actually having been used instead of just different colours. Is that not working for you?
Dec 8, 2022 Thread starter #3 Siddesh pharakate Mechanical Joined Dec 4, 2022 Messages 3 Location IN Hi, Thanks for your response. Yes it works for me but I'm trying to get it done through a macro in order to save time. Upvote 0 Downvote
Hi, Thanks for your response. Yes it works for me but I'm trying to get it done through a macro in order to save time.
Dec 8, 2022 #4 TheTick Mechanical Joined Mar 5, 2003 Messages 10,194 Location US You may need to incorporate additional API references outside of SolidWorks to sort out layers in a DXF. Upvote 0 Downvote
You may need to incorporate additional API references outside of SolidWorks to sort out layers in a DXF.
Dec 9, 2022 Thread starter #5 Siddesh pharakate Mechanical Joined Dec 4, 2022 Messages 3 Location IN Thanks, I'll see if i can find something on that.Great help! Upvote 0 Downvote