"Explode" a parametric annotation

Use this space to ask how to do whatever you're trying to use SolidWorks to do.
User avatar
Tom G
Posts: 355
Joined: Tue Mar 09, 2021 9:26 am
Answers: 0
Location: Philadelphia, PA area
x 999
x 468

"Explode" a parametric annotation

Unread post by Tom G »

This may be a stupid question, because I think the answer is no.

In a drawing,
Can you "Explode" an annotation linked to a custom property in the component it is attached to, so that the text that was linked now shows (and is editable) and breaks its link to property?

Right now, the only way I can consider to achieve this is to open the component, view its custom properties, copy the text value, return to the drawing, and paste the text into the annotation.
by gupta9665 » Fri Jan 28, 2022 9:24 am
TooTallToby wrote: Tue Jan 25, 2022 4:15 pm This isn't a "great" solution, but you can do this:

1. Make sure VIEW>HIDE/SHOW is set to NOT show annotation link variables (not checked)
2. Double click on the annotation which is linked to a custom property
3. Select the entire note, CTRL+C
4. Go into NOTEPAD. CTRL+V. Select all. CTRL+C
5. Go back into SOLIDWORKS. Double click the linked annotation. Delete the existing note text. CTRL+V
A macro (already posted by @josh ) would be much quick method handy but if you want to do the steps manually, you can shorten them to following:

1. Double click on the annotation which is linked to a custom property (this will select the complete annotation)
2. CTRL+C
3. Right click on the annotation and select "edit in window"
4. In the open window CTRL+V and click OK.
Go to full post
User avatar
Glenn Schroeder
Posts: 1454
Joined: Mon Mar 08, 2021 11:43 am
Answers: 22
Location: southeast Texas
x 1644
x 2053

Re: "Explode" a parametric annotation

Unread post by Glenn Schroeder »

I'm not aware of any way to do that. You can of course pull the end of the leader off the model so it loses the link, and then the text box will display the property text, but you can't edit it (other than deleting it and starting over).
"On the days when I keep my gratitude higher than my expectations, well, I have really good days."

Ray Wylie Hubbard in his song "Mother Blues"
User avatar
TooTallToby
Posts: 88
Joined: Thu Apr 01, 2021 6:46 am
Answers: 0
x 64
x 115

Re: "Explode" a parametric annotation

Unread post by TooTallToby »

This isn't a "great" solution, but you can do this:

1. Make sure VIEW>HIDE/SHOW is set to NOT show annotation link variables (not checked)
2. Double click on the annotation which is linked to a custom property
3. Select the entire note, CTRL+C
4. Go into NOTEPAD. CTRL+V. Select all. CTRL+C
5. Go back into SOLIDWORKS. Double click the linked annotation. Delete the existing note text. CTRL+V

I wouldn't want to do this a million times, but if it's just 1 or 2 notes, this might be a quick way to maintain the existing note formatting, but break the annotation link.

Hopefully there is a better way (would love to see a "Right click - break annotation link" function).
Hope this helps,
Toby
User avatar
Tom G
Posts: 355
Joined: Tue Mar 09, 2021 9:26 am
Answers: 0
Location: Philadelphia, PA area
x 999
x 468

Re: "Explode" a parametric annotation

Unread post by Tom G »

Thanks Glenn and Toby.

I'm quite comfortable by now to use notepad as a format-cleansing text filter for importing a copied text string from a webpage into a drawing annotation. I keep Notepad as a pinned app next to Calculator and Snipping tool, my basic basics that don't run at startup. I had not considered copying it through there, but that is still far easier than: opening component (wait), open properties (wait), select and copy, close, then close without saving and also discarding changes. This is a time saver, Toby. I indicate this here as the correct answer without marking it correct. It is a delightful workaround to me.

To expand on the copy/paste, it also covers a single annotation with multiple properties linked: Description, Brand, & PartNo, all in one go.

I tend to overwrite, break, and explode pretty much anything if it's used and applied this once-here for fair reasons. At least I use an override specific color to denote it (purple before purple was sarcasm). Therefore, I'd also love to have that opportunity to break a link anywhere, and not just in a BOM.
User avatar
josh
Posts: 261
Joined: Thu Mar 11, 2021 1:05 pm
Answers: 11
x 19
x 453

Re: "Explode" a parametric annotation

Unread post by josh »

Is this something you need to do a lot?
Here is a dumb little macro that will do what you're looking for. Just select any note and run it.

Dim swApp As SldWorks.SldWorks
Dim swSelMgr As SldWorks.SelectionMgr
Dim swNote As SldWorks.Note

Sub main()

Set swApp = Application.SldWorks
Set swSelMgr = swApp.ActiveDoc.SelectionManager
If swSelMgr.GetSelectedObjectType3(1, -1) <> swSelNOTES Then
MsgBox "Please select a note and run the macro"
Exit Sub
End If
Set swNote = swSelMgr.GetSelectedObject6(1, -1)
swNote.PropertyLinkedText = swNote.GetText
End Sub
User avatar
gupta9665
Posts: 359
Joined: Thu Mar 11, 2021 10:20 am
Answers: 20
Location: India
x 383
x 415

Re: "Explode" a parametric annotation

Unread post by gupta9665 »

TooTallToby wrote: Tue Jan 25, 2022 4:15 pm This isn't a "great" solution, but you can do this:

1. Make sure VIEW>HIDE/SHOW is set to NOT show annotation link variables (not checked)
2. Double click on the annotation which is linked to a custom property
3. Select the entire note, CTRL+C
4. Go into NOTEPAD. CTRL+V. Select all. CTRL+C
5. Go back into SOLIDWORKS. Double click the linked annotation. Delete the existing note text. CTRL+V
A macro (already posted by @josh ) would be much quick method handy but if you want to do the steps manually, you can shorten them to following:

1. Double click on the annotation which is linked to a custom property (this will select the complete annotation)
2. CTRL+C
3. Right click on the annotation and select "edit in window"
4. In the open window CTRL+V and click OK.
Deepak Gupta
SOLIDWORKS Consultant/Blogger
User avatar
Tom G
Posts: 355
Joined: Tue Mar 09, 2021 9:26 am
Answers: 0
Location: Philadelphia, PA area
x 999
x 468

Re: "Explode" a parametric annotation

Unread post by Tom G »

josh wrote: Thu Jan 27, 2022 7:51 pm Is this something you need to do a lot?
No not often, but when I do it would apply to a series of similar drawings where one project contains an exception.
Post Reply