Custom iprop to be blank

Custom iprop to be blank

GKPByDesign
Advocate Advocate
314 Views
4 Replies
Message 1 of 5

Custom iprop to be blank

GKPByDesign
Advocate
Advocate

I need help, my code won't allow my custom prop to have a blank answer. can someone help. When Cut = None, DIM to equal "" (BLANK) 

 

If Cut = "Model A" Or Cut = "Model B" Or Cut = "Model C" Or Cut = "Model D" Or Cut = "Model E" Or Cut = "Model F" Then
	DIM = G_L1

End If

If Cut = "Model A - Small Side" Or Cut = "Model B - Small Side" Then
	DIM = G_L2

End If

If Cut = "None" Then
	DIM = ""


End If
0 Likes
315 Views
4 Replies
Replies (4)
Message 2 of 5

chandra.shekar.g
Autodesk Support
Autodesk Support

@GKPByDesign ,

 

Hoping that below iLogic code may be helpful.

 

iProperties.Value("Custom", "DIM") = ""

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 3 of 5

GKPByDesign
Advocate
Advocate

I need the code to be to if the cut equals none then custom I’m iprop is blank, like what I have written, but it keeps giving me an error ‘double’ with the code I have written 

0 Likes
Message 4 of 5

Sergio.D.Suárez
Mentor
Mentor

Hi, I ask you a question, the DIM parameter is numeric?
the parameters G_L1 and G_L2 are numeric?
if all are numeric you can not place in the value "" which is a text value of string, you must place the value zero. That's why the error message appears. regards

 

 


Please accept as solution and give likes if applicable.

I am attaching my Upwork profile for specific queries.

Sergio Daniel Suarez
Mechanical Designer

| Upwork Profile | LinkedIn

0 Likes
Message 5 of 5

GKPByDesign
Advocate
Advocate

Is there a way to make it blank at all? 

 

 

0 Likes