Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Mastercam 2020 Mask on Arc bug


gorsek1
 Share

Recommended Posts

In mastercam 2019 and Mastercam 2020 there are several bugs with drilling holes when selecting mask on arc.

sometimes not all holes are selected. When i try the same .dwg or .step file in Mcam 2017 or 2018 everithing works fine.

Also sometimes holes on other depths are selected when i have the Depth filter checked.

I almost crashed my 5axis Machine because of this.

When will this be fixed?

I cant attach the .dwg and .step files here because of privacy issues... But i can confirm that these problems dont exist in mcam 2018 and below.

Link to comment
Share on other sites
  • 2 weeks later...
On ‎9‎/‎3‎/‎2019 at 3:47 AM, gorsek1 said:

In mastercam 2019 and Mastercam 2020 there are several bugs with drilling holes when selecting mask on arc.

sometimes not all holes are selected. When i try the same .dwg or .step file in Mcam 2017 or 2018 everithing works fine.

Also sometimes holes on other depths are selected when i have the Depth filter checked.

I almost crashed my 5axis Machine because of this.

When will this be fixed?

I cant attach the .dwg and .step files here because of privacy issues... But i can confirm that these problems dont exist in mcam 2018 and below.

If these issues continue I would personally recommend to develop your own function using a CHOOK or NETHOOK it wouldn't be a lot of work.

Link to comment
Share on other sites

Regarding the Z-Depths that sounds like an issue related to the arc's current view, however the issue with the some of the arcs being ommited might be solved by adding a tolerance to your mask function. Consider this example using vbscript.

Call Main()
Sub Main() 
'Set the radius of the arc to move
Dim ArcRadius
Dim Arc_Chk
Set Arc_Chk = New McAr
If AskForEntity("Select an arc to mask.", mc_arctype) Then
 GetEntityEptr
  If GetArcData(GetEntityEptr, Arc_Chk) = True Then
  ArcRadius = Arc_Chk.R
  End If
  End If
  Set Arc_Chk = Nothing
'Set the new level of the arc to move
Dim Level_To_Move
If Not askLevel(Level_To_Move) Then
   ' -- User failed to input a value 
   Exit Sub
End If
'Set the new Tolerance of the arc to move
Dim Tolerance
Tolerance = .002

Call Search_Arcs(ArcRadius,Level_To_Move,Tolerance)
End Sub
Function Search_Arcs(ArcRadius,Level_To_Move,Tolerance)
' -- Zoom all
Call RepaintScreen(True)
Dim SearchArcs
SearchArcs = StartDBSearch(mc_alive, mc_arctype)    
If SearchArcs Then
Do 
Dim Arc
Set Arc = New McAr
If GetArcData(GetEntityEptr, Arc) = True Then
If Arc.SW < 360 and Arc.SW >= 0 or Arc.SW > -360 and Arc.SW <= 0 Then
'Arc is not closed
Else
'Arc is closed
If Arc.R > ArcRadius - Tolerance And Arc.R < ArcRadius + Tolerance Then
Call SetEntityLevel(Level_To_Move)
End If
End If
Else
ShowString("Error reading arc data.")'Bail
End If
Set Arc = Nothing
Loop While NextDBSearch   
End If
End Function

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...