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: 

TimeLinder.dll error

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
muaz.al.jarhi
1510 Views, 5 Replies

TimeLinder.dll error

Hello,

 

Im trying use AutoDesk.Navisworks.TimeLiner.dll in a c# app to get the TimeLiner properties of the models of a navisworks document in a c# but i get the following error (although i added the dll as a refrence in thr app):

 

System.IO.FileNotFoundException: Could not load file or assembly 'Autodesk.Navisworks.Timeliner.dll' or one of its dependencies. The specified module could not be found.

 What dependencies does the TimeLiner.dll depend on. I may have missing some dependencies but i do not know. Can you list all the dependiecies for me? Or else how can I resolve this problem? I am having a hard time trying to resolve this problem and need it to be resolved in the earliest time possible. Thank you for your understanding.

Tags (2)
5 REPLIES 5
Message 2 of 6

Hi,

 

Are you add this Autodesk.Navisworks.TimeLiner.dll from <Naivisworks 2012>\ ? I never heard such issue. The first I can think of is something wrong when you install Navisworks. You would need to repaire / reinstall. Or you could use .NET reflector http://www.red-gate.com/products/reflector/ to see anything missed.

 

 

Message 3 of 6


@xiaodong_liang wrote:

Hi,

 

Are you add this Autodesk.Navisworks.TimeLiner.dll from <Naivisworks 2012>\ ? I never heard such issue. The first I can think of is something wrong when you install Navisworks. You would need to repaire / reinstall. Or you could use .NET reflector http://www.red-gate.com/products/reflector/ to see anything missed.

 


 Y, I am using Naivisworks 2012 and I used .Net reflector and did not find anything missed and even used fusion (assembly) log viewer and sorted out everything, still no use.  

 

Well, I have already worked around this by exporting the timeliner to a .csv file from navisworks manage 2012 appllication and I read the file from the application and got what i needed. The only thing is that I needed to make some modifications to the file as some of the Item names in the selection sets are different form the ones that in the attached to task in the timeliner properties. (I know they are the same as they refered to the same selected  modelitems in the document) so, I had to modifiy some of the names in the file to match those in the selectionsets as this is how i get the selected items from document.selectionSets.

 

more formaly Invoke the following method:

private ModelItemCollection getSelectionByDate(DateTime[] EDates, String[] Items, DateTime date)
{
            int y = 0; SavedItemCollection si = documentControl.Document.SelectionSets.Value;
            ModelItemCollection modelItems = new ModelItemCollection();

            while (y < EDates.Length)
            {

                if(EDates[y] == date)
               {
                    int j = si.IndexOfDisplayName(Items[y]);

                   SelectionSource ss = documentControl.Document.SelectionSets.CreateSelectionSource(si[j]);

                   Search s = new Search(); s.Selection.SelectionSources.Add(ss);

                   modelItems = s.Selection.GetSelectedItems(documentControl.Document); 
               break;
               }

               y++;

          }

          return modelItems;

}

 I know this may not be the best approach to do it and you cannot atomatically do it on a navisworks file. As I said, first the timeliner is exported to a .csv then some modifications made to it inorder to work, but at least it solved my problem for now. Thank you.

 

Message 4 of 6

I too have the same problem. Could anyone suggest why it is happening. 

System.IO.FileNotFoundException: Could not load file or assembly 'Autodesk.Navisworks.Timeliner.dll' or one of its dependencies. The specified module could not be found.
Message 5 of 6
GeomGym
in reply to: karteek.iitm

I get the same error if I reference a duplicate of this file.  If I reference the file in the installed location it works fine.  No idea why though

 

 

I shouldn't have installed the service release of navis on my build machine, unless I downgrade means it's near impossible to support the earlier build of navisworks.

 

Message 6 of 6
xiaodong_liang
in reply to: GeomGym

Hi,

 

I guess you were just to ‘build’ your product without Navisworks being installed, and not to try and run it without Navisworks being installed, similar to AutoCAD SDK which provides the references of .NET API, and lib & head files for ARX application. From a technical point of view you would be ok just building against the required assemblies, but I think the dll of Timeliner depends on some other dlls which locate at Navisworks Installation path. It may not be an independent dll which could be deployed separately. 

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

Post to forums  

Rail Community


Autodesk Design & Make Report