Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iProperty concatenation with iLogic

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
karthur1
4077 Views, 4 Replies

iProperty concatenation with iLogic

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"

 

4 REPLIES 4
Message 2 of 5
PaulMunford
in reply to: karthur1

Check this out:

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

 


Autodesk Industry Marketing Manager UK D&M
Opinions are my own and may not reflect those of my company.
Linkedin Twitter Instagram Facebook Pinterest

Message 3 of 5

Message 4 of 5

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.

Message 5 of 5
karthur1
in reply to: karthur1

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

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report