Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Sunday, March 12, 2006 11:50:10 PM(UTC)
achilles

Groups: Registered
Posts: 5


Hi;

I'm new with Vector Toolkit, so I don't have any idea yet what to do.  Currently I'm using LeadTools 14.5 and my problem is how can I possibly extract the data structure of the file being read by your Toolkit!  Because we I have a program that maintains a proprietary format and I wanted to use leadtools in import and export function.  But as I see it, I can not find any information how can I extract the structure of the file, like the dxf file so I can convert it to our own format.

Hope you can help me, like giving example or anything that can help me achieve y goal.

Thanks

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, March 13, 2006 7:36:50 AM(UTC)

Travis  
Travis

Groups: Registered, Tech Support
Posts: 207

Was thanked: 3 time(s) in 3 post(s)

I'm sorry but we do not give out such information.
Travis Montgomery
Senior Sales Engineer
LEAD Logo
 
#3 Posted : Friday, March 17, 2006 12:03:55 PM(UTC)

Alexy  
Alexy

Groups: Registered
Posts: 3


What type of data are you going to get? LeadTools has own primitives and you can use it and convert into your data format. Describe your problem more exactly.
 
#4 Posted : Wednesday, March 22, 2006 6:51:55 PM(UTC)
achilles

Groups: Registered
Posts: 5


Hi Alexy;

Like for example I would like to open a dxf file and using leadtools I wanted to know how can I exactly get the information if the item I'm reading/opening is a polyline, a symbol or block and the likes.  Also how can I extract its features coordinates.  These are just a few information I need to know so I can easily adapt it in our data format.

Thanks in advance.

 
#5 Posted : Thursday, March 23, 2006 5:32:25 AM(UTC)

Travis  
Travis

Groups: Registered, Tech Support
Posts: 207

Was thanked: 3 time(s) in 3 post(s)

If you're just wanting to get information about each object, then do this.  Load the image, call GetLayerByIndex, EnuObjects, in the EnumObjects callback we give you an ILEADVectorObject which holds the values for each object.
Travis Montgomery
Senior Sales Engineer
LEAD Logo
 
#6 Posted : Thursday, March 23, 2006 10:22:26 AM(UTC)

Alexy  
Alexy

Groups: Registered
Posts: 3


It's very easy to get info...

class MyVector : public LVectorWindow     
{
public:
   MyVector( L_INT index, HWND hWnd );
   virtual MyVector

   virtual L_INT EnumObjectsCallBack( pVECTORHANDLE pVector, pVECTOROBJECT pObject );
   void GetObjects();
   ... 
}

...
void GetObjects()
{
   EnumObjects();
}
...

L_INT CLTVector::EnumObjectsCallBack(pVECTORHANDLE pVector, pVECTOROBJECT pObject)
{
 switch( pObject->nType )
 {
 case VECTOR_VERTEX:
  {
   VECTORVERTEX vertex;
   LVectorBase vectorBase( pVector );
   LVectorVertex vectorVertex( pObject, &vectorBase );
   vectorVertex.LockObject( &vertex );

   //!- Do something -!  
   // vertex.Object.nType;
   // vertex.Point.x;
   // vertex.Point.y;
   // vertex.Point.z;

   vectorVertex.UnlockObject( &vertex );
  }
  break;
        ... 
        }
}
...

 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2019, Yet Another Forum.NET
This page was generated in 0.149 seconds.