absolute position

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
merco
Posts: 28
Joined: 25 May 2010, 10:03

absolute position

Post by merco » 28 May 2010, 09:42

I'm using the pro version to browse all entities and get TEXT and MTEXT elements.

These elements coordinates (x,y) are often different from abolute coordinates.
In the EditorDemo.exe for example I see x=24, y=400 in the property editor (these values are read from entity propery) but in the status bar I see the abolute position (5530,1520)

How can i calculate that absoulte position ?
I'm not using a picturebox to display the image, because is a batch process, so i can't use x,y mouse coordinates.

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

Re: absolute position

Post by support » 28 May 2010, 18:34

Hello.
Text and MText entities haven't X and Y properties. Are you meant the Top and Left rows from Properties window of Editor? Please post here or send to support@cadsofttools.com such DXF file with texts and screen shot for more detailed explanation.

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

merco
Posts: 28
Joined: 25 May 2010, 10:03

Re: absolute position

Post by merco » 31 May 2010, 10:02

here is an image.
How can i get MText absolute position (without using a picture box and mouse ?)
Attachments
cadPoints.JPG
cadPoints.JPG (150.41 KiB) Viewed 17812 times

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

Re: absolute position

Post by support » 31 May 2010, 12:54

Hello.
The CADMText object (as other elements) belongs to CADInsert object on your drawing. The difference between coordinates from properties window (top, left rows) and coordinates from mouse (down of control) conditioned by CADInsert.Scale property value that set approximately 0.1 for each axis of your drawing. This property specifies scale for drawning the referenced block in a CAD image. So, if you will set the scale to (1, 1, 1) then the coordinates will be equal.

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

Post Reply