Problem with Append method

Problem with Append method

francisco.fondaJGAAN
Participant Participant
592 Views
2 Replies
Message 1 of 3

Problem with Append method

francisco.fondaJGAAN
Participant
Participant

Hi Community,

I´m problem with the append method to add files in a NWF File.

I´m using COM to initiliz the Navisworks

navisworks_app = win32com.client.Dispatch("Navisworks.Document")
After that I created a list of other files that I need to Append to my main nwf file

navisworks_app.OpenFile(primeiro_nwd)
navisworks_app.ActiveDocument.Append(nwd_path)
 
When the code enter to that last code line, dont work...  someone know  what is the correct method to use in Python? 
 
thank very much!
0 Likes
593 Views
2 Replies
Replies (2)
Message 2 of 3

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @francisco.fondaJGAAN ,

 

Although the COM API is still available, Autodesk no longer support it. To start a Navisworks instance, you should use the .NET Automation API. To work with models, you'll need to develop a .NET plugin, which can then be called through the Automation API.

This means you may need to move away from using Python for this purpose. However, there is a possibility of using .NET with Python through Pythonnet, though we do not guarantee this approach. You'll need to investigate this option on your own, as we now only provide support for native .NET-related inquiries.

Let's give it some time to see if other experts on the Navisworks API forum can help provide the guidance you need


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 3

francisco.fondaJGAAN
Participant
Participant

Thank you very much for the guidance! Yes, in other studies we used .NET, but now I'm creating a development in Python and it was interesting to stay in the same language, I'm going to study Pythonnet and see if it works. I'll share more information here. Thanks Naveen!