Understanding Points

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

Post Reply
Dane
Posts: 7
Joined: 25 Apr 2005, 06:19

Understanding Points

Post by Dane » 25 Apr 2005, 06:25

I am experimenting with several features of the VCL import and having difficulty understanding the point values. For instances TsgDXFText has a 'Box' property and a 'Point' property. What are these in relation to? Do they require conversion?

Thanks

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

Post by support » 25 Apr 2005, 12:44

There are no relations between properties 'Box' and 'Point'.
There is no need for any theirs conversion.
'Box' - determines the rectangle embraced the entity.
'Point' - first alignment point.
'Point1' - second alignment point.
'HAlign', 'VAlign' - Horizontal and Vertical text justification type.
'StartPoint' - contains the REAL coordinates of text starting point.
It can differ from Point property due to horizontal and vertical alignment values.

Properties 'Box' and 'Point' are for internal uses.
For drawing TEXT use property 'StartPoint'.

Sergey.

please post questions to the forum or write to support@cadsofttools.com

Dane
Posts: 7
Joined: 25 Apr 2005, 06:19

Post by Dane » 26 Apr 2005, 05:06

Hi,

Thank you for the information. I missed the Text StartPoint altogether. We enclose certain text entities inside a polyline (rectangular box) to denote subassembly. What is my best method to ascertain whether a text's StartPoint is inside the boundaries of such a polyline?

Regards,
Dane

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

Post by support » 29 Apr 2005, 17:23

StartPoint is an insert point for drawing with all alignments.
To determine whether the text is inside of your "rectangular box" compare Text.Box with your "rectangular box".

Sergey.

please post questions to the forum or write to support@cadsofttools.com

Dane
Posts: 7
Joined: 25 Apr 2005, 06:19

Post by Dane » 01 May 2005, 06:19

Thanks Sergey. I'll give that a go.

Dane
Posts: 7
Joined: 25 Apr 2005, 06:19

Post by Dane » 18 May 2005, 06:20

Hi,
I am still having difficulty determing text entity location. When iterating through the Text entities the StartPoint on a number of them shows as 0,0,0 yet they are not in the same spot. The HAlign/VAlign are set the same. What am I doing incorrectly?

Regards,

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

Post by support » 02 Sep 2005, 14:00

Hello Dane,

Could you please send to us file with examples of the problem you've described.

Sergey.

please post questions to the forum or write to support@cadsofttools.com

Post Reply