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: 

iproperties show value

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
sjoerd.van.der.eerden
349 Views, 5 Replies

iproperties show value

hi, 

 

I want the description of a part to reference a parameter value. 

but I can't just write the parameter name cause then it wil show only the name. 
considering that the value can change, I also can't write the value itself. 
how can I get it to write the number instead of the name. 

the name is D2 but I want it to say L200 for example. 

 

iProperties.Value("Project", "Description") = "leiding d63 Ld2"

 

5 REPLIES 5
Message 2 of 6

The parameter name cannot be "leiding d63 Ld2" with spaces?

Or do you mean the description must be like "Leiding" then <Parameter.value> d63 then <parameter.value> Ld2

Regards,

Arthur Knoors

Autodesk Affiliations:

Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

Message 3 of 6

the description needs to be leiding (pipe) d63 (pipe diameter) L"pipe length" 

the pipe length is a changing value. so I want the description to match the actual length. 
the parameter that is responsible for the length is called d2 

Message 4 of 6

now it just shows the text I entert plus the parameter name (d2) 

sjoerdvandereerden_0-1673260313270.png

third one from the bottum 

Message 5 of 6

Hi, you can try this :

iProperties.Value("Project", "Description") = "leiding d63 L" & d2

Vincent. 

Message 6 of 6

wonderful, 

works like a charm. 

thankss 

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

Post to forums  

Autodesk Design & Make Report