Sorry no Chinese input at the this computer.
Below is the thought you may give a try. It's based on reply from Andrew Beckett for giving net name for newly created path.
1. Get all the metal 2 rectangles you want to assigned the net name by "geGetSelSet"
2. Using "dbMakeNet" to create the net, where you assign the net name
3. Using "dbAddFigToNet" to add the newly created path to the net.
You can check the details and usage of these functions through Cadence manual. They should be all official APIs, thus you can find it via the "API Finder", launching it by "startFinder()" command in the CIW
Somehow my reply is not presented previously. Type it again.
Just some thoughts that that you can try it out.
It's based on the reply from Andrew Beckett for adding net name to newly created path in layout.
Hope it can help you, and have fun.
You can use "startFinder" in the CIW to trigger the "API Finder" to get detailed explanation for the functions.
1. Using "geGetSelSet()" to get all the M2 metal rectangle you want to modify.
2. Using "dbMakeNet" to create the net,
3. Using "dbAddFigToNet" to add the selected M2 metal rectangle to the net.
procedure(SetNetNameForSelShapes(NetName)
let((NetId)
NetId=dbCreateNet(geGetEditCellView() NetName)
foreach(shape geGetSelSet()
dbAddFigToNet(shape NetId) ;using API instead directly assign the parameter value.
);foreach
);let
);procedure
Description of dbAddFigToNet
Assigns the given figure object to a specified net object. If the figure is already associated with a different net, the figure will be detached from that net before being assigned to the given net object.
Example
dbAddFigToNet(figId netId)
When the above execution is successful, you can verify that the figure is added using
netId~>figs=>list(figs...)
Where figId will be a member of the returned list.