Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Shading or Wireframe mode?

RomanKhvostikov

New member
Hi!


How dow I know that "Shading" or "Wireframe" model display moded is active via Pro/toolkit?


I failed to find out it in protoolkit help


Thanks in advance!
 
I also did not find a function to do this. Why exactly do you need to know this in your application? What is the context?
 
Well


Our addin has feature to save current image - we extract model geometry, render it onto bitmap and then render our own graphics. One of the problems is that to know the modethe model is displayed - shaded and/or with edges.
 
Roman,


What you can do is read the config.pro option. You can do this by calling ProConfigoptGet(). I think the name parameter would be "display_mode" and the option value will tell you what display mode the model is currently in. That is as close as I can get ya.
 
Actually it is not recommended to use MACROs ina Pro/TOOLKIT application. If you can avoid them you should. This will ensure the stability of your program when the UI changes.
 
Pro/TK discourage to use macro If the Pro/TK API for the same exists ...


Any anyways, 99% chances are that the very widely used proven commands dont change ... atleast for wireframe use case ...


However, U need to verify with a release version IF U use macro ;)
 

Sponsor

Back
Top