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: 

Make a simple code to save Iproperties

3 REPLIES 3
Reply
Message 1 of 4
haphanthanhtam.work
342 Views, 3 Replies

Make a simple code to save Iproperties

Hi guys!!!
I need to create an iproperties using the following line of code
result as a image 

cwwwwwwwwwwwwwwwww.png

This code use 

AA = 67890
Dim oCPropName As String = InputBox("B", "Property Name", AA)

 




Labels (2)
3 REPLIES 3
Message 2 of 4

The cleanest is just using ilogic API with two input boxes, one for the Name and the other the value

See article here for ilogic iproperties.

 

Dim oCPropName As String = InputBox("B", "Property Name", "B") 

Dim oCPropValue As String = InputBox("B", "PropertyValue", "67890") 

iProperties.Value("Custom", oCPropName) = oCPropValue

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
Message 3 of 4


HI @A.Acheson 
I want input only 1 value Property Name 
PropertyValue = AA
When I input Property Name The message will show the value of AA

ccccc33333333.png


AA = 67890

Dim oCPropName As String = InputBox("B", "Property Name", AA) 


iProperties.Value("Custom", oCPropName) = oCPropValue

 

Message 4 of 4

You will still need two input boxes one for the name and one for the value. You won't be able to write and read at the same time. 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan

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

Post to forums  

Autodesk Design & Make Report