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:

VBS - Create Ruled/Lofted Surface & Create Curve at Intersection


Recommended Posts

Good Afternoon All,

 

First time poster here. I am trying to speed up a task that is repeated multiple times a day by using VBS. I've had some luck picking apart the examples and using what I need for some but am not finding much for Creating Ruled/Lofted Surfaces and Creating Curve at Intersection.

 

So my usual routine is...

1) Create 8 Levels

2) Import Parasolid

3) Save as a MasterCam File

4) Rotate the View

5) Change the WCS

6) Draw a couple lines

7) Create a Ruled/Lofted Surface Between the Lines

8) Create a Curve at the intersection of the Lofted Surface from the model

9) Delete everything but the New Curve

 

I have 1-6 knocked out but cannot seem to find much on 7-9. Can anyone help me with the last few steps? Or maybe point me in the direction of some more examples I can pick apart?

 

Thanks!

James

 

 

Here is what I have for step 6 that I'd like to make a surface between...

Sub CreateOutline() '//////////////////////////////////////////////////////////////////////////////// 'Create Upper/Lower Lines For Slicing '//////////////////////////////////////////////////////////////////////////////// Dim CLine Dim intRet Set CLine  = New McLn   With CLine  .X1 = 10  .Y1 = -40  .Z1 = 0  .X2 = 10  .Y2 = 40  .Z2 = 0  intRet = CreateLine(CLine, mcCONSTRUCTION_COLOR_CURRENT, 1)  .X1 = -15  .Y1 = -40  .Z1 = 0  .X2 = -15  .Y2 = 40  .Z2 = 0  intRet = CreateLine(CLine, mcCONSTRUCTION_COLOR_CURRENT, 1) End With       	 Set CLine = Nothing Call RepaintScreen(True)End Sub
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...