MATRIXx

cancel
Showing results for 
Search instead for 
Did you mean: 

How to issue SBA editcatalog command without affecting the status of catalog entry windows

I am using SBA modifyblock command to change some of the attributes of the blocks. In order to make sure their parent superblock is open for editing, I first issue the SBA command editcatalog command.

I would like this process to be as transparent as possible to the user - without affecting the status(open, close, iconized) of catalog entry
windows.

If I issue this command without any precaution, this will open the catalog entry window (which is not desirable if the window had not been open prior to issue of editcataloge command).

I can issue "sbadisplay, {hide}" command before "editcatalog" to make sure that the catalog entry window does not open. This works fine f
or the entries that did not have an open window (or the window was iconized). However, this will iconize the the catalog entry with an open window (which is not desirable).

Is there a way to issue editcatalog without affecting the status of the catalog entry window

If not is there a way to query the status of a catalog entry window?

Thanks,
0 Kudos
Message 1 of 2
(6,738 Views)
Farshid,
Try using sbadisplay, {!refresh} instead. I think it is what you are looking for. Execute the command at the begining of your SBA code. This will turn of the refreshes in SystemBuild, so that when you use EditCatalog to select a block it will not open a new window.

The catch is that if a window is open then the editcatalog command will use that open window and replace the block that was in it. So use one editcatalog with the newwindow option at the beginning to open a hidden window. For example
sbadisplay, {!refresh}
editcatalog "sbname1",{newwindow}
{SBA code}
editcatalog "sbname2"
{SBA code}
sbadisplay, {refresh}


Carl L
National Instruments
Message 2 of 2
(6,738 Views)