In the parameters window you can right click a value and choose a custom property format.
We always change everything to fraactional instead of decimal.
Is there a way to set this as default?
Solved! Go to Solution.
Solved by mrattray. Go to Solution.
Hello jamjumpin,
Thanks a lot for your feedback, and Yes, currently, there is no way to do it automatically for new added value, but it's available for exist value by select option "Apply to existing comparable parameters" as snapshot. I try to set up a template with the option checked and try to set up API method against the issue, but failed.
I've filed a wish item for it in our internal system, hopefully, the issue could be fixed in the future.
Dim oParam As Parameter Dim oParamFormat As CustomPropertyFormat oParam = oSheetMetalCompDef.Parameters.UserParameters.Item("my parameter") oParam.ExposedAsProperty = True oParamFormat = oParam.CustomPropertyFormat oParamFormat.DisplayFormat = kFractionalDisplayFormat
Do I just put this in a an ilogic rule on it's own to run when the document is opened?
Hello,
Yes, The API works for existing parameters, for new added one, user have to re-run it again manually, that's the point.
I recognize this is an old post, but I am interested in your solution. Per a previous question you asked. I would be interested in changing the format to fractional for any export value.
Hi vintageobsoleteparts,
Here are the other methods.
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
Display format for the parameter.
Name | Value | Description |
kArchitecturalDisplayFormat | 92419 | Architectural Display Format. |
kDecimalDisplayFormat | 92417 | Decimal Display Format. |
kFractionalDisplayFormat | 92418 | Fractional Display Format. |
How would you modify the code above to format a User Parameter in a standard (not sheet metal) part?
Regards,
Jerry
Hi @JBerns.
This should work for iLogic
Dim oParam As Parameter Dim oParamFormat As CustomPropertyFormat oParam = Parameter.Param("My_Parameter") oParam.ExposedAsProperty = True oParamFormat = oParam.CustomPropertyFormat oParamFormat.Precision = Inventor.CustomPropertyPrecisionEnum.kSixteenthsFractionalLengthPrecision
related links:
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
That works great! Thanks for the quick response.
Regards,
Jerry