Jump to content
  • 1
Kevin McAllister

Renaming Viewports - Is this really not possible from the Navigation Palette?

Question

Is it really not possible to rename a SLVP from the Viewports tab of the Navigation Palette? I right click and choose edit but there's no field for the name of the viewport. I can edit the name of the drawing associated with the viewport. It seems like the only way to rename a SLVP is to select the viewport individually and rename it in the OIP. Am I missing something?

 

Kevin

  • Like 2

Share this post


Link to post

Recommended Posts

  • 0

I'm trying out this script but I get VS errors?  I copied and pasted the script but when I run it I get 

 

 

Capture.JPG

Share this post


Link to post
  • 0

Hi Grant

 

I know it works.  I use it almost every day.

 

Are you really using 2017 or are you on 2018?  (probably doesn't matter in this case - just tested it on 2017 and it still works).  Make sure you have Vectorscript selected when you paste the script and not Python.

 

Also make sure you are copying all of the script.  If you miss the final semicolon it won't run.

 

 

 

 

Share this post


Link to post
  • 0

🙂. I was pretty sure you would be on 2018.

 

If you take the script from the attached 2017 file does it work for you in 2018?

Share this post


Link to post
  • 0

Hello,

not sure if this is what you're looking for, but in the properties palette there is a small name slot in the bottom right corner if you select a viewport...

Best regards,

JB

Share this post


Link to post
  • 0
57 minutes ago, grant_PD said:

It seems to work for some viewports and not for others.  Not sure why....

 

Not sure if MichaelK's script is the same, but mine will leave some untouched if there's a name conflict (eg. if there's already a viewport with the same name).

 

KM

Share this post


Link to post
  • 0

Kevin

 

I used to have a problem with that.  If you had a page of viewports named Section and somehow 2 of them had the same drawing number.  Or if you had elevations and realized that you North South East and West mixed up and corrected them.  Problems would ensue.

 

I get around this by first naming every viewport as the current date and time, then renaming.  (Thanks, Pat!)

 

The only time I ever see an issue any more is when 2 viewports have the same drawing name and drawing number.

 

Grant, any chance that's what you're seeing?

 

I'd love to take a look at it if you don't mind sharing it with me.

 

 

mk

 

 

  • Like 1

Share this post


Link to post
  • 0

This file has 2 versions of the viewport rename script.  

 

Classic:  renames all the selected viewports

 

New & Improved:  Throws caution to the wind and renames ALL viewports in the drawing.  Go big or go home.

 

 

Viewport Rename Scripts.vwx

  • Like 2

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
Answer this question...

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