Submitted by dwang953 on Thu, 06/11/2015 - 09:38
Forums:
I am new to NX and was wondering how I could balloon all of the dimensions and instructions on an engineering drawing and then export a numbered list of them to an Excel file. I need the list for engineers in the Quality department to perform inspections.
re: balloon dimensions
I wrote this code a while back that allows you to add an ID symbol to an existing dimension for reference purposes. I'd love to revisit the code to clean it up a little and add some new features (such as output to Excel). However, due to my current schedule, I don't see that happening in the near future.
However, if you combine it with some other code on the site, you might be able to get what you need. The code in this thread exports the drawing dimensions to Excel. And this code reports the sheet zone of a given dimension, if you are using "zones" in your drawing. Also, this code will tell if the value of a given dimension has been overridden with manual text.
Thank you! In terms of
Thank you! In terms of selecting the data type of dimension (i.e. linear, angular, surface roughness), do you know what syntax I would use in VB?
re: dimension type
Do you mean that you have a bunch of dimensions and want to query them for their type?
If so, you can use TypeOf() or .GetType to report the object type.
Or,
Are you writing an interactive selection function and want to only allow certain types to be selected by the user?
In this case you would have to supply one or more "mask triples" to filter the selection. See:
http://nxjournaling.com/content/using-mask-triples-selectobject-routine