Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

  • Congratulations JStephen on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

View Type Throigh API

  • Thread starter Thread starter NirVid
  • Start date Start date
N

NirVid

Guest
Hello,

Is there any way, using API, to identify the view type (General / Projected etc.). The View2D object does not seem to provide a way to do this.

May be there is some work-round.

In general, how can you access the information that is displayed when you click on a view and click Drawing View (Viewinfo.inf)
 
ProDrawingViewType get will get you the data you want.






#include <ProDrawingView.h>

ProError
ProDrawingViewTypeGet
(


ProDrawing drawing



/* (In)


Drawing handle


*/


ProView view



/* (In)


The view handle


*/


ProViewType* type



/* (Out)


view type (General, projection, detailed, auxiliary, revolved, copy and align, of flat ply)


*/

)
 
Thank you williaps for the explanation.



But I am unable to find anything equivalent in JLink / VB.



Is the ProView object available only in ProToolKit and not in JLink / VB?
 
Hi Patrick,am a bit concerned about the header file you
have mentioned - #include <ProDrawingView.h>

Not able to find it in my machine at -
..\proeWildfire 4.0\protoolkit\includes

Currently am using Proe Wildfire 4.0 and Visual Studio
2005 for Pro/Toolkit.
Am using the code in the below format -
ProDrawingViewTypeGet(drawing, views[view], &viewtype)

But since it is unable to find the above mentioned header
file,it is throwingup the below error -
"SyncrhonousApplication.cpp(59) : error C3861:
'ProViewTypeGet': identifier not found"

Kindly help.
Thanks heaps!
 
ProDrawingViewTypeGet() is introduced in WF 5.0 , so will not be available in WF 4.0.
 
Ah thanx..dat helps..i doubted it!:)
 
Sorry about that. I should have specified the version from which I got the documentation.
 
Nevertheless,thanks williaps for the clue!:)
 

Part and Inventory Search

Sponsor

Back
Top