×
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

Retrieve all the dimension objects in drawing using NXOpen ?

Retrieve all the dimension objects in drawing using NXOpen ?

Retrieve all the dimension objects in drawing using NXOpen ?

(OP)
Hi Everyone,

Can someone please let me know how can i retrieve all the existing dimension data/values in my drawings using NXOpen(For ex : Annotation Origin , Associativity Objects Name , Type of dimension , Associated view name, Append Text if any etc)

Thanks,
Amitabh

RE: Retrieve all the dimension objects in drawing using NXOpen ?

Each part has a dimension collection that returns all of the dimension objects.

CODE

Dim partDimensions() As Annotations.Dimension
partDimensions = workPart.Dimensions.ToArray 

Look up the Annotation and Dimension classes in the help file. You can get most (if not all) of the information you are looking for here.

www.nxjournaling.com

RE: Retrieve all the dimension objects in drawing using NXOpen ?

(OP)
Thanks Cowski for responding back.
I have figured out how to retrieve most of the data using your code , but am struggling to retrieve the user defined symbol related data as i do not see any user defined symbol collection. Kindly help.

Regards,
Amitabh

RE: Retrieve all the dimension objects in drawing using NXOpen ?

CODE -->

workpart.Annotations.CustomSymbols.ToArray 

www.nxjournaling.com

RE: Retrieve all the dimension objects in drawing using NXOpen ?

(OP)
Hello Cowski ,

I tried your approach but as the symbols in my drawing are all user defined and not ug defualt custom symbols i am not able to retrieve them using the CustomSymbols collection.
I did not find a user defined symbol collection in the help file.
Please help.

Regards,
Amitabh

RE: Retrieve all the dimension objects in drawing using NXOpen ?

If you have set a Name to each of your user defined symbol than it's pretty easy to retrieve them...

RE: Retrieve all the dimension objects in drawing using NXOpen ?

(OP)
Can you please let me know how i can retrive. I have specific names for each symbol and also names given to the symbol font files (.sbf)

Thanks,
Amitabh

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