Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
For example, if I want to write a LISP command which has me select a 3D model (part or assembly) and then display the BOM Position Number from the drawing. There is obviously a way to do this because the BOM table commands in Annotation can grab the information. (I am not getting the BOM Position information from Model Manager.)
Solved! Go to Solution.
Hello Peter,
The name of the BOM logical table is "AM-BOM-DATA-LTAB"
In the reference manual of the integration kit, you can find out how to read logical tables.
With (display (sd-get-logical-table-key-column-identifiers "AM-BOM-DATA-LTAB")) you will see all the columns
With sd-read-logical-table-cell you can read a value from the logical table from a certain row and column.
The sys-id is the unique identifier in this logical table, so you will certainly be able to fetch the position number out of it.
Best regards,
Wim.
You are probably looking for something internal to repeat region of the BOM table.
This means you are looking for a "member" number which may have a "sequence" parameter as well.
What I'm looking for is to be able to select an item from the display table which shows the BOM (what you get when you press the "Table" command in the "BOM" group on the "Insert" tab) and return the value in the "###" column of that table. What I have found is that selecting an item in that table returns the 'SysID' of the model. I'm sure that there is a way to retrieve the Position Number from the 'SysID'; I just don't know how to do it.
I am no expert at finding parameters and other data behind the scenes. I was only suggesting where to look for more information.
Hello Peter,
The name of the BOM logical table is "AM-BOM-DATA-LTAB"
In the reference manual of the integration kit, you can find out how to read logical tables.
With (display (sd-get-logical-table-key-column-identifiers "AM-BOM-DATA-LTAB")) you will see all the columns
With sd-read-logical-table-cell you can read a value from the logical table from a certain row and column.
The sys-id is the unique identifier in this logical table, so you will certainly be able to fetch the position number out of it.
Best regards,
Wim.
Peter,
I guess that you are using Creo Elements/Direct (CoCreate). Unfortunatelly you have opened a discussion in Creo Parametric area .
MH
On my system it says that this discussion is in the PTC Creo Elements/Direct area.
Hi,
I apologize, I missed information at the top of the page.
MH
We all do