What bugs you the most in SheetCam?

Having problems with or questions about SheetCam? Post them here.
User avatar
djreiswig
Posts: 484
Joined: Sat Feb 20, 2016 4:47 am
Location: SE Nebraska

Re: What bugs you the most in SheetCam?

Post by djreiswig »

Les Newell wrote: Thu Apr 08, 2021 2:39 pm I have attached the files. A lot of it is LinuxCNC specific, reading probe parameters and doing the probing etc. The subroutines of most interest would be find_xedge.ngc and find_yedge.ngc

Basically here is how it works:
First zero X and Y on the corner. Now find the X,Y coordinates of a point along the edge. This wants to be a decent distance from the corner. Find the arc tangent of those coordinates (the atan function) to get the rotation angle. Now use coordinate rotation with that angle (I think it's G68 in Mach3)
Did a little research on this and some experimenting. Haven't cut anything on rotated material yet, but according to the display window in Mach3, it appears to work. Add a button to your screen and insert the vb code in the button. I also inserted an LED "OEMLED(108)" to show when rotation was in effect, but the X,Y DRO's also change red to note rotated coordinates.

To use, zero X & Y on the corner, then jog down the edge to another point. Click the button. The rotation angle is displayed in a message box. Click yes to rotate. To cancel rotation, click the button again. One note, jogging doesn't follow the rotated coordinate system.

Code: Select all

If GetOEMLED(108) Then 'coordinates rotated
    If MsgBox ("Cancel rotation?", 4 + 32, "Rotation") = 6 Then
        Code("G69")				
        DoOEMButton(160) 'regen toolpath
        Message "Rotation cancelled. (G69)"
    End If
Else
    If Format(GetDRO(0),"0.0000") <> 0 And Format(GetDRO(1),"0.0000") <> 0 Then 'can't calculate angle if one axis is zero
        dx = GetDRO(0)
        dy = GetDRO(1)
        Pi = Atn( 1 ) * 4
        If Abs( dx ) > Abs( dy ) Then ' horizontal, near X axis
            angle = Atn( dy / dx ) / Pi * 180
        Else ' vertical, near Y axis
            angle = Atn( - dx / dy ) / Pi * 180
        End If
        If MsgBox ("Rotate coordinates " & Format(angle, "0.0000") & "° ?", 4 + 32, "Rotation") = 6 Then
            SetOEMDRO(118, angle)
            Code("G68X0Y0R" & angle)
            DoOEMButton(160) 'regen toolpath
            Message "Coordinates rotated. (G68)"
        End If
    End If
End If
Happy cutting.
plasma
Posts: 2
Joined: Tue May 10, 2022 4:01 pm

Re: What bugs you the most in SheetCam?

Post by plasma »

Rotary IPM interpretation vs diameter vs commanded IPM of tool.

Rotary tool simulation seems broken vs last version

john
Killer
Posts: 2
Joined: Sat Nov 13, 2021 7:27 am

Re: What bugs you the most in SheetCam?

Post by Killer »

No TTF import for fonts, cheers for asking Les!
User avatar
Les Newell
Site Admin
Posts: 3668
Joined: Thu May 11, 2006 8:12 pm

Re: What bugs you the most in SheetCam?

Post by Les Newell »

Fonts in dxf files are problematic. The DXF specification for text is vague and in places even contradictory. This means that every cad package handles text differently. In quite a few cad packages if you reload a dxf saved from that cad package, the font or text size/position will change. This makes it pretty much impossible to reliably support text in dxf files.

I may be able add text support to svg file import. It's one of those 'roud tuit' projects that I never had any spare round tuits for.
User avatar
djreiswig
Posts: 484
Joined: Sat Feb 20, 2016 4:47 am
Location: SE Nebraska

Re: What bugs you the most in SheetCam?

Post by djreiswig »

If it will help, I've got an extra one I can send you. :lol:
203_750x750_Front_Color-NA.jpg
203_750x750_Front_Color-NA.jpg (134.32 KiB) Viewed 702235 times
hans
Posts: 116
Joined: Sun Feb 02, 2020 8:26 pm

Re: What bugs you the most in SheetCam?

Post by hans »

The option "square corners" does lead to wrong toolpaths in some constellations:
Screenshot_2023-12-30_22-50-47.png
Screenshot_2023-12-30_22-50-47.png (57.45 KiB) Viewed 686472 times
Furthermore I preferred the embedded image from earlier versions. This is strange especially when moving the window because the image stays there.
Screenshot_2023-12-31_12-22-37.png
Screenshot_2023-12-31_12-22-37.png (28.49 KiB) Viewed 686472 times
rideforlife247
Posts: 14
Joined: Sun Jan 29, 2023 6:00 am

Re: What bugs you the most in SheetCam?

Post by rideforlife247 »

when you have part in the sheet cam and you accidently rotate it in 3d, the on screen dimensions never come back even if you flatten it out, only way i have found to fix it close program and restart.
Attachments
Capture3.JPG
Capture3.JPG (86.21 KiB) Viewed 686352 times
Capture2.JPG
Capture2.JPG (94.04 KiB) Viewed 686352 times
Capture.JPG
Capture.JPG (72.06 KiB) Viewed 686352 times
Post Reply