Balloons remember their standard style from the moment of individual placement

Balloons remember their standard style from the moment of individual placement

mr_ensing
Advocate Advocate
586 Views
6 Replies
Message 1 of 7

Balloons remember their standard style from the moment of individual placement

mr_ensing
Advocate
Advocate

As the title states, a balloon seems to 'remember' the active style from the moment it is placed. This is weird and i cannot find the property in which this is stored.


To make it more complicated, it's not even the balloon style that is 'remembered', but the Standard Style that was active at placement. And if that Standard Style (wich no longer needs to be active) is changed,

My case, an existing drawing, some styles have changed so i updated all styles from the style library.

 

mr_ensing_0-1589541569065.png

 

So first, with Standard_1 active a balloon is placed.

Then, with Standard_2 active a second balloon is placed.

Then with either (or a third) standard activated, both balloons are selected and are set to By Standard as following:

 

mr_ensing_1-1589542010205.png

 

The result is (as is visible in the above image) that both balloons revert to their styles as they where placed.

And if Standard_2 is changed after the fact, the balloon style changes accordingly.

 

I can fix all balloons with the VBA code below, but when i select any balloon and set it to By Standard as before, it changes back to it's original style.

 

So at last my question, where is this property stored? I guess it must be somewhere in the Balloon object, but i can't find it.

Sub FixBalloonStyle()
    'drawing assumed
    Dim iDoc As DrawingDocument
    Set iDoc = ThisApplication.ActiveDocument
    'find active style
    Dim balloonStyle As Style
    Set balloonStyle = iDoc.StylesManager.ActiveStandardStyle.ActiveObjectDefaults.balloonStyle
    'cycle through sheets and balloons
    Dim oSheet As sheet
    For Each oSheet In iDoc.Sheets
        Dim oBalloon As Balloon
        For Each oBalloon In oSheet.Balloons
            'force balloon style as per settings
            oBalloon.Style = balloonStyle
        Next oBalloon
    Next oSheet
End Sub

 

Balloon object:

mr_ensing_2-1589542894709.png

 

 

0 Likes
587 Views
6 Replies
Replies (6)
Message 2 of 7

WCrihfield
Mentor
Mentor

Look here:

Manage tab / Styles Editor/ select your active Standard / click Object Defaults tab.

Check which ObjectDefaults is active in the "Active Object Defaults" drop-down list, just under the tab at the top.

If both of your Standards are using the same Active Object Defaults, they will both be the same in all of those aspects.

I usually make sure each Standard is using a different ObjectDefaults (from the list on the far left).

If all your Standards are using different ObjectDefaults here, next select that Object Defaults item from the list of them on the far left of the Styles Editor dialog.  Within its settings on the right, make sure the BalloonStyle you want is set within this ObjectDefault.  Then right click on the ObjectDefault item on the far left list again, and select "Save To Style Library".  Repeat for all other ObjectDefaults.  Then right click on the Standards, and select "Save To Style Library".  Now any pre-existing documents (especially the Template file) will have to do a Document Update, then Save.

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 7

mr_ensing
Advocate
Advocate

I did exactly what you describe, but yesterday. To fix some style conflicts in out template. That is fixed now.

 

So i have 3 Standards, each with it's own Object Defaults, and 2 different Balloon styles between them. 

 

My problems are with pre-existing drawings that i am trying to update to the newest styles.

0 Likes
Message 4 of 7

WCrihfield
Mentor
Mentor

OK.

Within each old drawing:

  • Click Update (on the Manage tab / Styles and Standards panel)
    • Then click 'Yes to All' button.
    • Then 'OK' button.
  • Go to Tools tab / Document Settings / Standard tab / change the Standard to your new one, then click 'OK', or 'Apply'.
  • On the quick access toolbar, click the drop-down arrow on the Selection Preferences tool.
    • Click "Edit Select Filters..."
    • Click the "Select None" button (at the bottom)
    • Check the box next to Balloon, then click OK
  • Window select the whole drawing sheet, to select all balloons.
  • On Annotate tab / Format panel / choose your new balloon style

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 5 of 7

WCrihfield
Mentor
Mentor

@mr_ensing 

Or, in your old drawings, you may need to open the Styles Editor and choose "All Styles" from the list on the top right filter, then on the left list of styles, right click on the new styles, and click "Save In Document", to make them available to that document, first.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 6 of 7

mr_ensing
Advocate
Advocate

I'll go through it step by step Monday. But I don't see anything I haven't tried already.

 

Thanks.

0 Likes
Message 7 of 7

mr_ensing
Advocate
Advocate

@WCrihfield wrote:

OK.

Within each old drawing:

  • Click Update (on the Manage tab / Styles and Standards panel)
    • Then click 'Yes to All' button.
    • Then 'OK' button.
  • Go to Tools tab / Document Settings / Standard tab / change the Standard to your new one, then click 'OK', or 'Apply'.
  • On the quick access toolbar, click the drop-down arrow on the Selection Preferences tool.
    • Click "Edit Select Filters..."
    • Click the "Select None" button (at the bottom)
    • Check the box next to Balloon, then click OK
  • Window select the whole drawing sheet, to select all balloons.
  • On Annotate tab / Format panel / choose your new balloon style

Yep, I tried it al agian, but no result.

 


@WCrihfield wrote:

@mr_ensing 

Or, in your old drawings, you may need to open the Styles Editor and choose "All Styles" from the list on the top right filter, then on the left list of styles, right click on the new styles, and click "Save In Document", to make them available to that document, first.


Same.

0 Likes