All In One Cabinet Design - Help on coding issue

All In One Cabinet Design - Help on coding issue

Chirpyboy2060647
Advocate Advocate
425 Views
4 Replies
Message 1 of 5

All In One Cabinet Design - Help on coding issue

Chirpyboy2060647
Advocate
Advocate

Hey all, so I'm designing an iLogic cabinet that would be full customizable and going pretty well. I'm not the greatest coder but I can get by so far, and could use some guidance on a specific rule I want to make. 

 

I have a rule right now that checks which side the Door_Direction, Left, Right, Both (double door). Then depending on the selection hides or shows the extrusions.

 

Well I want to add a drawer option, but the issue I run into is how to always hide the non-drawer left/right door cutout heights, but then which ever option is picked for the pull (left, right, both) would work for the new height locations. 

 

I attached some screenshots to hopefully give a better idea what im trying to achieve. 

 

0 Likes
426 Views
4 Replies
Replies (4)
Message 2 of 5

CCarreiras
Mentor
Mentor

Let's try to understand what you mean...

If drawer True, suppress features A,B...etc (doors cutouts)... this works, right?

CCarreiras

EESignature

0 Likes
Message 3 of 5

TechInventor20
Advocate
Advocate

Is this what you are looking for?

TechInventor20_0-1661950505065.pngTechInventor20_1-1661950530841.png

 

Otherwise you need to explain it better.

 

 

0 Likes
Message 4 of 5

Chirpyboy2060647
Advocate
Advocate

Sorry let me try to explain better as it probably wasn't clear enough.

 

So picture one has the circular hardware cutout up at the top/bottom. I have a rule to suppress based on which side you picked. 

 

Now in the UI if they selected there is a drawer, a 2nd set of hardware cutouts would show up instead while suppressing the others. The new set of cutouts I want to also reference the 'DOOR_DIRECTION' param. so that if that changes it would change the new hinge locations when DRAWER = TRUE

 

Below is the coding I have so far, the last section was something I was trying and maybe will help make sense of what im trying to accomplish.

 

If DRAWER = "TRUE"

'New left hinge locations if drawer = true
Feature.IsActive("LHD_W-DRAWER") = True
'New right hinge locations if drawer = true"
Feature.IsActive("RHD_W-DRAWER") = True

'Supresses standard hinge cutouts if drawer = true'
Feature.IsActive("RHD") = False

'Supresses standard hinge cutouts if drawer = true'
Feature.IsActive("LHD") = False

'Start of the drawer extrusions and modifications in tree'
Feature.IsActive("DRAWER_START") = True
' ***Direct Edit9***

Feature.IsActive("Direct Edit9") = True

' ***Extrusion24***
Feature.IsActive("Extrusion24") = True

' ***Extrusion25***
Feature.IsActive("Extrusion25") = True

' ***Extrusion26***
Feature.IsActive("Extrusion26") = True

' ***Extrusion27***
Feature.IsActive("Extrusion27") = True

' ***Extrusion28***
Feature.IsActive("Extrusion28") = True

' ***Extrusion29***
Feature.IsActive("Extrusion29") = True
'last part of the drawer'
' ***Extrusion24***
Feature.IsActive("DRAWER_END") = True


' ***DRAWER_RAIL***
Feature.IsActive("DRAWER_RAIL") = True

Else If DRAWER = "FALSE"

Feature.IsActive("LHD_W-DRAWER") = False

Feature.IsActive("RHD_W-DRAWER") = False

' ***DRAWER_RAIL***
Feature.IsActive("DRAWER_RAIL") = False

Feature.IsActive("DRAWER_START") = False
' ***Direct Edit9***

Feature.IsActive("Direct Edit9") = False

' ***Extrusion24***
Feature.IsActive("Extrusion24") = False

' ***Extrusion25***
Feature.IsActive("Extrusion25") = False

' ***Extrusion26***
Feature.IsActive("Extrusion26") = False

' ***Extrusion27***
Feature.IsActive("Extrusion27") = False

' ***Extrusion28***
Feature.IsActive("Extrusion28") = False

' ***Extrusion29***
Feature.IsActive("Extrusion29") = False

' ***Extrusion24***
Feature.IsActive("DRAWER_END") = False

End If
'This part was something i thought might work or what I think im trying to get to happen'
If DRAWER = "True"

DOOR_DIRECTION_DRAWER = DOOR_DIRECTION

Else If DRAWER = "False"

DOOR_DIRECTION_DRAWER = "NONE"

End If
iLogicVb.UpdateWhenDone = True

 

0 Likes
Message 5 of 5

TechInventor20
Advocate
Advocate
Just make the different variations.

If drawer = True then
...
else
'drawer = not shown
end if

if LHD_W-DRAWER = true and RHD_W-DRAWER = false then
' put code
else if LHD_W-DRAWER = false and RHD_W-DRAWER = true then
'put code
else if LHD_W-DRAWER = true and RHD_W-DRAWER = true then
'put code
end if

and you do this till you got all you're combinations.

0 Likes