Walls Generation Script

Walls Generation Script

I've followed all walls generation script tutorials and i've made my first few attempts with it.

Problem is that whenever I try to assign balcony IDs to where the balcony would be, nothing happens. I took a look at MAXScript Listener and it said *** -- Runtime error: unable to find match ***

I've made sure all my splines are drawn in the correct order and assigned the correct IDs

Weird thing is that if I assigned an ID of 1 to all the lines, it works fine. But then as soon as i put the IDs 6 and 7 to where the balcony is, it doesnt work. So i'm kinda stuck at the moment.

Any help would be appreciated, thanks.