Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Retrieve all the dimension objects in drawing using NXOpen ?

Status
Not open for further replies.

biw01

Automotive
Dec 31, 2011
152
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
 
Replies continue below

Recommended for you

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
 
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
 
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
 
If you have set a Name to each of your user defined symbol than it's pretty easy to retrieve them...
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor