is it possible to directly run a design rule check via TCL?
I know the possibility to journal the commands which are executed by Capture when using the GUI.
Menu "Tools::Update All Part Status" | DialogBox "1086" "C:/Users/%USERNAME%/AppData/Local/Temp/CAPTURELOG/Mon_Sep__4_13_21_44_2023/Update Part - Occurrence_1.xml"
My issue is, that the command is only working when the Part Manager is opened. Can I do this part update also without opening the Part Manager?
If not, How can I open the Part Manager via TCL first, then perform the update all part status operation and finally close the part manager again?
Another issue that I see is, that the xml file needs to specify the old (schematic) and the new (DB property) values which I cannot right now and which makes no sense. If I could, I could completly write the PM update myself...
Please try the below tcl command for update All Part:
#open the Par Manager
Menu "Tools::Update All Part Status"
#close Part Manager
Hope this helps!
This only helps partially. Using your code I still have issues.
1. If a part is not up to date, Capture asks if the part should be updated. This could be automized by passing the xml file, but the xml file can not automatically be generated as I don't know the new properties values which are needed to create the xml file.
2. If a user already opened the part manager once before and the view to a group or subgroup, then Capture performs the "Update All Part Status" operation on this group or subgroup. So I would need to make sure the "Core" / first line in the part manager is selected. Afterwards an additional step would be needed: Cycle all groups/subgroups, find the linked parts and update those as well because they do not get updated by the first "Update All Part Status operation"
In the end I think it would be better to avoid doing the Part Manager Update via the "Menu" commands. I would prefer to do this based on "real" TCL code. Is this even possible with the current API Cadence provides?
You can use below tcl api :
Open Part Manager and type "CPartMgmt_UpdateAllPartStatus" in the capture command console.
second Select the design and type below command:
Menu "Tools::Part Manager::Update"
Please note : Window will pop up asking for manual input. There is some internal APIs(not exposed) which do comparison of the Schematic Part and DB Part properties.
Ok. Then I think there is currently no solution provided by cadence to automize this task. Nevertheless, thanks for your reply.