I-logic How to write parameter value to property

I-logic How to write parameter value to property

T.Tomassen
Contributor Contributor
429 Views
4 Replies
Message 1 of 5

I-logic How to write parameter value to property

T.Tomassen
Contributor
Contributor

Hi,

 

Im making a I-logic part for a pipe 

the idea is to select a Inch dimension for the pipe with te correct thickness.

when that is done i want that de properties are filled in automaticly 

the code that i have written is :

'Pipe 1/8 Inch'
If Inch = "1/8" And Schedule = "10"
d0 = 1
iProperties.Value("Project", "Description") = "1/8 Inch - Schedule 10"
End If

filling in the description works this way but i want to add length to it so it looks like this

Description = 1/8 Inch - Schedule 10 - Length ....

so i want that value of the length parameter (d2) is written in the property description.

Could anyone help me with this ? 

 

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

richterBKSAC
Advocate
Advocate

Hey,

 

I would try the following:

 

iProperties.Value("Project", "Description") = "1/8 Inch - Schedule 10 - " & Parameter("d2")

 

0 Likes
Message 3 of 5

Andrii_Humeniuk
Advisor
Advisor
Accepted solution

Hi @T.Tomassen . I add to the description above.

'Pipe 1/8 Inch'
If Inch = "1/8" And Schedule = 10 Then
	d0 = 1
	iProperties.Value("Project", "Description") = Inch & " Inch - Schedule" & Schedule & " - " & Parameter("d2")
End If

 

 

Andrii Humeniuk - CAD Coordinator, Autodesk Certified Instructor

LinkedIn | My free Inventor Addin | My Repositories

Did you find this reply helpful ? If so please use the Accept as Solution/Like.

EESignature

0 Likes
Message 4 of 5

T.Tomassen
Contributor
Contributor
this works thanks for the fast reply
0 Likes
Message 5 of 5

T.Tomassen
Contributor
Contributor
this works thanks for the quick reply
0 Likes