Hi All
Is it possible to update an existing User Parameter. While I can only delete-create a new. In this case the connection is lost with BOMQuantity.
Solved! Go to Solution.
Solved by kolesaa. Go to Solution.
Are you looking to just update an User Parameter?
If so in iLogic it's just a statement consisting of
ParameterName = 1 in
If you're looking to update BOMQuantity with a parameter value then its
ThisDoc.Document.ComponentDefinition.BOMQuantity.SetBaseQuantity( BOMQuantityTypeEnum.kParameterBOMQuantity, Parameter.Param("d0") ) d0 = 14 in
Thanks, Thomas. I decided so:
If param.Expression="0 m" And param.Units="m" Then
param.Units="mm"
param.Expression="0 mm"
Dim quantityType As BOMQuantityTypeEnum
Dim quantity As Object = Nothing
oCompDef.BOMQuantity.GetBaseQuantity(quantityType, quantity)
oCompDef.BOMQuantity.SetBaseQuantity(quantityType, quantity)
End If
I am trying assign a qty parameter to my Bill of Materials column FT/QTY.
Each item in this column has either cut size multiplied by QTY, or just QTY. Equation " =<EXTR> * <QTY>" not working. BOM field comes as this ".146 *" which .146 is <EXTR> parameter.
Please help.
Akap47,
It may be easier to just set youe BOM Qty to the parameter EXTR. Then using iLogic modify the equation of the EXTR parameter. The BOM Qty field itself cannot contain an equation but setting it to a parameter that has the equation will serve the same purpose.