i've got it working, so thanks to everyone, but as usual i've run into more problems. the whole reason i'm doing this is to export to cinema4D, and everything has to have unique textures. heres the script hacked together from ccrofts ref:
PROCEDURE ClassStyle;
PROCEDURE changeWindows(h :HANDLE);
BEGIN
SETRFIELD(h, 'Window', 'ExtSashClass', 'Style-1');
SETRFIELD(h, 'Window', 'IntSashClass', 'Style-1');
SETRFIELD(h, 'Window', 'ExtJTClass', 'Style-2');
SETRFIELD(h, 'Window', 'IntJTClass', 'Style-2');
SETRFIELD(h, 'Window', 'LintelClass', 'Style-1');
SETRFIELD(h, 'Window', 'IntShutterClass', 'Style-1');
SETRFIELD(h, 'Window', 'ExtShutterClass', 'Style-1');
SETRFIELD(h, 'Window', 'SillClass', 'Style-1');
SETRFIELD(h, 'Window', 'StoolClass', 'Style-1');
SETRFIELD(h, 'Window', 'GlazingClass', 'Style-1');
SETRFIELD(h, 'Window', 'Glazing', 'Smoked');
SETRFIELD(h, 'Window', 'ExtSillTrimClass', 'Style-1');
SETRFIELD(h, 'Window', 'IntSillTrimClass', 'Style-1');
END;
BEGIN
ForEachObject(changeWindows, (INSYMBOL & INVIEWPORT & (PON='Window')));
END;
Run(ClassStyle);
the problem i'm having is that after running the script the windows don't update. they get the part classes assigned properly, so i can set Style-1, Style-2, etc, in the classes window to have a certain texture. but the don't update on the window itself until i change something on it in the ObjInfo pallete (switching texture from Class Texture to None, or changing in option, or toggling plan detail on and off. i tried toggling plan detail on and off by script, but it doesn't help. i have to change something on each window in the info pallete. its just really annoying. if anyones got any ideas how to get these windows to update and display the textures that ARE assigned to them by part classes, please shout out.
thanks.