Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ILogic code that creates abbreviations or alternate text

1 REPLY 1
Reply
Message 1 of 2
benjoefoe
256 Views, 1 Reply

ILogic code that creates abbreviations or alternate text

I have a lot of pre existing sheet metal parts with my material listed as Steel, Mild.

I am using this code to automatcally fill out my iproperties but the material name is not exactly what I want it to say.

iProperties.Value("Project", "Description")=iProperties.Material

I'd like it so that any time it sees Steel, Mild it replaces it with the text "A36"

Thanks, Ben

AutoDesk Inventor 2020 Certified
1 REPLY 1
Message 2 of 2
pcrawley
in reply to: benjoefoe

Try something like:

if iProperties.Material = "Steel, Mild" then
iProperties.Value("Project", "Description")="A36"
else
iProperties.Value("Project", "Description")=iProperties.Material
Peter

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

Post to forums  

Autodesk Design & Make Report