Conditional Scripting checks on BOM fields

Conditional Scripting checks on BOM fields

scottmoyse
Mentor Mentor
1,510 Views
4 Replies
Message 1 of 5

Conditional Scripting checks on BOM fields

scottmoyse
Mentor
Mentor

Can I access the BOM fields and perform conditional checks on them?

 

BOM radio buttons.png

 

For example; above, I would like to stop a transition to released if these values haven't been filled out. I think you are going to tell me these checks should occur on a Revisioning Workspace Item? However, I want to see these values/checkboxes summarised in the BOM like this if possible. Otherwise the users will be jumping back and forth to find the information.


Scott Moyse
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


EESignature


RevOps Strategy Manager at Toolpath. New Zealand based.

Co-founder of the Grumpy Sloth full aluminium billet mechanical keyboard project

0 Likes
Accepted solutions (1)
1,511 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable

Scott,

Your concern has been addressed and is in the works, We hope to see this released soon.

As always thank-you for your continual input on the PLM product functionality.

0 Likes
Message 3 of 5

scottmoyse
Mentor
Mentor

ok cool cheers


Scott Moyse
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


EESignature


RevOps Strategy Manager at Toolpath. New Zealand based.

Co-founder of the Grumpy Sloth full aluminium billet mechanical keyboard project

0 Likes
Message 4 of 5

punisher
Collaborator
Collaborator

Was really hoping for some scripting love here. Thought it would help my current puzzle.

John Evans
Autodesk Certified Professional

http://designandmotion.net
0 Likes
Message 5 of 5

Anonymous
Not applicable
Accepted solution

Scott,

 

This is a bit late but I'm trying to close the loop on some of these scripting items.

 

Yes you can write a condition script for checking BOM items:

 

BOM features supported:

 

item.boms -- A list of boms

item.boms.addRelated({ RELATED: target, QUANTITY: decimal, CUSTOM_FIELDS: [key,value], ITEM_NUMBER: int, QUOTE: item}) – Adds item to bom list

item.boms.addRelated(target,  quantity, fields[],lineNumber, quote) – Adds relationship to list

 

fields is optional

lineNumber is optional, if omitted then autonumbering should be used

quote is optional

 

item.boms[i] has the following properties:

  item.boms[i].id – DMS ID of target item

  item.boms[i].descriptor – Descriptor of target item

  item.boms[i].item – Target item

  item.boms[i].item.FIELD – Field on target item

  item.boms[i].lineNumber – The bom items line number (may not be needed, maybe the same as the index)

  item.boms[i].fields – access to bom custom fields

  item.boms[i].fields.FIELD – Field in the custom bom fields

  item.boms[i].qty – Quanity

  item.boms[i].quote - access to the line items quote

 

 

item.boms[i].setQuote(quoteItem) – Sets the default quote

item.boms[i].remove() – Removes relationship i from the list

 

 

 

0 Likes