iProperties formulas

iProperties formulas

hEINSTEIN
Advocate Advocate
5,640 Views
10 Replies
Message 1 of 11

iProperties formulas

hEINSTEIN
Advocate
Advocate

Hi

 

I am trying to use a formula in my Custom iProperties. The equation isn't equating.

 

What am I doing wrong?

hEINSTEIN_0-1621397442304.png

 

hEINSTEIN_1-1621397488652.png

 

hEINSTEIN_2-1621397561317.png

 

hEINSTEIN_3-1621397583780.png

thank you

 

 

 

0 Likes
Accepted solutions (1)
5,641 Views
10 Replies
Replies (10)
Message 2 of 11

SharkDesign
Mentor
Mentor

As far as I know you cannot do equations within iProperties. 

Can you not create a new parameter, do the sum and then reference that in your custom iProperty?

  Inventor Certified Professional
0 Likes
Message 3 of 11

mcgyvr
Consultant
Consultant

can you post your part file?
Seems like you have already exported the parameters and unless my eyes are still foggy from last night everything looks ok in your images

 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
0 Likes
Message 4 of 11

hEINSTEIN
Advocate
Advocate

Hi @mcgyvr 

 

Yes according to my knowledge I've taken all the correct steps.

 

Here is my File to look at, Thanx

0 Likes
Message 5 of 11

SBix26
Consultant
Consultant

I have no idea why it gives this kind of trouble.  I've attached the file with the custom iProperty as I think you want it to appear (Inventor 2020 format).

 

Here's how I managed it:

  • Open the Parameters dialog, uncheck Export for each of the three parameters, then close it
  • Open the iProperties dialog, write the expression in your custom parameter as you would expect: =<d15> x <d17> THK x <d16> LG -- it appears as plain text with all the brackets and stuff; OK the iProperties.
  • Go back to the Parameters dialog and check Export for the three reference parameters, close the dialog
  • Go back to iProperties and voilà, there is the expression as you wished

I have no idea why this works  If you try to edit the expression in any way, it breaks and you have to go through this hassle again.


Sam B
Inventor Pro 2022.0.1 | Windows 10 Home 2004
LinkedIn

0 Likes
Message 6 of 11

SharkDesign
Mentor
Mentor

Sorry, your question made it sound like you were trying to do maths inside the iProperty.

  Inventor Certified Professional
Message 7 of 11

mcgyvr
Consultant
Consultant
Accepted solution

@hEINSTEIN  I'm having no problems using the following workflow..

  1. Edit the value field of Material Size and enter the following (without quotes) "=<d15> x <d17> THK - <d16> LG"
  2. Press Modify button
  3. Press Apply for that dialog box
  4. Close the iproperties dialog box
  5. Go back into it and the formula is functioning just fine.

I really think its a "dance" of just putting the formula in then closing the dialog box that gets it to "stick".



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
Message 8 of 11

SBix26
Consultant
Consultant

Even easier-- has nothing to do with the Export setting, everything to do with properly displaying the expression in the dialog in real time.

 

I'm really surprised nobody flagged that in beta testing, let alone in years of production use since then.  And, I just tried it in 2022 and in 2016 with exactly the same results.  Seems like it would be a relatively simple fix...


Sam B
Inventor Pro 2022.0.1 | Windows 10 Home 2004
LinkedIn

Message 9 of 11

mcgyvr
Consultant
Consultant

@SBix26  Did you post a link/image? Post icons seem to indicate you did but I don't see anything??

mcgyvr_0-1621442778694.png

 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
0 Likes
Message 10 of 11

SBix26
Consultant
Consultant

My signature has an image in it, so my posts always have the image icon (except this one!).  I didn't put any other images in that post.


Sam B
Inventor Pro 2022.0.1 | Windows 10 Home 2004

Message 11 of 11

hEINSTEIN
Advocate
Advocate

@mcgyvr 

 

Thanx allot, and this is why your name is Mcguyver🤙