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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Flip projected dwg view 180deg about y axis using weblink or jlink?

RandyJones
19-Tanzanite

Flip projected dwg view 180deg about y axis using weblink or jlink?

I have a case where I have preexisting 3rd angle projected drawing views that need to be 1st angle
projection. I want to correct them using weblink or jlink. For example given the following weblink
code snippet (mostly snarfed from pfcDrawingExamples.js):

var session = pfcGetProESession();
var drawing = session.CurrentModel;

if (drawing.Type != pfcCreate ("pfcModelType").MDL_DRAWING)
   throw new Error (0, "Current model is not a drawing");

var views = drawing.List2DViews();

for(i=0; i<views.count; i++)<br="/>{

   var view = views.Item(i);
   if (view.Name == "right_1")
   {
     //some magic webLink or jlink function to reorient 180 deg about the y axis
     view.flip180AboutYAxis();
   }

}


How would I do this "flip180AboutYAxis()" in weblink or jlink?

Thanks

--
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1

Randy,

In Pro/TOOKIT, I would use a transform. I presume you can do the same.

Bob

Bob Monat
Jerand Technical Services, Inc.
bob@jerand.com
www.jerand.com
1-317-875-6087


Top Tags