确定 MS Project 任务沿袭
我有一个 MS 项目文件,我正在使用主互操作程序集来解析该文件。 如何确定任务的沿袭? 我依赖于 WBS 代码,但是客户端已经开始摆弄这个字段,它不再代表数据的层次结构。
编辑:我所说的沿袭是指一种识别任务在层次结构中存在位置的方法。 默认情况下,WBS 代码完美地模仿了这一点。
我需要此信息来确定任务的父级是什么。
示例
- A
- B
- B1
- B2
- B3
- C
B3 的 Lineage 为 2.3(如果我们按 1 计算,如项目)
I have a MS Project file which I am using the Primary Interop Assemblies to parse. How can I determine the lineage of a task? I was relying on the WBS code, however the client has started to fiddle with this field and it no longer represents the hierarchy of the data.
Edit: By lineage I mean a way to identify where in the hierarchy the task exists. By default the WBS code mimics this perfectly.
I need this information to determine what is the parent for a task.
Example
- A
- B
- B1
- B2
- B3
- C
The Lineage for B3 would be 2.3 (If we counted by 1, like project)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试 Task 对象的 OutlineNumber 属性和 PredecessorTasks 集合。
HTM
科尔比非洲
Try the Task object's OutlineNumber property and the PredecessorTasks collection.
HTM
Colby Africa
使用“OutlineChildren”属性:
它创建缩进的任务树。
Use 'OutlineChildren' property:
It creates indented tree of tasks.