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
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...
=> 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.
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
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
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
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.
Dimension.SetText swDimensionTextPrefix, "[" & Format(NumValue)& "]"
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
strOldPrefix = Dimension.GetText ... (I don't know the syntax forGetText offhand. Check the API help.)
Dimension.SetText swDimensionTextPrefix, "[" & Format(NumValue)& "]" & strOldPrefix
Does anyoe have the macro that is discussed in the post?
Thanks
Chris Tellers
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
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.
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.
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?
Would you please post the macro?
Tahnks
Paul
See this thread....
https://forum.solidworks.com/thread/67720?tstart=0
Cheers,
Anna
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.
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.
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.