In the view attributes, we can set the display style(such as "smooth", "wire frame", "hidden line", "filled hidden line", etc).
How can I set these styles in the program? Thanks.
spike: In the view attributes, we can set the display style(such as "smooth", "wire frame", "hidden line", "filled hidden line", etc). How can I set these styles in the program?
How about View.RenderMode?
Regards, Jon Summers LA Solutions
Thanks a lot, Jon. That's exactly what I want to get.
It took me a lot of time to look for it. I tried to search by the keyword "display".
Jeff,
But, unless I am doing something wrong, this only brings up a tool settings box, correct?
You can use a pure key-in string for some of the more basic renders.
i.e. change view hidden and change view smooth.
Have you found a way to do a full key-in for newer view displays such as Illustration, or transparent?
While it is not VBA or a keyin you can do this from the C++ MicroStationAPI:
extern "C" DLLEXPORT void ViewDeco_viewDisplayMode
(
char* unparsed
)
{
WString str;
str = WString(unparsed);
int numOfStyles = ViewDeco_viewDisplayModeList();
//change for view 1 only...example code....
IViewManager::GetManager().ApplyDisplayStyleToView(0,str.c_str(),true,true);
}
This could be put into an application for use by VBA.
marka
mark anderson [Bentley]
Visit me at https://communities.bentley.com/communities/other_communities/bentley_innovation/default.aspx