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:

Recommended Posts

I am trying to read point positions on a part from any viewsheet in the same file. I have multiple viewsheets and multiple custom planes. I have my planes associated with my viewsheets so when I switch views my planes and wcs update to that view. What I am wanting is to run a vbs, select points on the screen and write those points to a text file. The trouble I'm having is my x,y,z data is from the world coordinates not the custom wcs. I can analyze any point in any viewsheet and it gives the correct x,y,z locations from my wcs. I've tried to edit the wcs and change the style to incremental from absolute but it defaults back to absolute.  Any help would be appreciated.

Thanks, HollisT

Link to comment
Share on other sites

Okay I am not sure if this is easily implemented using vbscript I would need to take an in depth look at vbs the only ones i know of are

// get the current graphics view number

Integer GetGViewNumber(void)

 

// set the current view to a new number & repaint the screen

Void SetGViewNumber(

            Integer    (Input: new view number)

)

 

// get the current construction plane view number

Integer GetCPlaneNumber(void)

 

// set the current construction plane view to a new number

Void SetCPlaneNumber(

            Integer    (Input: new view number)

)

 

// get the current tool plane view number

Integer GetTPlaneNumber(void)

 

// set the current tool plane view to a new number

Void SetTPlaneNumber(

            Integer    (Input: new view number)

)

 

// get the current  construction plane & tool plane to the graphics view flag

Bool GetCPlaneEqualGView (void)

           

 

// set the current construction plane & tool plane to the graphics view flag

Void SetCPlaneEqualGView (

            Bool       (Input: true to set construction & tool plane equal to graphics view flag)

)

 

, the c-hook sdk has a function that does exactly that which might be less time consuming to set up in this case

also it might be a good idea to repost this Under the developer section of the forum so the experts at CNC will see it      

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