Jump to content

Strange Reset Behavior


Recommended Posts

I have a strange thing occurring.

 

I have several custom objects that I use and I am having an issue with the reset code on one of them.

 

Here is a list of custom objects

  • Panel Specification
  • Create Panel
  • Create Data
  • Create Circuit
  • Create Display

 

All four of the Create objects refer back to the Panel Specification.

 

In side of Panel Specification I have code to reset the four Create objects, so if any of the Specifications change, all related objects are update. This all works quite nicely.

 

The strange thing that is occurring, is after Panel Specification runs and all the updates are done, I am unable to select the Create Display object. I can select all the others, just not Create Display.

 

The only way I can get it selectable again is by using the Custom Selection tool, then make a change to one of the Create Display parameters.

 

Does this make sense, and is there a workaround?

 

Here is the code for doing the reset. It works, except for not being able to select the Create Display object when all done.

 

 

#*****************************************************

def RefreshPanels(PanelSpecificationID,UUID):

#*****************************************************

        def RefreshPanelsDetails(h):

        vs.ResetObject(h)

        pass

 

    searchCriteria = "(INOBJECT & INVIEWPORT & (PON='Create Panel') & ('Create Panel'.'PanelSpecificationID'='" + PanelSpecificationID + "'))"

    vs.ForEachObject( RefreshPanelsDetails, searchCriteria )

 

    searchCriteria = "(INOBJECT & INVIEWPORT & (PON='Create Display') & ('Create Display'.'PanelSpecificationID'='" + PanelSpecificationID + "'))"

    vs.ForEachObject( RefreshPanelsDetails, searchCriteria )

 

    searchCriteria = ("((PON='Create Circuit') & ('Create Circuit'.'UniqueID'='" + UUID + "'))")

    vs.ForEachObject( RefreshPanelsDetails, searchCriteria )

 

    searchCriteria = ("((PON='Create Circuit') & ('Create Data'.'UniqueID'='" + UUID + "'))")

    vs.ForEachObject( RefreshPanelsDetails, searchCriteria )

    pass

 

 

 

 

Link to comment

@ Pat

 

I will check the strings and make sure they are good, however I do know the routine is being triggered as it will visible update the screen. 

 

The real challenge is after the reset, I can no longer select the Create Display object. I did discover that if I select a different class, turn the Panel class off, then back on, the reselect the Panel class, then I can select the Create Display.

 

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...