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:

changing multible dias


happycat64
 Share

Recommended Posts

The attached vbs file will create duplicates of all 0.076 diameter arcs, with a new diameter of 0.075

 

Following is the code, if you wanna copy / paste:

 

 

Dim objMyArc '#Obj : Arc parameters

Dim objMyNewArc '#Obj : Arc parameters

Dim blnEntity '#Bln : DB search

 

 

blnEntity = StartDBSearch(mc_alive, mc_arctype)

 

Do While blnEntity

Set objMyArc = New McAr

Set objMyNewArc = New McAr

If GetArcData(GetEntityEptr, objMyArc) Then

If (objMyArc.R = 0.038) Then

With objMyNewArc

.X = objMyArc.X

.Y = objMyArc.Y

.Z = objMyArc.Z

.R = .0375

.SA = objMyArc.SA

.SW = objMyArc.SW

.View = objMyArc.View

 

CreateArc objMyNewArc,mcCONSTRUCTION_COLOR_CURRENT, mcCONSTRUCTION_LEVEL_CURRENT

End With

End If

End If

blnEntity = NextDBSearch

Loop

Link to comment
Share on other sites

i ran the multi arc edit and it shrunk the radius like i wanted but didnt keep them trimmed to the other enitys, which would be time consuming to go and trim them all--is there another method?

 

If you have fillets instead of arcs, try using the fillet chain option,

create new fillets .0375, window select all chains,

then use mask only, misc, dia = .038 to select the fillets to delete

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