Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

NXOpen: Get size of displayed objects 1

Status
Not open for further replies.

ScottWerkema

Automotive
Joined
May 25, 2011
Messages
4
Location
US
Question:
Is anyone aware of a way to get the overall size of displayed objects? I have tried using ufs.Modl.AskBoundingBoxExact() but this only works for a single object. I need to find the dimensions of all objects displayed.

Additional Information:
I am writing a User Function to automate the creation of a drafting sheet with a template. The sheet size is fixed at 8.5in X 11in. On this sheet is a TOP base view. The problem is the view doesn't always fit on the sheet and I need to automate determining the scale of the base view. So I need to know the overall dimensions / size of the objects in the view (objects in the view are visible objects in modeling) or the size the view will be when placed.

Thanks!
 
I wrote some code a while back that placed a view on a sheet and scaled the view to fit, perhaps it will be a starting point for you. Check out thread561-322064; search in the code for the line: "'place the view in the center of the sheet", the bits of interest start around there.

www.nxjournaling.com
 
cowski,

Thanks! That is exactly what I was looking for.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top