Is it Possible to get G-CODE file from solidworks ?
I believe you would need a solidworks add in to get the g-code. Otherwise you would need to use another kind of 3rd party software.
SolidWorks CAM is now included with SolidWorks. I haven't done it, but I imagine you can run through that and get G-Code output.
I did not know CAM was free with a seat of Solidworks! Thanks for pointing this out!
What do you want to do with the G-Code?
transfer it to cnc machine
Yes. The CAM software in SW will output G code. I don't remember if you can change the post processor to get specific output though. The Generic one looks like this.
O0001N1 G20N2 (Flow tool)N3 G91 G28 X0 Y0 Z0N4 T17 M06N5 S746 M03
N6 ( Contour Mill1 )N7 G90 G54 G00 X481.4652 Y-7.691N8 G43 Z1.6 H17 M09N9 G01 Z1.106 F3.5068N10 G41 D37 X480.3621 Y-6.5879 F10.5203N11 G17 G03 X480.15 Y-6.5 I-.2121 J-.2121N12 G01 X464.9959 F14.027N13 X9.9959 Y-4.N14 X-.15N15 G03 X-.3621 Y-4.0879 I0 J-.3N16 G40 G01 X-1.4652 Y-5.191N17 G00 Z1.6N18 Z7.5N19 G91 G28 Z0N20 G28 X0 Y0N21 M30
Thank you for your answer
What do you mean by " change the post processor to get specific output though " ?
What is a CNC Post Processor? | CAMplete Solutions INC.
Scott gave a good link. Essentially it's a "translator". What comes out of the CAM software is same language all the time. However each machine, control, manufacturer etc etc has a slightly different language despite it all being G-Code.
So the language that the CAM software puts out has to be translated to the language the machine will understand.
On top of that you can also specialize the post processor to do things the way you want them to be done. Things like fixture offsets, sub routines, comments, organization etc etc can all be posted the way you want them via the post processor.
I use the MasterCam for Solidworks add-in.
I do know that there are quite a few Post's available for the Solidworks CAM. The version that is included with Solidworks is somewhat limited. There is an upgraded version available.
I haven't done much with it since I already have MCfSW and it does what I need.
Retrieving data ...