Community
DWF
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DWG Viewer Control for C#/VB?

8 REPLIES 8
Reply
Message 1 of 9
Anonymous
6679 Views, 8 Replies

DWG Viewer Control for C#/VB?

Does AutoDesk or another company provide a DWG Viewer control for C# or VB?
8 REPLIES 8
Message 2 of 9
quancij
in reply to: Anonymous

DWG TrueView is what you want - it is freely distributable and both a standalone DWG Viewer and ActiveX Control. learn more at http://usa.autodesk.com/adsk/servlet/index?id=5921930&siteID=123112

Note it is heavy weight viewer at 109mb - which is really what one needs to read and view DWGs with 100% accuracy.

If you want a light weight viewer, you really should see if your users can work with DWF... so you can use the light weight 5mb DWF Viewer - which is also a freely distributable ActiveX Control with a pretty good COM API.
Message 3 of 9
Anonymous
in reply to: Anonymous

Thanks for the response, I thought everyone forgot about me.

I started playing around with the DWF Viewer.

Is there a way to add the components (in Visual Studio)without having to formally install the DWF Viewer app?

I couldn't figure this out, so I installed it (the Viewer) and the components are now visible in VS.

I'm wondering, because, if I distribute my application, what dll's will I have to include in the deployment or will I have to install the Viewer on the client machine too? (Which seems to defeat the purpose of a custom app)

Also, I'm not familiar with the DWF format. Someone had told me it's been around since r13, but I've never encountered it.

For the sake of highlighting or markup, can the DWF be examined programmatically for the drawing entities?
If so, I'll assume there is an API for this. (No problem)
Or, does the user have to save the DWG to DWF specifying what gets "published" and available to programmers?

The general task I want to accomplish, is to have users browse a database of drawing info and have the viewer show the drawing, or viewport, and highlight/markup entities depending on realtime information. (2D mostly)

For example: If in the real world a piece of equipment needs repair, a user can enter this fact in a SQL database.
Later, a user can reference the drawing for the item and from there, the application can load the drawing in the viewer and highlight the piece that needs repair based on the database info.

Thanks in advance for any advice.

Regards,

Jasen
Message 4 of 9
Anonymous
in reply to: Anonymous

wrote ...

> DWG TrueView is what you want - it is freely distributable and both a
> standalone DWG Viewer and ActiveX Control. learn more at
> http://usa.autodesk.com/adsk/servlet/index?id=5921930&siteID=123112

Is this the same thing as DWG Viewer 2?

--
Regards,

Fred Chateau
fchateauAtComcastDotNet
Message 5 of 9
Anonymous
in reply to: Anonymous

Autodesk DWF Composer ships with the Autodesk DWF Composer application, a
DWG viewer, the Autodesk DWF Writer, and Autodesk Inventor View. When the
DWG viewer was made available separately, it was renamed to Autodesk DWG
TrueView. Since the original on the Autodesk DWF Composer CD was considered
release 1, Autodesk DWG TrueView is regarded as release 2.

I am under the impression that Autodesk DWG TrueView is not a full ActiveX
Control. For example, you cannot embed DWG and DXF files into Microsoft
Office documents or HTML; however Jim Quanci is normally right about these
things.

"Fred Chateau" wrote in message
news:5049741@discussion.autodesk.com...
wrote ...

> DWG TrueView is what you want - it is freely distributable and both a
> standalone DWG Viewer and ActiveX Control. learn more at
> http://usa.autodesk.com/adsk/servlet/index?id=5921930&siteID=123112

Is this the same thing as DWG Viewer 2?

--
Regards,

Fred Chateau
fchateauAtComcastDotNet
Message 6 of 9
Anonymous
in reply to: Anonymous

"Scott Sheppard [Autodesk]" wrote ...

> Autodesk DWF Composer ships with the Autodesk DWF Composer application, a
> DWG viewer, the Autodesk DWF Writer, and Autodesk Inventor View. When the
> DWG viewer was made available separately, it was renamed to Autodesk DWG
> TrueView. Since the original on the Autodesk DWF Composer CD was
> considered release 1, Autodesk DWG TrueView is regarded as release 2.

I just installed Composer 2 and they're distributing it with something
called DWG Viewer 2. The version is 2.0.0.153 (OEM build R.2.54.20), so are
we refering to the same product? The reason I'm asking is that I didn't see
an accompanying API that I can use to access DWG Viewer from C#, and I was
wondering if I were to download and install DWG TrueView, I might have more
programatic options available to me.

--
Regards,

Fred Chateau
fchateauAtComcastDotNet
Message 7 of 9
Anonymous
in reply to: Anonymous

wrote ...

> I'm wondering, because, if I distribute my application, what dll's will I
> have to include in the deployment or will I have to install the Viewer on
> the client machine too? (Which seems to defeat the purpose of a custom
> app)

It seems that you and I are working on similar projects. I'm new to AutoCAD
so I don't know how accurate my answers are, but I thought I'd mention what
I"ve discovered over the past two weeks. I think I remember something about
an ActiveX control that downloads directly into IE, but I may be confusing
that with another viewer.

> Also, I'm not familiar with the DWF format. Someone had told me it's been
> around since r13, but I've never encountered it.

Again, I don't know how accurate this is but I tend to think of DWF as a
mapping format (as opposed to a precision drawing format) so it depends on
what your requirements are.

> For the sake of highlighting or markup, can the DWF be examined
> programmatically for the drawing entities? If so, I'll assume there is an
> API for this. (No problem) Or, does the user have to save the DWG to DWF
> specifying what gets "published" and available to programmers?

You can do a lot of reading but not much writing. We just discovered that
when you use the new EPlot6 driver to export into DWF there's a new setting
to determine how to handle the layers. If it's set wrong, you won't have
access to them.

> The general task I want to accomplish, is to have users browse a database
> of drawing info and have the viewer show the drawing, or viewport, and
> highlight/markup entities depending on realtime information. (2D mostly)

Sounds a lot like my application...

My understanding is that you can only write to markup. I wanted to add small
shapes or raster images (from toolbar, drag and drop, whatever...) and link
them with data in a SQL Server, but they need to be spatially accurate when
zooming and panning.

I might not mind doing it with markup if it saves me an AutoCAD license for
every copy, but even if it can be done it started to look like a bad
workaround to me, so I started looking into ObjectARX instead. I was
somewhat hesitant because I was a little intimidated by all the ObjectARX
documentation, most of which is written in C++, but I loaded the .NET
samples today and performed 2.0 builds in VS 2005. With a small amount of
debugging they loaded into AutoCAD 2006 and they work really well.

So maybe someone from AutoCAD can confirm whether I'm right about this. Can
you program a simple application like we're describing without ObjectARX and
not have it look like a kludge?

--
Regards,

Fred Chateau
fchateauAtComcastDotNet
Message 8 of 9
Anonymous
in reply to: Anonymous

We are talking about the same thing. The DWG Viewer that comes with Autodesk
DWF Composer has been packaged separately as Autodesk DWG TrueView. I am
under the impression that neither is an ActiveX Control. I am under the
impression that Autodesk does not offer an ActiveX Control for the DWG/DXF
formats. We do however offer the free Autodesk DWF Viewer (an ActiveX
Control) which can be integrated into a variety of other applications.

"Fred Chateau" wrote in message
news:5050499@discussion.autodesk.com...
"Scott Sheppard [Autodesk]" wrote ...

> Autodesk DWF Composer ships with the Autodesk DWF Composer application, a
> DWG viewer, the Autodesk DWF Writer, and Autodesk Inventor View. When the
> DWG viewer was made available separately, it was renamed to Autodesk DWG
> TrueView. Since the original on the Autodesk DWF Composer CD was
> considered release 1, Autodesk DWG TrueView is regarded as release 2.

I just installed Composer 2 and they're distributing it with something
called DWG Viewer 2. The version is 2.0.0.153 (OEM build R.2.54.20), so are
we refering to the same product? The reason I'm asking is that I didn't see
an accompanying API that I can use to access DWG Viewer from C#, and I was
wondering if I were to download and install DWG TrueView, I might have more
programatic options available to me.

--
Regards,

Fred Chateau
fchateauAtComcastDotNet
Message 9 of 9
Anonymous
in reply to: Anonymous

i am working on the same project. i am using ObjectARX to get all entity information from autocad. ie the dwg file. once i have all information i can play with it. i am using GDI to render all entities.

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

Post to forums  

Forma Design Contest


Autodesk Design & Make Report