rmiref.removeRefs
从需求文档中删除模型的反向链接
说明
从当前活动的类型为 count
= rmiref.removeRefs(doc_type
)doc_type
的外部需求文档中删除所有指向模型的反向链接,并返回已删除的反向链接的数量。有关反向链接的更多信息,请参阅 管理外部需求文档中的导航反向链接。
注意
您一次只能从一个外部文档中删除反向链接。
示例
从 Microsoft Word 文档中删除反向链接
此示例显示如何从 Microsoft® Word 文档中删除反向链接。
打开通过编程将直接链接重定向至导入的需求示例。
openExample(['slrequirements/' ... 'RedirectDirectLinksToImportedRequirementsByAPIExample'])
打开FuelSysWithReqLinks
模型。
open_system("FuelSysWithReqLinks.slx")
该模型包含以下文档的直接链接:
FuelSysDesignDescription.docx
FuelSysRequirementsSpecification.docx
FuelSysTestScenarios.xlsx
打开 FuelSysDesignDescription.docx
文档。
open("FuelSysDesignDescription.docx")
从 FuelSysDesignDescription.docx
文档中删除反向链接。
count = rmiref.removeRefs("word")
Removing Simulink references from the current document ... Current document: fuelsysdesigndescription.docx Total references: 6 Remove all Simulink references? y/n
y
Removing ... count = 6
清除打开的需求集和链接集。关闭所有打开的模型。
slreq.clear;
bdclose all;
输入参数
doc_type
— 外部需求文档类型
"Word"
| "Excel"
| "DOORS"
外部需求文档类型,指定为 "Word"
、"Excel"
或 "DOORS"
。
注意
文档类型"DOORS"
指的是IBM® DOORS®模块。您不能使用此函数从 IBM DOORS Next 模块中删除反向链接。
输出参量
count
— 删除的反向链接数量
双精度值
从外部文档中删除的反向链接的数量,以双精度形式返回。
版本历史记录
在 R2011a 中推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)