Jump to content
Developer Wiki and Function Reference Links ×

DoMenuByText


willy

Recommended Posts

I need to automate some menu operations. The 'DoMenu...' function works fine in VectorScript, but it then needs two points or a line drawn to complete the operation. How do I provide this input to VectorScript from within a script rather than sitting and waiting for the cursor to appear and doing it by hand?

DoMenu... is a good idea, but it would seem like a big omission if I can't automate all the required steps of the menu command as well.

[Cool]

Link to comment

Unfortunately you have come across a limitation of Vectorscript. As far as I know your only option is to rewrite a script from scratch, and alter the means of inputing the necessary data. However, there are many menu commands which do have an equivalent Procedure existing in Vectorscript. If you let me know what you're after I may be able to help.

-Jason

Link to comment

Well, my idea was to make an automatically updateable 2-D section of a model by defining the workplane and the line for the section cut and using DoMenuByText("Cut 2D Section) more or less. I have the script that calls DoMenuByText, but it requires user intervention to define the cut. This is similar to an AutoCAD feature that I have always wanted to see in VW.

I'm a big VW fan, since MC 4, but I expect a lot from software so I find limitations frequently. Any ideas of accomplishing this would be appreciated.

[Cool]

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • Create New...