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:

pohyg

Resellers
  • Posts

    9
  • Joined

  • Last visited

Posts posted by pohyg

  1. Hello ,

     

    Pip and Saipem Thank for your help .

     

    Saipem your program was work , i will apply

     

    this to toollist for the Excel format

     

    but how about sort the string from A to Z.

     

    I was the beginner to try writting some VB

     

    programs , anyway thanks and hope next time you

     

    can assist .

     

    Best Regards,

     

    Poh Yew Guan

     

    TECHTOWN Pte Ltd

     

    Distributor for Mastercam® & IMOLD

     

    in Singapore, Indonesia, Thailand, Middle East,

     

    Vietnam and China

  2. Hello,

     

    Can anyone help,

    below was the Script i want to make it the result output from smaller number to big number (5,6,10,15 .), can advise me how to arrange ( short out) the below array numbers .

     

    Note : My result was (10 , 15, 5, 6)

    do not adjust p = Array(w,x,y,z)

     

    Call Main()

    Sub Main()

     

    Dim s(3)

    Dim w

    Dim x

    Dim y

    Dim z

    Dim p

     

    w = 10

    x = 15

    y = 5

    z = 6

     

    p = Array(w,x,y,z)

     

    Dim a

     

    For a = 0 To 3

     

    s(a) = p(a)

    ShowString s(a)

     

     

     

    Next

     

     

    End Sub

     

    Thank you .

     

    Best Regards,

     

    Poh Yew Guan

     

    TECHTOWN Pte Ltd

     

    Distributor for Mastercam® & IMOLD

     

    in Singapore, Indonesia, Thailand, Middle East,

     

    Vietnam and China

  3. Reger Martin,

     

    Thank you for VBS I will send my VBS to you that I was modify from the MC9 example and I was Some question , how to set the below value at my VBS .

     

    SetLevelVisibleByNumber(10) ' poh addin ??

    Bool False ' poh addin ??

     

    Note: Below was mastercam VBS Help example

     

    // set the named level visible by entering its name

     

    Bool SetLevelVisibleByName (

     

    String (Input: name of level)

     

    Bool (Input: True = show/ False = hide)

     

    )

    Thank you

     

    pohyg

  4. Hello Roger Martin,

    Yes you are right data in excel sheet are polar angle and distance .

     

    but I hope can write a VBS to calculate all the point and general out all the points inside the mastercam

    and convert it to a spline.

    Can I use the mastercam command for example the at the VBS to draw the Spline.

    currently I was using Mcam X2 MR1 SP1 and

    this is my interest to learn how to write the VBS for the CAM profile

    and to go one step forward to explore the function of VBS in mastercam.

     

    I had E-mail the example excel data to you

     

    please let me know went you are received .

     

    Thank you

    Best regards

    Pohyg

  5. 1> Yes Roger Martin I need to write some formula to calculate the x and y value for the point .If I can scan the data for excel sheet and write the formula inside VBS to generate the point . Because the cam data on the excel sheet was base on every 0.1 degree angle and given a radius , so i need to use Tan?= o/j or

    COS ? = h/j or sin?= o/h to output the X, y value for the points to create the spline.

    2> Is possible use the mastercam command in VBS to scan and use the formular to output the spline entity

    Thank you

  6. Hello all,

    I am doing a cam profile which base on data given by a excel file format.

    For my intention i hope can write a VBS to read

    all data for the excel file and convert it to a spline inside mastercam.

    Because i can't find spline command inside mastercam VBS help and how to use the mastercam command "create_spline_points" in VBS to scan all the excel file data and output to a spline entity .

    Note: Mastercam X2 open file can read ASCll (.TXT) and convert it to a spline but it need to do few step from excel file to done the job.

    Thank you

    Best Regards

    Pohyg

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