cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The PTC Community email address has changed to community-mailer@ptc.com. Learn more.

Selecting a drawing view and/or changing the orientation of a drawing view

ptc-2245085
1-Newbie

Selecting a drawing view and/or changing the orientation of a drawing view

I am trying to find a pure J-Link and totally automatic solution for the process of selecting a drawing view and changing its orientation. The process can be done easily enough by having the user select a drawing view and then having J-Link run a macro to change the orientation, but I'm doing this as part of a longer process that I would prefer to not have to interupt to get input from the user.

Here is the code I am trying right now to select the drawing view:

SelectionOptions selOpts = pfcSelect.SelectionOptions_Create("dwg_view ");
selOpts.SetMaxNumSels(new Integer(1));
session.Select(selOpts, null);

This code throws a XToolkitPickAbove exception, for which I can find no useful documentation.

I would prefer to just bypass this entire selection process and tell Pro/E directly to reorient the drawing view, but there doesn't seem to be any way to do that.

Let me know if you have any ideas.

0 REPLIES 0
Top Tags