Analyze existing ballons
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I'm writing a routine to check all placed balloons in a drawing.
My first check criteria, the attached document for the balloon is fairly easy as there's a sample
in the API docs: "Find component referenced by balloon"
The sample gives the file name of the referenced document as well as a ComponentDefinition object.
The second criteria is what I'm currently struggling with:
I must find the assembly the referenced document belongs to.
My attempt was to use the ComponentDefinition and query its Occurrences() property.
Unfortunately this property returns nothing when the attached doc is a part,
for an assembly it returns the occurrences.
As we typically use "parts only" BOM structure I'm out of luck here.
I've looked up and down, tried to examine the GeometryIntent related to the balloon but didn't come any further.
I realize that this search may not be that easy, as the ballooned part may be present in a number of assemblys.
But as the balloons refer to a drawing view I assumed there's a chance to get the right assembly displayed in the drawing view.
So my question is:
is there a way to step upwards from the balloon and it's information about the referenced part (and it's ComponentDefinition) to the related assembly?
Many thanks in advance for any useful information.
This will also include a statement like this kind of search is not possible.
Kind regards,
Richard