Displaying DWG in ASP.NET page

If you have any comments or questions about our developing tools, please do not hesitate to contact us at this forum

Moderators: admin, SDS, support

Displaying DWG in ASP.NET page

Postby GazzaJ » 07 Mar 2010, 15:34

I have successfully used the CADImport.Net components in a Windows Forms application - especially the Editor and Viewer controls.

Can I use these components on a web page? In my Windows Forms application I display a SWG file and capture when a user selects a particular entity and then carry out some processing - I wish to replicate this in my web application.
GazzaJ
 
Posts: 5
Joined: 07 Mar 2010, 15:28

Re: Displaying DWG in ASP.NET page

Postby support » 09 Mar 2010, 14:09

Hello.
CAD Import .NET components can be used with a web application. Please take a look at AspNet demo from the package.

Alexander.
Please post questions to the forum or write to support@cadsofttools.com
support
 
Posts: 2230
Joined: 30 Mar 2005, 08:36
Location: Russia

Re: Displaying DWG in ASP.NET page

Postby GazzaJ » 25 Mar 2010, 17:40

This works fine and creates a jpg image from the instantiated CADImage.

I can capture the position that the user clicks on the image - are there any methods available which will allow me to determine which entity has been clicked on.
GazzaJ
 
Posts: 5
Joined: 07 Mar 2010, 15:28

Re: Displaying DWG in ASP.NET page

Postby support » 29 Mar 2010, 11:30

Hello.
The CADImage.SelectEx method will return the entity that is located at clicked point. You must set CADImage.SelectionMode to SelectionEntityMode.Enabled value to use SelectEx or other selection method.

Alexander.
Please post questions to the forum or write to support@cadsofttools.com
support
 
Posts: 2230
Joined: 30 Mar 2005, 08:36
Location: Russia

Re: Displaying DWG in ASP.NET page

Postby pateketu » 09 May 2011, 17:36

I am trying SelectEx method in ASP.NET but keep getting NullReference Exception, I am using javascript to figure out the mouse poistion on the image, not sure if that is the correct way to do it though?

Any one implemented SelectEx method on DWGImage with ASP.NET?
pateketu
 
Posts: 6
Joined: 05 May 2011, 10:53

Re: Displaying DWG in ASP.NET page

Postby support » 11 May 2011, 13:27

Hello.
The cause of exception is CADImport.dll assembly using CADImportFace.EntityPropertyGrid object if selection take place. You can create and refer an instance of PropertyGrid class to avoid the exception.

Alexander.
Please post questions to the forum or write to support@cadsofttools.com
support
 
Posts: 2230
Joined: 30 Mar 2005, 08:36
Location: Russia


Return to CADImport.NET + DXFExport.NET

Who is online

Users browsing this forum: No registered users and 0 guests