Jump to content
michaelk

Simplify Polys

Recommended Posts

I'm writing a script that automates an action that I need to repeat approximately a gazillion times  in a drawing.

 

One of the steps is Modify > Drafting Aids > Simplify Polys… > Maximum Deviation 1"

 

Can't get DoMenuTextByName to call the Simplify Polys dialog, and I'm not seeing a real way to script it.

 

Any advice?

 

MK

Share this post


Link to post

That seems like it would work.

 

What am I misunderstanding about DoMenuTextByName? Or is there just a limitation to that function that doesn't go that deep into the chunks?

 

 

Share this post


Link to post

I don't think DoMenuTextByName actually works on anything in Chunks unless there is a specifically defined chunk.

 

Drafting Aids is not a defined chunk, so I don't think you can get to it.

 

Try creating a new menu with that command at the top level and see if you can get to it from there.

  • Like 1

Share this post


Link to post

Thanks, Pat.  What an elegant idea.  Now that you've said it, it seems blindingly obvious.  But it would never have occurred to me :-)

 

I managed to do 1 gazillion operations with the script I had.  Next time I'm trying that!

 

mk

Share this post


Link to post

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.


 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...