Jump to content
Developer Wiki and Function Reference Links ×

How to refresh OIP after changing object class?


Recommended Posts

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.

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...