×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

NXOpen: Get size of displayed objects

NXOpen: Get size of displayed objects

NXOpen: Get size of displayed objects

(OP)
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!

RE: NXOpen: Get size of displayed objects

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: JOURNAL HELP TO EXPORT VIEWS TO PDF; 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

RE: NXOpen: Get size of displayed objects

(OP)
cowski,

Thanks! That is exactly what I was looking for.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources