named view locations
named view locations
looking at cnamedviewsdlg:

ninitdialog() in the odamfcapp sample, the location of the named view is determined by the call ispaperspaceview() to differentiate between a model space named view and a layout named view(essentially the category), but for paperspace/layout views i want to go little further with the location. i want to know what layout the views are associated with.
i looked though the oddbviewtablerecord class and the oddbabstractviewtablerecord class, but nothing stood out as to where the information would be.
any thoughts of where to extract the data from?
named view is nothing more than a stored set of viewing parameters (with assigned name). the same paper named view can be applied in a number of layouts or in no one.
the same model view can be applied in a number of viewports and/or in model layout.
sergey slezkin
hi sergey,
thanks for the info. i now follow what your saying when i looked at autocad 2004. what was throwing me off is that in autocad 2005 the named views dialog has changed. what used to be the location is now called the category and for location they have the name of the layout/modelspace where the view was created.
also, when setting a named view to be the current view, it will jump to that layout/view specified by the location and category.
thanks again
you are right. in objectarx 2005 new acdbviewtablerecord functions were introduced:
get/set for
category name
layout
isassociatedwithviewport
thumbnail
this functionality is not implemented in dd yet.
this information is stored as xrecords in viewtablerecords xdictionary.
entry names are adsk_xrec_vtrthumbnail and adsk_xrec_vtrviewinfo.
untill get/set functions are implemented in dd you can access this info at low level accessing the xrecords.
thanks for bringing our attention to that issue.
sergey slezkin