Macro Language Reference > Macros > Window > tdview
  
tdview
Description
Controls the use of alternate views and any associated view control streams.
 
Example 313. Change views
In this example, view 1 is enabled and displayed on the screen, with the view control stream remaining unchanged:
tdview 1,1,0
Syntax
tdview view num:n? format:o? hide:o? ctrl stream:s?
tdview
[no parameter]
Invoke the View Settings dialog box.
view num
The number of the view that should be affected by these parameters: 0 being the main base view and 1 - 4 being the alternate views.
format
0
Disable the specified view.
1
Enable and format the specified view.
hide
0
Display the specified view.
1
Hide the specified view.
ctrl stream
The alternate view control stream to be used for this view
Additional Information
A document only contains one copy of each text/style/reference stream, but PTC ALD formats them multiple times, usually in different ways. Any changes made to a stream in one view will automatically be reflected in any other view where that stream is formatted. By contrast, multiple copies of a page layout (frames) are stored, one for each enabled view. An alternate view's frames can be manipulated independently of the view they were originally copied from.
An alternate view layout can be regenerated at any time with the Change Status of Page(s) dialog box, the tdpstat macro or the Page > Change Page Status menu option. All manual edits to the layout will be lost if alternate view layouts are generated via these methods.
 
You will usually need to regenerate alternate view layouts if you add or change commands in the control stream which are supposed to affect the initial generation of the layout.
An alternate view is managed from an alternate view control stream - a text stream containing a list of special alternate view commands. All alternate view settings have defaults that will initially produce a view that is identical to the main view. Commands have to be added to the control stream to change the view.
When changing the control stream, you must select Regenerate with the macro tdpstat so that it is taken into account, but all manual changes to the markup will be lost.
Related Links