absolute position
Moderators: SDS, support, admin
absolute position
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.
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.
Re: absolute position
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.
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
Chat support on Skype: cadsofttools.support
Re: absolute position
here is an image.
How can i get MText absolute position (without using a picture box and mouse ?)
How can i get MText absolute position (without using a picture box and mouse ?)
- Attachments
-
- cadPoints.JPG (150.41 KiB) Viewed 17812 times
Re: absolute position
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.
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
Chat support on Skype: cadsofttools.support