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:

treat 2 arcs as a circle


rxdeath
 Share

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

Link to comment
Share on other sites
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..

Link to comment
Share on other sites
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?

Link to comment
Share on other sites
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

Link to comment
Share on other sites
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.

 

Link to comment
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?

Link to comment
Share on other sites
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..

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...