Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Vector files and c#
Started by Smoke at 03-27-2008 3:17. Topic has 5 replies.

Print Search « Previous Thread Next Thread »
  03-27-2008, 3:17
Smoke is not online. Last active: 8/13/2008 10:25:33 AM Smoke

Top 200 Posts
Joined on 03-23-2008
Posts 15
Vector files and c#
Reply Quote
Hi,

I develop c# application and I need to add support for loading and saving vector files (dgn, shp,..). I downloaded evaluation version of LeadTools but there is no example how to load vector files in c#. Is possible to do it?

Thanks for your help

Smoke
   Report 
  03-27-2008, 9:03
Qasem Lubani is not online. Last active: 9/28/2008 12:30:21 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,090
Re: Vector files and c#
Reply Quote

We don't have a native .Net vector objects that can be used in C#. However, you can use our DLL API Vector functions in .Net. The DLL API is available with LEADTOOLS version 15.

As an easier alternative, LEADTOOLS version 14.5 contains ActiveX vector controls that can be used relatively easy in a .Net environment.  

If you are interested in using the Vector ActiveX controls form version 14.5, please send an email to support@leadtools.com requesting the free evaluation download link.


Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
  03-27-2008, 10:18
Smoke is not online. Last active: 8/13/2008 10:25:33 AM Smoke

Top 200 Posts
Joined on 03-23-2008
Posts 15
Re: Vector files and c#
Reply Quote
I prefer version 15, because there is support for saving DGN.

Is somewhere example how to use DLL API Vector functions with C# or VB.NET?

Thanks

Smoke
   Report 
  03-27-2008, 10:49
GregR is not online. Last active: 10/10/2008 11:46:18 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,621
Re: Vector files and c#
Reply Quote
This customer posted a project using the Vector API DLL functions in C# a few days ago.  You don't need to worry about the problem we was working through, but his test project (3rd post) does show how to use the API within C# and was pretty simple.

http://support.leadtools.com/SupportPortal/cs/forums/20023/ShowPost.aspx

Greg Ross
LEADTOOLS Technical Support
   Report 
  03-28-2008, 1:33
Smoke is not online. Last active: 8/13/2008 10:25:33 AM Smoke

Top 200 Posts
Joined on 03-23-2008
Posts 15
Re: Vector files and c#
Reply Quote
Thanks, the project explain me what I would to do.

I have developed vector editor in C#. Now I need to add support for reading/saving other vector formats (DGN, ...). I would like to use LeadTools only for loading/saving vectors and transform them to my internal structures. Therefore I need C# wrapper for 4 functions:
L_VecLoadFile, L_VecSaveFile, L_VecGetObject and L_VecSetObject.

Do you think it could be done with LeadTools? Is C# wrapper for those functions available?

Thanks

Smoke

   Report 
  03-28-2008, 9:15
GregR is not online. Last active: 10/10/2008 11:46:18 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,621
Re: Vector files and c#
Reply Quote
We don't make any C# wrappers, you will have to do that yourself because wrapping our API functions is just like wrapping any other Windows API function.  I pointed you to the other post so you can see how it is done and get a head start if you haven't seen it before.

There shouldn't be any limitations of which functions can be wrapped because you are just making calls to the API DLLs.

Greg Ross
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » Developer » Vector » Vector files and c#

Powered by Community Server, by Telligent Systems