Jump to content

saved view scripts, is it possible?


Recommended Posts

A question for the scripting gurus. I use saved views a lot in my workflow to export patterns to DXF for import into my CNC software. Every design layer has a rectangle to represent a sheet of MDF or plywood, in the same position on every layer (0,0). I save a view of each layer (named cnc 1, cnc 2, cnc 3 and so on). I can have quite a view layers and saved views by the time I'm done processing a project onto the panels. See attached screenshot of a typical view.

 

What I would like is a script that would allow me to save the saved views automatically - not to have to flip to every layer and save the view individually. I would like to select the layers, and the view, and make a saved view for each one, if that makes sense.

 

Is this possible?

 

mid-2015 MacBook Pro, Mojave

VW2021, SP4

InteriorCAD

 

Screen Shot 2021-07-05 at 16.27.59.png

Link to comment

Anything is scriptable (or at least most things are), but it would probably be much easier to just create a Template file with maybe 20 Layers and Saved Views. That would take you less than 30 minutes.

 

To create a script that will reliably do what you are trying to do will be multiple hours (maybe 10s of hours, depending on your scripting skills).

 

What benefit do you see the script giving you and what exactly do you want the script to do besides create a standard Saved View?

Link to comment

Thanks, Pat. I like the suggestion about a template file. The only benefit of the script was just to save time. The only problem with the template file is I move my laptop between home and work and the saved views are different between my monitors. But I'll create the template and try it out.

 

Thanks

 

Link to comment

Also, saved views don’t have to save the page (screen) orientation. You can select your first saved view on either your laptop or descktop, orient the view to your liking; perhaps by selecting the sheet outline and executing cmd+6,  and then all your saved views will be correct regardless of the device on which you are working. 

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