Title iPropertie

Title iPropertie

jostroopers
Collaborator Collaborator
421 Views
2 Replies
Message 1 of 3

Title iPropertie

jostroopers
Collaborator
Collaborator

I want to link a multi value text parameter to the IProperty Title in the main assembly.
I have created a text parameter, TypeLichtstraat, with a multi value.
Under certain conditions, this parameter has a certain value.
However, when I click Save and Run I get the following message: The conversion from string FDF-Fh to type Boolean is invalid.
How do I get the text parameter linked to the Title iproperty in the main assembly?

iProperties.Value("Summary", "Title") = TypeLichtstraat
If TypeZonwering = "Geen zonwering" And
	Hijsconstructie = False Then
	TypeLichtstraat = "FDF-Fh" And	 
	Feature.IsActive("13360-01", "Hijsconstr") = False
End If
iLogicVb.UpdateWhenDone = True
Mvg Jos
Youre drawings are as good as the symbols that compleet them.....
0 Likes
Accepted solutions (1)
422 Views
2 Replies
Replies (2)
Message 2 of 3

Ralf_Krieg
Advisor
Advisor
Accepted solution

Hello

 

Remove the "And" behind "TypeLichtstraat = "FDF-Fh"

iProperties.Value("Summary", "Title") = TypeLichtstraat
If TypeZonwering = "Geen zonwering" And	Hijsconstructie = False Then
	TypeLichtstraat = "FDF-Fh"	 
	Feature.IsActive("13360-01", "Hijsconstr") = False
End If
iLogicVb.UpdateWhenDone = True

 


R. Krieg
RKW Solutions
www.rkw-solutions.com
Message 3 of 3

jostroopers
Collaborator
Collaborator

Ok, I changed my code and found something strange.
The parameter Hijsconstructieis a true / false parameter. In my form this is a checkbox that I can tick on and off. When I check this I see a v appear. To me that would mean that something is active. However in the ilogic code I have to set this parameter to False. This caused confusion in the beginning because the text at TypeLichtstraat was displayed in reverse.
The parameter Hijsconstructieis also linked to a feature in one of my underlying parts. With the code Feature.IsActive I turn it on and off. However, it works differently here. If I want to turn on a feature it is True.

iProperties.Value("Summary", "Title") = TypeLichtstraat
If TypeZonwering = "Geen zonwering" And Hijsconstructie = True Then
	TypeLichtstraat = "FDF-F"
ElseIf TypeZonwering = "Geen zonwering" And Hijsconstructie = False Then
	TypeLichtstraat = "FDF-Fh"
ElseIf TypeZonwering = "Buiten zonwering" And Hijsconstructie = False Then
	TypeLichtstraat = "FDF-Fh"	
ElseIf TypeZonwering = "Buiten zonwering" And Hijsconstructie = True Then
	TypeLichtstraat = "FDF-F"
End If
iLogicVb.UpdateWhenDone = True
 
 

 

 

Mvg Jos
Youre drawings are as good as the symbols that compleet them.....
0 Likes