Is there any way of setting the Base Unit in a part to liquid ounces?

Is there any way of setting the Base Unit in a part to liquid ounces?

acanx21
Enthusiast Enthusiast
576 Views
1 Reply
Message 1 of 2

Is there any way of setting the Base Unit in a part to liquid ounces?

acanx21
Enthusiast
Enthusiast

I saw that at the item level, you can set the Units to Liquid Ounce, but I have not been able to find a way to set it at the part level. If I was to get a part to the item level and change it to be liquid ounces, it still shows the quantities as Gallon/Each depending on what we set the part to be. 

 

We have parts that we would like to have show up as ounces in the BOMs instead of Each/Gallons.

 

Thanks!

0 Likes
Accepted solutions (1)
577 Views
1 Reply
Reply (1)
Message 2 of 2

acanx21
Enthusiast
Enthusiast
Accepted solution

Finally found the code that would set the parameter to be fl_oz.

 

Adding it on here in case anyone else is interested

 

Dim partDoc As PartDocument
Set partDoc = ThisApplication.ActiveDocument

' Get the UserParameters collection
Dim userParams As UserParameters
Set userParams = partDoc.ComponentDefinition.Parameters.UserParameters

Set oParam1 = userParams.AddByExpression("OUNCES", "1", UnitsTypeEnum.kOunceVolumeUnits)