×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Assembly Ballons - How does it number them?

Assembly Ballons - How does it number them?

Assembly Ballons - How does it number them?

(OP)
When ballooning an assembly, it seems SW balloons them in the order they were inserted into the assembly, starting from 1.

Is this info stored anywhere? How does it know what was inserted first?  

It probably just goes down the feature tree, and assigns an incremental value for each unique part. Is this correct?

I am trying to link the balloon number with an external db, and haven't quite grasped how to do it.

Any thoughts or comments would be appreciated.

phreaq
Has anyone seen my brain today? (^_^)
www.phreaq.net

RE: Assembly Ballons - How does it number them?

The Item Numbers relate to the BOM order. The BOM can be related to the FM order or it can be re-oredered to suit.

cheers
Helpful SW websites FAQ559-520
How to find answers ... FAQ559-1091

RE: Assembly Ballons - How does it number them?

If you want to renumber the balloons to be in a better order, such as top of sheet down, you can re-order the balloons.  Pick the table > BOM Contents and the Bill of Materials Properties box will pop up.  Pick an item, make sure it is the blank far-left column in a row, then pick the "Row down" or "Row up" button.

SW06 SP5.0

Flores

RE: Assembly Ballons - How does it number them?

Quote (phreaq):

When ballooning an assembly, it seems SW balloons them in the order they were inserted into the assembly, starting from 1.

Is this info stored anywhere? How does it know what was inserted first?
This info must be stored somewhere otherwise SolidWorks would not know what components made up an assembly.  While I do not claim know the internal make up, I can surmise that everytime a component is added to an assembly, it gets added to the bottom of an internal component list.  I can demostrate this with the following macro.

CODE

Dim swApp As Object
Dim swModel As Object
Dim swComponent As Object
Dim swChild As Object

Dim Children As Variant
Dim Child As Variant

Sub main()

    Set swApp = Application.SldWorks
    Set swModel = swApp.ActiveDoc
    Set swComponent = swModel.GetActiveConfiguration.GetRootComponent
    
    Children = swComponent.GetChildren
    
    For Each Child In Children
    
        Set swChild = Child
        
        Debug.Print swChild.Name2
        
    Next

End Sub

1) Create a simple assembly of three parts.

2) Run the macro (the immediate window must be displayed in order to see the output; press ctrl+g to display it).

3) Note the order of the components.

Quote (phreaq):

It probably just goes down the feature tree, and assigns an incremental value for each unique part. Is this correct?
No, it is more complicated than that as I will demostrate.

1) In the 3 part assembly you created, re-arrange the components in the Feature Manager Tree to a different order.

2) Run the macro.

3) Note the component order.  It is the same as the first time the macro was run.  This is why (I believe) you sometimes must go into the table properties of a BOM and click the follow assembly order button.

To actually see the order change, you must modify the macro as shown in green.


CODE

Dim swApp As Object
Dim swModel As Object
Dim swComponent As Object
Dim swChild As Object

Dim swFeature As Object

Dim Children As Variant
Dim Child As Variant

Sub main()

    Set swApp = Application.SldWorks
    Set swModel = swApp.ActiveDoc
    Set swComponent = swModel.GetActiveConfiguration.GetRootComponent
    
    Children = swComponent.GetChildren
    
    For Each Child In Children
    
        Set swChild = Child
        
        Debug.Print swChild.Name2
        
    Next
    
    Debug.Print
    
    Set swFeature = swModel.FirstFeature
    
    Do Until swFeature Is Nothing
    
        Debug.Print swFeature.Name
        
        Set swFeature = swFeature.GetNextFeature
    
    Loop


End Sub
If you run this code on the 3 part assembly that you mixed up the original order on, you will see that the output from the swChild.Name2 loop matches the order the componenets were added in the assembly and the output from the swFeature.Name loop matches the order of the components in the Feature Manager Tree.  I hope this helps answer you first two questions.

Quote (phreaq):

I am trying to link the balloon number with an external db, and haven't quite grasped how to do it.
Sorry, cannot help you here, I do not understand what you are trying to do

Quote (phreaq):

Any thoughts or comments would be appreciated.
phreaq
Has anyone seen my brain today? (^_^)
I will not comment on your last question. smile

SA

RE: Assembly Ballons - How does it number them?

(OP)
thanks for all the help guys!!!

SolidAir, thanks for your efforts, it should help with what I need :D

and thanks for the refrain on all my comments ;)

phreaq
Has anyone seen my brain today? (^_^)
www.phreaq.net

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources