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 : Thursday, December 22, 2005 1:24:13 PM(UTC)
imad khan

Groups: Registered
Posts: 12


how do you access the angle drawn by the protractor annotation object.

i need to use this angle, i tried AnnGetText but that does not work for protractor

Using Lead tools 14 with C++ Builder 6

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 : Sunday, December 25, 2005 10:27:51 PM(UTC)

Amin  
Amin

Groups: Manager, Tech Support
Posts: 367

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

Imad,

In LEADTOOLS 14.5, a new method named AnnGetAngle was added to the VCL
annotations control. If you own v14.0, you can either use the DLL API
function L_AnnGetAngle, or contact sales@leadtools.com to enquire about upgrading to v14.5.

Amin Dodin
LEADTOOLS Technical Support

Amin Dodin

Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
#3 Posted : Monday, December 26, 2005 12:56:59 PM(UTC)
imad khan

Groups: Registered
Posts: 12


Thanks for your reply

I am Using Lead tools 14.0 for C++ Builder 6. I could not find L_AnnGetAngle in LeadTools help.

when i used it as  L_AnnGetAngle( L_HANDLE hAnnObject, double FAngle );

i got unresolved external , means i dont have this function available.

could you please update me on this. An tiny code snippet would be a great help

Thanks Again. 

 
#4 Posted : Monday, December 26, 2005 8:33:39 PM(UTC)

Amin  
Amin

Groups: Manager, Tech Support
Posts: 367

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

The prototypes for this function and other API annotations functions is
in [LEADTOOLS folder]\include\Ltann.h, so you will need to #include this file.

Alternatively, include L_bitmap.h because it includes all needed LEADTOOLS declarations.

To link the function using a Borland linker, add ltann_bc.lib to the project.

Amin Dodin

LEADTOOLS Technical Support
Amin Dodin

Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
#5 Posted : Tuesday, December 27, 2005 6:10:04 AM(UTC)
imad khan

Groups: Registered
Posts: 12


In my project i am using LEADAnn.hpp and LeadMain.hpp for annotations ( Version: LeadTools 14 c++ Builder 6 ).

When i include Ltann.h i am getting error such as "Ambiguity between L_UNIT and LeadTyp::L_UINT." and it opens the file lttyp.h

and same result with L_bitmap.h.

I was wondering is there is any way i could use a scope resolution to get rid of this ambiguity.

Thank you 

 

 
#6 Posted : Tuesday, December 27, 2005 8:51:03 AM(UTC)

Amin  
Amin

Groups: Manager, Tech Support
Posts: 367

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

Imad,

Since you are using the VCL, there's no need to #include the .H files.
The VCL files themselves for C++ Builder contain the declarations for
the API functions. In particular, L_AnnGetAngle is declared in
LEADUnt.hpp, and since LEADUnt.hpp is included in LEADAnn.hpp, simply using the LEAD VCL Ann object will give you that declaration.

This means you only need to include Ltann.h or L_bitmap.h if you are
building an API application that doesn't use the LEADTOOLS VCL. Sorry if I gave you misleading information last time.

However, you will need to add the "*_bc.lib" files to any project that uses annotations. The minimum list of files needed is:
ltann_bc.lib
ltdis_bc.lib
ltDLGKRN_bc.lib
ltefx_bc.lib
ltfil_bc.lib
ltimg_bc.lib
ltkrn_bc.lib

Once you have those, you simply call the code as follows:
double d=0;
L_AnnGetAngle(hProtObject, &d);


If you still face a problem, create a very small project that shows how
you tried to call the function and either post it here or send it to support@LEADTOOLS.com

If you post or email files, please put them in a ZIP file first.

Amin Dodin

LEADTOOLS Technical Support
Amin Dodin

Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
#7 Posted : Tuesday, December 27, 2005 10:06:17 AM(UTC)
imad khan

Groups: Registered
Posts: 12


Great!  its working now

Thanks a lot.

 

 
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-2024, Yet Another Forum.NET
This page was generated in 0.084 seconds.