Jump to content
Developer Wiki and Function Reference Links ×

Worksheet-Function or Script to retrieve the Name of the actual Worksheet?


Recommended Posts

Joshua is correct. And that was discussed when we fought this the last time. 

 

In my opinion, that is too fragile to even use because it will return the name of the frontmost worksheet regardless of where the worksheet is in the stacking order or even if it is open if you Recalculate All.

 

Far safer to manually enter the name into a cell so you don't accidentally get the wrong information.

Link to comment

It could be interesting, but likely not really useful. Considering how many times I typically have to edit a script to get it to run properly, have a palette to type into instead wouldn't really save much time. 

 

There are not very many things you can do in VW in just a single line or 2. Most useful things either need a loop of some kind or at least 5-10 lines of code. For that much work probably better to save as a script than to just enter one off.

 

$0.02

Link to comment
12 hours ago, matteoluigi said:

btw, what do you think of a shell pallette inside vectorworks, so if you really want you can directly enter python or vectorscript-code without having to write a script?

 

@matteoluigi,

   In each of my template files I have placed and saved a blank script file. See pic. Over the years this has saved me hours by not having to create a palette, a script, and enter the basic opening and closing lines. Once your templates have an embedded empty script, all you have to do is open a new file and your script awaits your every command.

 

image.png.fd3c79634724fc286ec92bf7b5b91d90.png

 

Raymond

 

  • Like 4
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...