ComApi Programming and Reference guides?

ComApi Programming and Reference guides?

luca_vezza
Enthusiast Enthusiast
3,630 Views
13 Replies
Message 1 of 14

ComApi Programming and Reference guides?

luca_vezza
Enthusiast
Enthusiast

I've been looking quite a lot, but with no luck... So, sorry if I ask a dumb question...

Is there a way to have a detailed reference (and ideally also a Programmer's) guide for the COM API as accessible through the .NET API? I mean, details about the Autodesk.Navisworks.Api.Interop.ComApi and Autodesk.Navisworks.Api.ComApi , their classes and methods, how to use them, etc...

 

The only thing I've found is a nice PDF about the COM Interface, which is a good introduction bu too general, and Help file for the COM interface that states to be the Reference Guide but which seems quite incomplete to me.

 

Thanks in advance for any pointer you might have.

 

   Luca

3,631 Views
13 Replies
Replies (13)
Message 2 of 14

Anonymous
Not applicable

Hello Luca,

 

I am in the same case. I do not find a lot of documentation. But maybe what i have can help you.

On the one hand you can find on the SDK page the " Navisworks 2016 API training labs" and there is one part on the interop API

 

the link of the page : http://usa.autodesk.com/adsk/servlet/index?id=15024694&siteID=123112

 

on the other hand there is some helpful post on this blog http://adndevblog.typepad.com/aec/

 

I hope it will help you.

 

Dave

0 Likes
Message 3 of 14

ulski1
Collaborator
Collaborator

Luca,

First,

you need to download and install navisworks and then download and install the SDK from www.autodesk.com/developnavisworks

When you have installed the SDK you will find windows help file for the net api and a separate help file for the com api in C:\Program Files\Autodesk\Navisworks Simulate 2016\api\COM\documentation

 

also look at the exampel code in C:\Program Files\Autodesk\Navisworks Simulate 2016\api\COM\examples

and as Dave mentioned download the training labs

 

br

Ulrik

 

0 Likes
Message 4 of 14

luca_vezza
Enthusiast
Enthusiast

Yes, I did that of course. And that is why I posted the message: the help file about the COM Api looks very incomplete... Only a few classes are documented there, at least in the version I have.

 

Thanks anyway.

 

   Luca

 

0 Likes
Message 5 of 14

luca_vezza
Enthusiast
Enthusiast

Thanks David,

Yes, the training labs so far are the best source of information (especially #8 for this specific argument).

But, still, if there was a real reference guide that would be cool 🙂

 

   Luca

 

0 Likes
Message 6 of 14

Anonymous
Not applicable

Bump

 

Some of these links are broken at this point. Still struggling to find any good information

0 Likes
Message 7 of 14

ulski1
Collaborator
Collaborator

you should be aware that you are replying to a post from 2016 and some links might be broken.

if you describe what you want to find out perhaps we can help. 

 

Ulrik

0 Likes
Message 8 of 14

Anonymous
Not applicable

I'd love if someone could give direction to finding documentation for the API:

Autodesk.Navisworks.Api.Interop.ComApi

 

In the documentation that gets installed for some reason is missing information on the Interop API. Makes working with a struggle.

0 Likes
Message 9 of 14

ulski1
Collaborator
Collaborator

I you haven't already read it -  start by reading the page called  "Using the Navisworks COM API with the .NET API " in the help file  C:\Program Files\Autodesk\Navisworks Simulate 2019\api\NET\documentation\NET API.chm

0 Likes
Message 10 of 14

Anonymous
Not applicable

Yup. Read it. All it provides is a few magic code snippets and a note about garbage collection.

 

What I'm looking for is detailed info about the Interop API the code snippets references, like the rest of the APIs that the chm file contains.

0 Likes
Message 11 of 14

ulski1
Collaborator
Collaborator
I don't think Autodesk ever provided that you are after. If you tell us what you are trying to do in your code perhaps we can help.
0 Likes
Message 12 of 14

Anonymous
Not applicable

I'm trying to export information out from a Naviswork file. I want to know what all data is available to me so I can build as nice an exporter as possible. Right now all the geometry I've been able to export has been through other seemingly magical code snippets found through forums.


0 Likes
Message 13 of 14

ulski1
Collaborator
Collaborator
I'm sorry, that is not something I have tried to do. Perhaps others can help.
0 Likes
Message 14 of 14

zhangshijie0987
Community Visitor
Community Visitor

您好,我是以为初学者,我正在使用visual studio对Autodesk进行二次开发,我已经引用了Autodesk.Navisworks.ComApi,但是我在代码行中输入ComApi.InwOpState10 oState = ComApiBridge.State;的时候显示未能找到类型或命名空间“ComApi”。请问您知道如何解决这个问题吗

 

 

 

0 Likes