我已经尝试了下面的代码,但这不起作用任何人都可以帮我修复相同的内容 -
Module m = current
Object o = current
Object src,trg
Link lnk
ModName_ targetMod
int sabno,tabno
string obj_type
//print "Source \t Destination"
/*for o in m do*/ {
for lnk in o->"*" do {
targetMod = target lnk
read(fullName(targetMod),false)
//sabno = sourceAbsNo(lnk)
//tabno = targetAbsNo(lnk)
src = source(lnk)
trg = target(lnk)
delete(lnk)
//trg -> "/Harley_MY19_Phoenix/99 Link Modules/SRS_to_CRS" -> src
trg <- "/Harley_MY19_Phoenix/99 Link Modules/SRS_to_CRS" <- src
//break
}
//break
}
infoBox "*****************Complete*********************************"
我如何修复它。
答案 0 :(得分:0)
嗨以下代码可以解决传入链接的问题,希望这可以帮助您 -
Module m = current
Object o = current
Object src,trg
Link lnk
ModName_ targetMod
int sabno,tabno
string obj_type
for o in m do {
for lnk in o->"*" do {
targetMod = target lnk
edit(fullName(targetMod))
src = source(lnk)
trg = target(lnk)
delete(lnk)
trg -> "/Harley_MY19_Phoenix/99 Link Modules/SRS_to_CRS" -> src
}
}
infoBox "*****************Complete*********************************"