Dimensions Numbering of Critical Dims.

Subject: NUMBERING THE DIMENSIONSINDRAWINGS

 

Solidworks Drawing Dimension numbering

Hello everybody, I am a young Torontobasedmechanical designer working for a casting company. I am tryingtofind information on how to number critical dimensions inanautomated fashion. Ideally I would like an option that I canchooseseveral dimensions on a drawing, and they would automaticallybenumbered 1 to 30...etc., and when one is deleted, the number isnotreused. I would be using this for our foundry to be able toeasilyconvey the message of what critical dimension they aretalkingabout over the phone, and to use a list of the dimension #'sforinspection documentation. We are currently numbering themwith'notes' individually. Aside from the labour, another problemwithour current form is that the notes aren't attached tothedimensions, as that is far too much work for us SW guys, andthatwhen a dimension is moved, you have to manually move the notealongwith it. We are currently using 2007, but will probably beupdatingto 2008.

 

Any suggestions would be appreciated.Thanksfor any help to a newbie like me,

 

Tony-Ontario

Toronto, Ontario

SolidworksDrawings And Detailing
Comments 25
SF
SF 2007-10-04
I use Numbered' Dim's too. Man that would be great if itwasautomated.. Lotta my drawings have 100+ dim numbers, so thetimesavings would be significant. For me, I make a Note set toDiamondoutline, with a digit inside.. Saved that as a favorite.When i goto number the dims, i place the first one, and luckily thenotefeature works in line. Place one, type the number, place nextone,type number, repeat... Ayhow, I'd love to see thisautomated..
RJ
RJ 2007-10-04
Only thing I can think of is display the dimension names, butyou have to display all or none (i think)

if you go into the dimension properties you can name them to 1,2,3etc then under tools, options, generl, show dimension names.

sounds like you need a macro...
SF
SF 2007-10-04
Tony,
=> As others have suggested, you could go to Tools - Options -System Options, you'l find a setting for "Show dimension names".
Of course, this requires some manual intervention for yourparticular numbering scheme.
=> You could use an "Inspection Symbol" but this is symboliconly, no numbering.
=> The only other idea would be to use a Design Table to capturethe critical dimensions in your products. Using this method, theExcel file can posted on your drawings be saved out as a separatedocument or linked for your inspection department to use.
MA
MA 2007-10-05
It won't give you numbers that automatically update, but thismacrowill at least automate the numbering process somewhat.
TC
TC 2007-10-08
You can group dims and notes.
SF
SF 2007-10-08
Here is how i need Dim Numbers.. (The numbers in diamonds)Each dimgets it's own number.
MA
MA 2007-10-09
I made some changes.  Try it now.
SF
SF 2007-10-09
That's a useful macro,

Being new to SolidWorks, it's good to attend the SolidWorks UserGroup there's one on October 16 for Toronto.

You can find out more about it athttp://www.swugn.org/pages/find/directory.html
SF
SF 2007-12-13
Hi

Is there no way to make the numbers appear in the dimension textinstead of just an annotation in the proximity of the dimension ?This way the numbers would follow the dimensions when you're movingthem around at a revision.

-------------------------
Design Engineer
TEMA
Sweden
MA
MA 2007-12-13
Yes, you should be able to do that using the DisplayDimension.SetText method. However, you can't insert any symbols that don't have a text equivalent. For example, a triangle note with a 1 inside would be .
SF
SF 2007-12-14
Thanks for your reply.

I've been trying to apply it to your macro above but with nosuccess...

Unfortunately I'm not that good at programming macro's... Whatwould the code look like to make the numbers appear like the imageattached above ?

-------------------------
Design Engineer
TEMA
Sweden

BO
BO 2007-12-14
Those are the bexact symbols that we use.
It took me a litte to find this when we 1st started using solidworks.
Use the attached file to overwriet your gtol file.
The only thing I added to this file is the Critical Dimension symbols.
You'll also find attache a copy of our "favorite" note format which, if applied, will change the font to .156 high, bold and add a plus limit tolerance of .010 (by default)
No macro required!
When creating a dimension either use the favorite (which will attach the symbol) or do it manually from the window:
select select the critical dimension symbol from the symbol library pull down.
MA
MA 2007-12-14
Here's an example of DisplayDimension.SetText. I encourageyou to read the API help.

Dimension.SetText swDimensionTextPrefix, "[" & Format(NumValue)& "]"
SF
SF 2007-12-17
Hi and tx all who have been replying to my question.

The code you gave me solved almost everything. The numbers come upat the right place, but unfortunately it removes the text that wasin front of the dimension, a.e. R0.7max -> [1] 0.7max.

This is although a minor trouble since we don't have many of thosein our drawings.

Thanks once again.

-------------------------
Design Engineer
TEMA
Sweden
MA
MA 2007-12-17
You could try getting the dimension prefix first and thenadding the number in front of that, instead of replacing the entireprefix.

strOldPrefix = Dimension.GetText ... (I don't know the syntax forGetText offhand. Check the API help.)
Dimension.SetText swDimensionTextPrefix, "[" & Format(NumValue)& "]" & strOldPrefix
CT
CT 2009-07-23

Does anyoe have the macro that is discussed in the post?

Thanks

Chris Tellers

SF
SF 2012-05-03

The way I handled this is by attaching "Datum Features" to my critical dimension and features. It attaches sequential letters to the feature by default. They automatically increase in letter as you add new ones. It's not quite automatic but it is pretty quick. It was the best option I could find for drawings with a small number of critical dimensions (10 - 20 would be OK). In the drawing select "Datum Feature" from the "Annotations" tab. It attaches directly to dimensions or to features.

Jesse

SF
SF 2013-05-07

Hey there, I know this is an old post however I am searching for a way to sequentially number dimensions for inspection purposes. Have you found a way to do this? It sounds like you were lookiing for exactly what I am looking for. Any feedback would be appretiated.

JS
JS 2013-05-08

I found a Macro on the internet that does add a number within a box or circle for each coresponding dimension on your detail drawing.   I don't know who the original author is for the Macro but I modified it slightly.    When the macro runs it generates a number (Flag ID) in a box or circle next to each dimension.   Then it automatically transfers each Flag ID number and dimension into a Excel speadsheet.

For our company needs we didn't need the tolerance callouts that was on the original so I moved that column to the far right so it is on a second page that I hide and not print for our QC department

I have no true knowledge of creating Macros but I just used what was on the original Macro and copied and modified the syntax from other lines.

I would be happy to share the Solidworks Macro that I modified and the Excel speadsheet that works with it.  I am not sure if it is ok to post the files here.  

SF
SF 2013-05-13

Jim,

Beleive it or not, I ran across the same macro. I have tested it, and it actually works great. THe only thing that it does not do that I wish it did, was continue the numbering on sheet 2, 3, 4, etc.....It only does one sheet at a time, and then resets to number 1 on the next sheet. Have you by any chance found a way around this?

PR
PR 2013-05-13

Would you please post the macro?

Tahnks

Paul

AW
AW 2013-05-13
JS
JS 2013-05-13

I modified the Macro to suit our company's needs.

Here is a snapshot of the Excel spread sheet that I created for our company.  The flag I.D. and Nominal values are filled in by the macro.    The Dimension name, dimension Tolerance and fit class are  also filled in by the macro but they show up in columns beyond the Notes column.   As we don't have a need for those columns I run the macro and hide those columns when I print the document.   I could just delete that part of the macro but it may be used in the future.  Column's 3 thru 10 are filled in by our engineering and inspection departments.    The column named Inspection Method has a drop down menu showing the various ways of measuring (Calipers, Depth Micrometer, ring gage, etc.) that could be used for inspection purposes.  

I am not sure how to add the macro folder that contains the 3 files to the forum or the Excel document that works in conjunction with the Macro.

SF
SF 2013-05-17

Jim,

To add files to a post, click on "Use advanced editor" in the upper right corner of the reply. You can zip all of the files together and then add the zip file.

Jerry S.

JS
JS 2013-05-17

I have 3 zipped files in the folder.  

One is the Macro that someone created to add a number to all dimensions on a solidworks drawing which I modified slightly.

other is the Excel spreadsheet form I created to work with the Solidworks macro

and the last one is a Word document that shows instructions on how to link the Solidworks macro to the excel spread sheet form.   The word doc also explains the modififications that I did to the macro.