cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Border info of a drafting view

Valued Contributor
Valued Contributor

Hello All,

 

Is there any posibility to get border info(ex: height and width) of a drafting view?

In information window it shows only center location of the border.

 

Please help.

 

Regards,

Abhi

5 REPLIES

Re: Getting Border info of a drafting view

Pioneer
Pioneer

Hi,

When you say Height and Width of border, do you perhaps mean the Height and Width of the drawing sheet? What is the interactive command you are using that gives the center location of a drawing border?

My company still uses patterns for our borders so perhaps the new border tool has additional features (such as size) which I'm not familiar with. There are sample .NET programs in UGAnswer for obtaining the drawing sheet size if that is indeed what you are after.

 

Regards,

Geoff Donohoo

NX10.0.3.5 & TC 10.1.4.2
Dell T3600 32Gb Ram, Nvidia Quadro 4000
Windows 7

Re: Getting Border info of a drafting view

Valued Contributor
Valued Contributor

nt UF_DRAW_ask_view_borders
(

const tag_t view_tag,
double view_borders [ 4 ]

)

 

Hope this Helps

 

Regards

Balakrishnan M

Re: Getting Border info of a drafting view

Valued Contributor
Valued Contributor

Hi @G_Donohoo

Thanks for your reply.

But you got me wrong. I place a base view of the model which exists in modelling.

When you place a base view or projected view in drafting sheet it shows a border. I want height and width of that border.

I have attached a image to give you more clarity.

In that image you see a borer of the view in yellow color.

 

Thank you.

Re: Getting Border info of a drafting view

Valued Contributor
Valued Contributor

int UF_DRAW_ask_view_borders(const tag_t view_tag,double view_borders [ 4 ])

 

This view_borders [ 4 ] gives xmin, ymin, xmax and ymax

 

Width = xmax -xmin

Height = ymax -ymin

 

Thanks & Regards

Balakrishnan M

Re: Getting Border info of a drafting view

Valued Contributor
Valued Contributor

Hi @BalakrishnanM

 

Thank you very much.This is exactly what I wanted.

 

Regards,

Abhi