Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello All,
We have thousands of part files where a specific parameter, called DENS1, is setup as UNITLESS unit type.
I need to change these units on all these files from UNITLESS to g/cm^3.
I've tried a ilogic code that creates this parameter, sets a value and it's unit type: g/cm^3.
oMyParameter = ThisApplication.ActiveDocument.ComponentDefinition.Parameters.UserParameters oParameter = oMyParameter.AddByExpression("DENS1", "8", "g/cm^3")
However, it only works on files that don't have the parameter DENS1. (this rules creates it)
Can someone help us to get a code that can change the units on the files where the parameter already exists?
Thank you for your attention.
Solved! Go to Solution.