This is so specific I'm not sure you'd find something that would accomplish it 100%. Having said that, I don't think this would take you a lot of time to write a macro for it. Simply traverse all views, then for each view traverse all dimensions, select each dimension at a time then insert a note. By default, SOLIDWOKS will insert notes at the 10 o'clock position of the selected entity.
something like this?
i am actually in the process of completing this project, however it is not a simple implementation
what i would suggest to you is this
loop through all of the display dimensions in all views in all sheets
for each DisplayDimension that you want to add a balloon to call this function below
For each Display Dimension Store this
Dim DimBalloonTxt as string
dimballoontxt = getdisplaydimensionText
DimBalloonTxt = DimBalloonTxt & "|" & BalloonNoteAssigned
later you can split this on your export to excel
Public Function GetDisplayDimensionDisplayText() As String
Dim Txts() As String = GetDisplayDimensionDisplayTexts()
Dim Txt As String = ""
For i = 0 To UBound(Txts)
If Len(Trim(Txts(i))) > 0 Then
If Len(Trim(Txt)) = 0 Then
Txt = Txts(i)
Txt = Txt & vbCrLf & Txts(i)
'VBCRLF is the same as Chr(13) + Chr(10) i believe
Public Function GetDisplayDimensionDisplayText as string()
Dim RetTxt(3) As String
RetTxt(1) = DispDim.GetText(swDimensionTextParts_e.swDimensionTextCalloutAbove)
RetTxt(2) = DispDim.GetText(swDimensionTextParts_e.swDimensionTextCalloutBelow)
RetTxt(0) = DispDim.GetText(swDimensionTextParts_e.swDimensionTextPrefix)
RetTxt(3) = DispDim.GetText(swDimensionTextParts_e.swDimensionTextSuffix)
GetDisplayDimensionDisplayTexts = RetTxt
Function AddBalloon(byval SwDispDim as displaydimension,byval BalloonTxtID as string) as boolean
'Create the Coded Text for solidworks to create the balloon
'you could use the solidworks built in Balloons but they only go to 99
'<font size =2 color=0x000000ff> Makes the text Red
'<font size =2 color=0x00000000> Makes the Text Black Again
'<border type=1 size=0 padding=0>" This is the circle boarder around the Balloon
if you want the color a different color then use this
Dim BalloonTxt as string = "<font size =2 color=0x000000ff><border type=1 size=0 padding=0>" & BalloonTxtID & "</border><font size =3 color=0x00000000>
if you want it the same color as the display Dimension Text then use this
<border type=1 size=0 padding=0>" & BalloonTxtID & "</border>
if you want the balloon smaller then this
<FONT SIZE=2><border type=1 size=0 padding=0>" & BalloonTxtID & "</border><FONT SIZE=3"
'use the one below that looks best to you
To export to excel you will need to store all of the DimensionValues and BalloonIDs as something
Dim DimensionBalloon as string
then the export to excel
This does look helpful, however we have some specific situations... now that I am spending the time thinking about what our drafters are going through, this project might be more complicated than what I am prepared for.
Considering I still have some stuff to learn with VBA, I probably won't be digging into this code or trying to implement until next week. However, I am marking it as the "correct answer" because I suspect I won't be getting a more thorough response than this.
Thanks for your time,
Please forgive my ignorance, I don't understand the reasoning for placing a balloon on the smart dimensions. You mention not using BOMs so I wonder if the balloon is for part identification, but tagging it to the dim would not do that.
We do it here, however we do it at the PDF file level with a program called VIPI.
It is an aerospace thing generally (as far as I know). Basically it is a number designation for a particular dimension because we need to report out for each and every dimension for the Aerospace customers. The balloon helps keep track of what dimension is being reported on..
Especially useful for a print with 5000-8000 dimensions!
You mean someone actually uses the prints you make? What a novel idea!
That does make sense.
Correct, we are in the aerospace industry. We use bubbles to help our inspectors keep track of, and record actuals on our inspection articles. We will also be using them soon for data collection and analysis.
We use VIPI on a daily basis, very good software.
And ballooning is just a tip of the iceberg what this software can do.
Tateos Tvapanyan wrote:
Why you don't give a try on SolidWorks Inspection
YES! That was what I was looking for to share, but I couldn't find it! Good find Tateos!
We had our VAR come here to trail it with us, but we were too deep into our process to change at the time. It would have cost too much money to flip over. Plus, we have to balloon our customer prints as well, which only come to us via PDF files and using Solidworks inspection would have meant laboriously recreating the PDF print in Solidworks.
If you think that it might be a good fit, Call your VAR and ask them to give you a demo.
Dan Pihlaja wrote:
Plus, we have to balloon our customer prints as well, which only come to us via PDF files and using Solidworks inspection would have meant laboriously recreating the PDF print in Solidworks.
You do not need to redraw in SW as Inspection can also read PDF/Tiff files
I'm not sure if this is available in earlier versions but yes for latest version. I would suggest you to take another look at it.