CADImport.NET Issue loading Drawings

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
Caisorp
Posts: 2
Joined: 01 Aug 2008, 09:42

CADImport.NET Issue loading Drawings

Post by Caisorp » 01 Aug 2008, 09:58

I have a customer who is looking to purchase the CADImport.NET product so that I can integrate their production system and quality system to allow users to view Autocad drawings on the production line. So I will be using the software to develop an application to only view these drawings. I have been using the demo version of CADImport.Net to try and get an understanding of what is invloved. Please bare in mind that most of the DWG files have linked JPG's that also exists in the same directory as the drawings. I have written the following code in vb.net.

Dim cadImage As CADImage
Dim cadPictBox As CADImport.CADImportControls.CADViewerControl

cadImage = cadImage.CreateImageByExtension("C:\Drawings\RAP121.DWG")
cadImage.LoadFromFile("C:\Drawings\RAP121.DWG")
cadPictBox = New CADImport.CADImportControls.CADViewerControl
cadPictBox.Dock = DockStyle.Fill
cadPictBox.Enabled = True
cadPictBox.Visible = True
cadPictBox.Image = cadImage
cadPictBox.ToolsPanelVisible = True
cadPictBox.EntityTreeVisible = False
cadPictBox.EntityPropertyGridVisible = False
cadPictBox.LayoutsPanelVisible = False
cadPictBox.DimensionVisible = True
cadPictBox.DoResize()

My issue is this, when the drawings load they display but are missing parts of the drawing including the linked JPG's. The drawing is also small and positioned in the to left of the CADViewerControl. When I use the CADViewerControl's load file on the tool bar and load the exact same DWG, the linked JPG's are now in the drawing and the drawing is sized to fit the screen, what code do I need to acheive the same outcome.

Any help would be greatly appreciated.

Robert Glass

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: CADImport.NET Issue loading Drawings

Post by support » 05 Aug 2008, 15:01

Hello Robert,

We will answer you soon.

Sergey.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Caisorp
Posts: 2
Joined: 01 Aug 2008, 09:42

Re: CADImport.NET Issue loading Drawings

Post by Caisorp » 07 Aug 2008, 16:07

I look forward to your response.

Also can you give me some idea of the licensing costs. This customer currently has 17 computers on the factory floor, each will be running the application I am developing.

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: CADImport.NET Issue loading Drawings

Post by support » 08 Aug 2008, 14:34

Hello Robert,

We recommend to use the following way:

Code: Select all

cadPictBox.LoadFile("C:\Drawings\RAP121.DWG")
Also can you give me some idea of the licensing costs. This customer currently has 17 computers on the factory floor, each will be running the application I am developing.
It depends on the version you need. Please contact our Sales Dept (sales@cadsofttools.com) to discuss this question more precise.

Sergey.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply