Displaying DWG in ASP.NET page
Moderators: SDS, support, admin
Displaying DWG in ASP.NET page
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.
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.
Re: Displaying DWG in ASP.NET page
Hello.
CAD Import .NET components can be used with a web application. Please take a look at AspNet demo from the package.
Alexander.
CAD Import .NET components can be used with a web application. Please take a look at AspNet demo from the package.
Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
Re: Displaying DWG in ASP.NET page
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.
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.
Re: Displaying DWG in ASP.NET page
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.
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.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
Re: Displaying DWG in ASP.NET page
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?
Any one implemented SelectEx method on DWGImage with ASP.NET?
Re: Displaying DWG in ASP.NET page
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.
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.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support