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:

Converting arcs to lines


SnahOlah
 Share

Recommended Posts

Does anyone know a way to convert arcs to lines using toolpath parameters like filtering etc. I know I can actually break the arcs using break many but I'd rather be able to do it from the toolpath (or some other way?). I also should mention the "present arcs as lines" setting in smoothing doesn't appear to do it. And a somewhat related question (at least in my case) does anybody have good advice for cases with surface finish toolpaths where the tool moves up and down in z very slightly (0.0002 or so ) and you want to round that off to no z motion? Thanks in advance...

Link to comment
Share on other sites

Why not just turn off Arc Support in the Control Definition, and force Mastercam to Linearize everything? Same goes for the Toolpath filters, you can enable the Filter, set a tolerance, and just don't enable the "Line/Arc" Filter.

If you drive an Arc (wireframe) as part of a Contour Path, you'll get a G2/G3 Arc in your NC Code, unless you disable the Arc Support in the Control Definition.

If you want to be able to "choose" which paths get Linearized, and which ones are allowed to output Arcs, then you need to make some post modifications. The variable 'linarc$' can be set inside the Post to force Arcs to be linearized by the Post itself. It is pretty easy to tie that into a Misc Integer or Real Number, to give you control over the output to your NC Code.

Your Reseller would be the first place to go for help with this... 

Link to comment
Share on other sites

As far as I can see turning the filter on without arcs selected (or leaving it off) still yields arc output (may still be missing something). The post edit you mentioned seems reasonable but I would only do that after I conclude I can't do this another way. And I do want to only apply this in certain cases so I'd rather not handle it in the control def. Do you know of a way using the filter / tolerances? Thanks for your help

Link to comment
Share on other sites

If the "Input" geometry to the Toolpath contains Arcs, then no, there is no way to support Linearization of a path using "only" the Filter settings. If the Toolpath is based on Surface Machining Paths, then it is "point-to-point" by default.

The Control Definition would be the "Global" setting for Arc Support. If you disable it in the Control Definition, then every single path would always be Linearized, and you'd never get Arcs.

The only way to be able to control this using "as needed" options would be to use the Miscellaneous Integers to "pass" data to the Post Processor (for example, to select '0' for the conversion to be "off", or '1' when you want it to be "on" for an individual Toolpath). Then by writing logic in the Post Processor, you can determine when to output Arcs, and when they should be Linearized, using the 'linarc$' variable, along with 'chord_tol$' to control the breaking tolerance.

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