Jump to content
Developer Wiki and Function Reference Links ×

Change multiple viewport rendering styles with 1 Click


Recommended Posts

Hi All

I have a house project file with 49 Sheets. There are 119 viewports in the project, some wireframe, some shaded, some hidden line, some section viewports.

I wish to export the project to PDF for the building consent/permit as black and white, with a subset of the 49 sheets.

I wish to export a full set for the builder, in colour. 

 

I have modelled the entire project, down to nuts and bolts, in 3d, and I'm using the viewports to produce detail drawings at 1 to 5, elevations at 1 to 50 etc.

I have placed the viewports onto classes describing their Background Rendering setting. eg "Viewports-building consent hidden line"

 

I have used the Tools|Custom Modification tool to create a script to select viewports of the same Background Render. Then I manually adjust the render settings.

EditProperties(((T=VIEWPORT) & (C='Viewports-building consent wireframe')));

 

I've looked at the Vectorscript Function Reference but cannot find any function to "deselect 'use textures shaded render'".  Is it possible to edit the background render settings using VS?

Thanks in advance. Apologies for the I have I have I wish I wish.......

 

Mat

459985831_ScreenShot2022-08-17at11_09_25AM.thumb.jpg.2ddb65cb9feee9b7e53ebba038d3c700.jpg

Link to comment

Thanks Julian for answering. I can't do them all in one hit for a couple of reasons;

 

1. A section viewport and a 'normal viewport', if both are selected, and the background render mode is set to shaded, the background render settings are not available.

2. I have 11 hidden line viewports, 11 section viewports, 19 shaded VPs, 7 wireframes. For the full colour set, all except the wireframe can use the same settings so that is easy enough. But for the black and white set, the hidden line viewports I need to set differently from the shaded VP's, then there're 2 types of shaded viewport (section VP and normal VP). 

 

If there was a VS function to select the individual background render settings for each VP, then I'd be able to write a 1-click solution to my scenario.

 

 

Link to comment
  • 6 months later...
On 8/16/2022 at 7:36 PM, Julian_Carr said:

EditOpenGLPrefs() will allow you to set it for the document. But can't you just use Custom Modification command to edit all the viewport > background render settings in one hit?

Mat Caird

 

Did you ever end up with a solution - I stumbled into a CUSTOM MODIFICATION to alter all the Viewport Render settings at once ... It is simple, but it is NOT immediately obvious.  Would love a worksheet where I am able to look at and review / change the Rendering settings and update the drawing vs 

 

When you have time - Thanks

 

Peter

Link to comment

I did as you did, the custom modification tool.

I needed one colourful set of drawings for the builder, and one black and white set for the building consent authority.

The difficulty I had with the CM tool was that my viewports used different background render modes.

So I created classes for the various render modes, assigned the appropriate viewport to that class. 

To keep track of the complexity, I made a quick table in Pages;

2028812668_Screenshot2023-03-16at3_30_32PM.thumb.jpg.97cbf3ef3053a0abdeb38bd645dad809.jpg

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