macoovacany Posted April 29, 2009 Share Posted April 29, 2009 Hello, Anyone know how to set the layer visibilities on/off for a particular saved view? Timbo Quote Link to comment
Pat Stanford Posted April 29, 2009 Share Posted April 29, 2009 Either set the visibilities before you create the Saved View, or go to the Organization Palette (either from the Tools menu or by double clicking one of the icons at the top of the Navigation Palette). Select the Views tab (5th from left). Select the view you want to edit and click the edit button. Then click the Layers or Class button to set the visibilities for the view. Quote Link to comment
mike m oz Posted April 29, 2009 Share Posted April 29, 2009 METHOD 1: Organisation dialog box - Saved Views tab. - Click on the Visibilities button in the top RH corner. - Select the Saved View you want to edit. - Adjust the visibility status of the Layers and/or Classes as required. - Exit the dialog box by clicking on OK (this will confirm the changes you have made). METHOD 2: Navigation palette - Make the Saved View active. - Change the Layer and/or Class visibilities to how you require them. - Switch to the Saved View tab. - Right click on the Saved View name and select Redefine. METHOD 3: Enter Edit mode from Tool Bar - Make the Saved View active. - Click on the Saved View icon on the Tool Bar and select Edit. - Proceed as for Method 1 above. Quote Link to comment
macoovacany Posted April 30, 2009 Author Share Posted April 30, 2009 Sorry, How to set the visibilities using vectorscript. Tim {Layers : A1, A2, A3, A4, etc... B1, B2, B3, B4, etc... C1,...etc Titleblock, A Notes, B Notes, C Notes, etc... View: Layers A1 : A1, TitleBlock, A Notes A2 : A2, TitleBlock, A Notes etc C3 : C3, TitleBlock, C Notes} { type stuff ommitted... } n := 11; {actually... iterates through the layers, parse the name of each to determine the last 'A' layer} {create new layer} layer(concat('A', nums2str(0,n))); {create new view} Vsave(concat('A', nums2str(0,n))); {CODE TO SET THE LAYER VISIBILITIES...} .... Thanks in advance. Quote Link to comment
Pat Stanford Posted April 30, 2009 Share Posted April 30, 2009 The Code to Set the Layer Visibilities needs to go above the VSave command. The commands are ShowLayer, HideLayer, GreyLayer. They only work with the active layer, so you have to set the layer you want to change to active with the Layer command. Something like: Layer('Design Layer-1'); HideLayer; Layer('Design Layer-2'); GreyLayer; Layer('First Floor'; ShowLayer; Quote Link to comment
MaxStudio Posted April 30, 2009 Share Posted April 30, 2009 This is partial code that deals with creating a saved view. { BEGIN VIEW SETUP: Note last layer will be Active Layer } V1:=' C Plan'; V2:=' P/T Plan'; V3:=' RC Plan'; View01:=Concat(Y1,V1); View02:=Concat(Y1,V2); View03:=Concat(Y1,V3); { CONSTRUCTION PLAN BEGIN } Layer(X1); ShowLayer; Layer(X2); HideLayer; Layer(X3); ShowLayer; Layer(X5); ShowLayer; Layer(X6); HideLayer; Layer(X7); HideLayer; Layer(X8); ShowLayer; { Legend } Layer('Material Legend'); ShowLayer; Layer('P/T Legend'); HideLayer; Layer('RCP Legend'); HideLayer; { Active Layer } Layer(X4); ShowLayer; { Set View } SetVCenter(0,0); SetZoom(57); SetLayerOptions(5); { Save View } VSave(View01); Quote Link to comment
macoovacany Posted May 1, 2009 Author Share Posted May 1, 2009 Thanks. I'll check it out in the next day or two. Timbo Quote Link to comment
Recommended Posts
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.