cancel
Showing results for 
Search instead for 
Did you mean: 

How to place View by using Border co-ordinate ?

Pioneer
Pioneer

Hi,

 

I am using below function to get border size.

 

  theUfSession.Draw.AskViewBorders(V12.Tag, V2_Size)

 

So through this, we can get corner point of view.

 

I want to know is there any command to set view border points  to place it on required position....

 

 

4 REPLIES

Re: How to place View by using Border co-ordinate ?

Esteemed Contributor
Esteemed Contributor

 

Have you tried recording a journal of placing a view on a drawing?

 

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Re: How to place View by using Border co-ordinate ?

Siemens Phenom Siemens Phenom
Siemens Phenom

 

The DraftingView.SetDrawingReferencePoint method is documented as follows:

 

"Sets the view origin at the provided location"

 

There is also a SetOrigin method, which "Moves the given position to the center of the view"

 

I think I would have to play with those a bit to be confident about exactly what they are doing.

Re: How to place View by using Border co-ordinate ?

Phenom
Phenom

Based on the wording of your question, I can't quite tell if you want to move an existing view to a new location or change the view border from "automatic" to "manual rectangle". The answer below assumes you just want to move the view.

 

Add the view to the drawing sheet, check the location of the view border points, do some simple math with the corner point locations vs. the sheet size, then use .MoveView to move the view to the desired position.

Re: How to place View by using Border co-ordinate ?

Pioneer
Pioneer

Hi, 

I tried .SetDrawingReferencePoint and it is equivalent to .MoveView Method.

 

 

As in below image shown, I am able to get the view co-ordinates value for V1 and V2 view.

First I am placing view V1 and then V2.

So I want to set the Value of four corners of  V2 view same as V1 by keeping some distance in X dirction..

 

Capture.JPG