![]() |
¡¾×ªÌû¡¿predefined 3d views
predefined 3d views
predefined 3d views a quick way in autocad to set a view is to choose one of the predefined 3d views. at command line type “–view _top�which sets the view point to top. at command line type “–view _left�which sets the view point to left. how do i perform the same operation if there was a toolbar button “View top�in odamfcappdll? dwgdirect c++ ver 1.13 (dd_vc2003). i have tried by my own but something fails. could someone please tell me how to do? there are two approaches: 1) modify according odgsview and update the view. an example of such approach is cdwgviewer::onrbuttondblclk (file dwgviewer.cpp). the camera properties will be changed, but the changes won't be stored in database (and, consequently, can't be saved to file). 2) modify according oddbviewport\oddbviewtablerecord. these changes are performed in database (so they can be saved to file), but they will influence rendering only when rendering device is re-initialized (setuplayoutviews/setupactivelayoutviews is called). what to choose: (1), (2), both (1) and (2) depends on your task. sincerely yours, george udov |
ËùÓеÄʱ¼ä¾ùΪ±±¾©Ê±¼ä¡£ ÏÖÔÚµÄʱ¼äÊÇ 04:10 PM. |