Here is one half a ZScript. When loaded on its own, it loads without complaint.
//ZScript
[ISubPalette, Document:Ortho]
[IButton, Document:Ortho:Load Views, “Pick an image in a folder to load views.”]]
[IButton, Document:Ortho:R, “Right Orthogonal View”, , 1]
[IButton, Document:Ortho:L, “Left Orthogonal View”, , 1]
[IButton, Document:Ortho:Top, “Top Orthogonal View”, , 1]
[IButton, Document:Ortho:Bot, “Bottom Orthogonal View”, , 1]
[IButton, Document:Ortho:Fr, “Front Orthogonal View”, , 1]
[IButton, Document:Ortho:Bk, “Back Orthogonal View”, , 1]
and here is the second half of the ZScript. When loaded on its own (without the first half being present in the file), it loads without complaint:
[RoutineDef, GetView,
[If, [FileExists, [StrMerge, folder, file]],
[IEnable, control]
]
,
folder, file, control
]
However, when I combine the two into one file (as below) and attempt to load, I get an “improper commands list” error.
//ZScript
[ISubPalette, Document:Ortho]
[IButton, Document:Ortho:Load Views, “Pick an image in a folder to load views.”]]
[IButton, Document:Ortho:R, “Right Orthogonal View”, , 1]
[IButton, Document:Ortho:L, “Left Orthogonal View”, , 1]
[IButton, Document:Ortho:Top, “Top Orthogonal View”, , 1]
[IButton, Document:Ortho:Bot, “Bottom Orthogonal View”, , 1]
[IButton, Document:Ortho:Fr, “Front Orthogonal View”, , 1]
[IButton, Document:Ortho:Bk, “Back Orthogonal View”, , 1]
[RoutineDef, GetView,
[If, [FileExists, [StrMerge, folder, file]],
[IEnable, control]
]
,
folder, file, control
]
What the heck am I doing wrong?
Thanks,
Ken