Community
Navisworks API
Welcome to Autodesk’s Navisworks API Forums. Share your knowledge, ask questions, and explore popular Navisworks API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

the problem about timeliner

3 REPLIES 3
Reply
Message 1 of 4
suzipeng
522 Views, 3 Replies

the problem about timeliner

i created a project in vs2012,import three dll,

 Autodesk.Navisworks.Api;
Autodesk.Navisworks.Controls

Autodesk.Navisworks.Timeliner

and also using the namespace in programm

using Autodesk.Navisworks.Api;
using Autodesk.Navisworks.Api.Controls;

using Autodesk.Navisworks.Api.Timeliner;

 

but when i run the programm, the system prompt the error as 

未能加载文件或程序集“Autodesk.Navisworks.Timeliner.dll”或它的某一个依赖项。找不到指定的模块。

actually, i can find the dll in my computer

 

i also  test the programm in other computer, the same problem

 

computer1: installed vs 2012, 64bit win8 ,naviswork2015,(navsiwork install the default path)

computer2: installed vs 2012, 32win7 ,naviswork2014,(navsiwork change the install path ,not the  default path)

 

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using Autodesk.Navisworks.Api;
using Autodesk.Navisworks.Api.Controls;
using Autodesk.Navisworks.Api.Timeliner;

namespace TimerLinerTest
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
try
{
string FileName = "C:\\Users\\summe_000\\Desktop\\pj-dmL(located).nwd";
documentControl1.Document.TryOpenFile(FileName);
DataTable dt = new DataTable();
int i = 0;
DocumentTimeliner doc_timeliner = documentControl1.Document.GetTimeliner();
foreach (TimelinerTask task in doc_timeliner.Tasks)
{
dt.Rows[i][0] = task.ActualStartDate.ToString();
dt.Rows[i][1] = task.ActualEndDate.ToString();
dt.Rows[i][2] = task.PlannedStartDate.ToString();
dt.Rows[i][3] = task.PlannedEndDate.ToString();
dt.Rows[i][4] = task.DisplayName;
dt.Rows[i][5] = task.TaskStatus.ToString();
dt.Rows[i][6] = task.ProgressPercent.ToString();
dt.Rows[i][7] = task.Children[0].DisplayName;
i++;
}
dataGridView1.DataSource = dt;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}

}
}

 

Tags (1)
3 REPLIES 3
Message 2 of 4
xiaodong_liang
in reply to: suzipeng

Hi,

the reason is, Timeliner and ClashTest have not been exposed to .NET control application. Sorry if this is a bad news to you. You can access them by plugin.
Message 3 of 4
zjf3295286
in reply to: xiaodong_liang

can we run TimelinerTask in the plugin

Message 4 of 4
xiaodong_liang
in reply to: zjf3295286

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report