billtheia Posted August 26, 2015 Share Posted August 26, 2015 Can someone help me figure out how to update the object info palette (OIP) after I use a script to change an object's class? Here's the script I'm using: PROCEDURE SelectedToDemo; FUNCTION ChangeToDemo(h :HANDLE) :BOOLEAN; BEGIN SetClass(h,'Demolition'); END; BEGIN ForEachObjectInLayer(ChangeToDemo, 2, 0, 4); END; RUN(SelectedToDemo); This does change the class of selected objects but it doesn't refresh the OIP so I still see the old class until I click elsewhere and then back on the object. I've tried ReDraw and ReDrawAll but neither worked. Quote Link to comment
twk Posted August 26, 2015 Share Posted August 26, 2015 add a ResetObject(h) at the end of your FUNCTION ChangeToDemo block, FUNCTION ChangeToDemo(h :HANDLE) :BOOLEAN; BEGIN SetClass(h,'Demolition'); ResetObject(h); END; Quote Link to comment
billtheia Posted August 27, 2015 Author Share Posted August 27, 2015 Thanks TuiWalker. That worked like a charm. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.