Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<Unknown member of Parameter: Value> #76

Open
davidn007 opened this issue Nov 23, 2024 · 1 comment
Open

<Unknown member of Parameter: Value> #76

davidn007 opened this issue Nov 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@davidn007
Copy link

After selecting the object and entering my parameter ({Tube_OuterDiameter.Value:3f}) in the text box, then clicking button, it replaces the origial text I had entered from the menu "Create" -> "text", it changes to "".
I have tried creating the Parameter without underscores (_) and the same thing happens

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Modify -> Change Text Parameters', select the text box to add the parameter to, and enter it into the expression/text box.
    • {Tube_OuterDiameter.Value:3f}
  2. Click on 'Ok' button
  3. View Text Object
  4. I don't know if this is an error, but the value of the text object is now

Expected behavior
The Expression of that Parameter is "( 1 in * 1.625 ) + Tube_ToleranceOffset" and the Value is 41.375, so I expected to see "41.375" in the text object.
Note: I actually want it to show the value in inches (1.625), but that's an issue for another day.

Screenshots
ParametricTextv240_01
ParametricTextv240_02
ParametricTextv240_03
x.x]

Software

  • OS: Windows 10 Pro

  • Fusion 360 version:
    Fusion 2.0.20948 x86_64
    Active Plan: Personal
    Windows 10 Pro 22H2 (19045.5131)

  • ParametricText version: 2.4.0

@davidn007 davidn007 added the bug Something isn't working label Nov 23, 2024
@thomasa88
Copy link
Owner

thomasa88 commented Nov 26, 2024

Hi,

The add-in is case sensitive, so value has to be written in lower case:
{Tube_OuterDiameter.value:.3f}

I have not played around with inches that much, but you probably want to start by setting the unit to inches in the Fusion parameters. Tube_OuterDiameter.inchfrac could be useful as well.

https://parametrictext.readthedocs.io/en/stable/parameters.html

BR
Thomas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants