iProperty concatenation with iLogic

iProperty concatenation with iLogic

karthur1
Mentor Mentor
4,336 Views
4 Replies
Message 1 of 5

iProperty concatenation with iLogic

karthur1
Mentor
Mentor

I would like to be able to concatenate the title of my part using iLogic.  I would like it to read this:

 

"TEXT 12.5in TEXT (1 1/2 x12.5 x 20)"

 

The "12.5in", "12.5" and the "20" are all variables that I am setting with ilogic.  As the part changes so do these variables.  Its probably something very simple, but I cant get it to do it.

 

I have tried this, but it gives me an error.

 

iProperties.Value("Summary", "Title")="TEXT"Cutlength"TEXT"Width "x" total"

 

0 Likes
Accepted solutions (1)
4,337 Views
4 Replies
Replies (4)
Message 2 of 5

PaulMunford
Community Manager
Community Manager

Check this out:

http://msdn.microsoft.com/en-us/library/wfx50zyk.aspx


Customer Adoption Specialist: Autodesk Informed Design
Help | Learn | Forum | Blog | Ideas | Sample content | Linkedin 

Message 3 of 5

Curtis_Waguespack
Consultant
Consultant
Accepted solution

Hi karthur1,

 

In addtion to Paul's answer, this link from the Inventor Customization forum provides an example as well:

http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/Part-Number-driven-by-parameters/m-p/3...

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

EESignature

Message 4 of 5

karthur1
Mentor
Mentor

I was way over-thinking this.  I could actually do what I needed this time using formulas in my iproperties.  I can see this being useful later though.

 

Thanks.

0 Likes
Message 5 of 5

karthur1
Mentor
Mentor

There are times when I need to populate the iproperty fields with iLogic rather than with a formula in iproperty.

When that is the case, here is how it can be populated.

 

2018-05-30_0817.png

 

 

If you need to format the expression as fractional, here is a way to do that also.  Use the RoundToFraction function.

 

2018-05-30_0843.png