rxdeath

treat 2 arcs as a circle

Recommended Posts

hey for all you mastercam gurus out there, is there an easy way to get mastercam to register all of my 2 connected arcs into regular full circles without a ton of work?

 

i have a drawing with a grip of different sized holes and i want to use contours, but i have to pick both sides of the arc, which sucks.  if there's a better way i'd like to hear it, but i would also like to know if there is a way to just join the segments into 1 continous line as far as mastercam sees because i'd like to use that process on other shapes as well

 

thanks

Share this post


Link to post
Share on other sites

Without seeing the geometry I am just guessing.

Possibly make the arcs a separate colour and use the quick mask to select by colour.

 

Share this post


Link to post
Share on other sites

Have you tried holding shift while selecting one side of the arc to force the chain?

I believe you could also select both arcs and then join entities to create one circle.

Share this post


Link to post
Share on other sites
Guest
5 hours ago, rxdeath said:

hey for all you mastercam gurus out there, is there an easy way to get mastercam to register all of my 2 connected arcs into regular full circles without a ton of work?

 

i have a drawing with a grip of different sized holes and i want to use contours, but i have to pick both sides of the arc, which sucks.  if there's a better way i'd like to hear it, but i would also like to know if there is a way to just join the segments into 1 continous line as far as mastercam sees because i'd like to use that process on other shapes as well

 

thanks

Model Prep -> Optimize -> then create curves to reduce the chances of this happening

Wireframe -> Spline from curves will join muiltiple entities into one.

If you are using Mastercam 2022 pb2 you can convert all selected geometry into splines by typing the following command into the new NetScripting.dll and pressing run.

Mastercam.Database.ChainManager.ChainTolerance = 0.0005;
var chains = Mastercam.Database.ChainManager.ChainAllSelected();
if(chains != null)
{
foreach(var chain in chains)
{

try
{
 Mastercam.GeometryUtility.GeometryCreationManager.CreateParametricSplineFromChain(chain, 0.0005, Mastercam.GeometryUtility.Types.OriginalCurvesDisposition.Delete, 500);
}
catch(System.Exception e)
{

}
break;
}
}

You would save this code in a file called SplineAllSelected.cs for re-use, for example..

Share this post


Link to post
Share on other sites
Guest
26 minutes ago, Pete Rimkus from CNC Software Inc. said:

Simple ... you can use "Join Entities" on the Wireframe Ribbon to convert all the split circles into full circles.

 

Is there a similar function for joining non-colinear shapes like a triangle using the same selection method?

Share this post


Link to post
Share on other sites

Thee Byte,

"....is there a similar function for joining non-colinear shapes like a triangle using the same selection method?.."

And joining them into a polyline-like entity?

Or a spline with sharp corners?

Share this post


Link to post
Share on other sites
Guest
2 minutes ago, Pete Rimkus from CNC Software Inc. said:

Thee Byte,

"....is there a similar function for joining non-colinear shapes like a triangle using the same selection method?.."

And joining them into a polyline-like entity?

Or a spline with sharp corners?

Yes, a spline with sharp corners, we use this a lot.

Could be a polyline-like entity

Share this post


Link to post
Share on other sites
1 hour ago, Thee Byte™ said:

Is there a similar function for joining non-colinear shapes like a triangle using the same selection method?

Create > Spline from Curves

?

  • Like 1

Share this post


Link to post
Share on other sites
Guest
13 minutes ago, Colin Gilchrist said:

Create > Spline from Curves

?

That takes a number of user selected chains as a parameter, not a group of selected ents.

 

Highly inefficient and unnecessary in many cases.

 

Share this post


Link to post
Share on other sites

I keep close arc in my right click menu.

I have "ALT- J" set up for join entities.

  • Like 1

Share this post


Link to post
Share on other sites
On 3/18/2021 at 6:29 AM, Thee Byte™ said:

Model Prep -> Optimize -> then create curves to reduce the chances of this happening

Wireframe -> Spline from curves will join muiltiple entities into one.

If you are using Mastercam 2022 pb2 you can convert all selected geometry into splines by typing the following command into the new NetScripting.dll and pressing run.

Mastercam.Database.ChainManager.ChainTolerance = 0.0005;
var chains = Mastercam.Database.ChainManager.ChainAllSelected();
if(chains != null)
{
foreach(var chain in chains)
{

try
{
 Mastercam.GeometryUtility.GeometryCreationManager.CreateParametricSplineFromChain(chain, 0.0005, Mastercam.GeometryUtility.Types.OriginalCurvesDisposition.Delete, 500);
}
catch(System.Exception e)
{

}
break;
}
}

You would save this code in a file called SplineAllSelected.cs for re-use, for example..

You are one coding fool! What is your background if you don’t mind me asking?  Computer Science?

Share this post


Link to post
Share on other sites
Guest
11 minutes ago, CNC_Newbie said:

You are one coding fool! What is your background if you don’t mind me asking?  Computer Science?

I learned coding on my own and practice everyday.

 I pursued machining and cnc programming in my studies..

Share this post


Link to post
Share on other sites
6 hours ago, Thee Byte™ said:

learned coding on my own and practice everyday.

 I pursued machining and cnc programming in my studies

thats fantastic!

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • 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