The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.
Hi,
I think this is the right question for PTC Support.
Hello
BOM balloon is drawing symbol. You can collect all symbols in drawing. Using BOM balloon symbol name it is possible to filter only BOM symbols. Next, I think, it is possible to get a text (index) from the symbol.
@Ketan_Lalcheta wrote:
Hello
I just want to visit bom balloon present into drawing... Can someone tell me whether I can extract index of bom balloon by collecting each balloons ?
I can't recall as of now what to be done to collect all bom balloons , but it should be symbol instance collect , symbol instance data get and what next should be done ?
Hi all,
This one is quite involved...
It depends if your drawing has a custom symbol for BOM balloons or proe's default one. If the symbol is proe's default I don't think you will be able to collect symbol instances ( it did not work in the past at least).
With custom BOM symbols there are ways to get the index.
- if a variable text was used in a symbol definition then just use ProDtlsyminstdataVartextsCollect(..) - there is an example in TestDtlsyminst.c
- otherwise you'll need to start with collecting ProAsmcomppath's from a repeat region with ProDwgtableCellComponentGet(), collect dtlnotes in cells and get BOM indexes out of a note as a text, build a lookup table (std::map or std::set). After that you'll need to collect symbol instances and get their attachments with ProDtlsyminstdataAttachmentGet(...) and get ProAsmcomppath out the attachment... After that you'll end up with ProAsmcomppath in question and a lookup table...
Good luck.
FV.
Yes, for Creo 3.0 M120 also, Creo default BOM balloons are not getting refereed by symbol instances.
I used API ProDrawingDtlnotesCollect() on drawing with and without BOM balloons and found that this API collects BOM Balloons. Now, question is how to filter BOM balloons from all detail notes.
Any idea will be of great help
Thanks and Regards
Ketan
@Ketan_Lalcheta wrote:
Yes, for Creo 3.0 M120 also, Creo default BOM balloons are not getting refereed by symbol instances.
I used API ProDrawingDtlnotesCollect() on drawing with and without BOM balloons and found that this API collects BOM Balloons. Now, question is how to filter BOM balloons from all detail notes.
Any idea will be of great help
Thanks and Regards
Ketan
Ketan,
Did you try to use PRODISPMODE_SYMBOLIC as it may show the underlying parameter name ?
In any case, what kind of info you are trying to get out of a drawing sheet entities that you could not get directly from repeat region related functionality?
FV.
I haven't checked it yet. But did you mean to say that for balloon note, symbolic name should be rpt.index like that?