View Full Version : Unable to insert text at correct coordinates
6th Feb 2008, 12:28 pm
I have a program in AutoLISP that generates drawings. On using the command 'text' to insert data at specific coordinates, the data somehow appears somewhere else and not where I want it to. I've tried changing the coordinate values which re-positions the data and there seems to be some point upto which the text location changes but after that the text doesn't move further. As if, there is some sort of block in the drawing background that doesn't allow any text to be written onto it?
This happens with some of the text that I insert and not all. Any insights would be much appreciated.
6th Feb 2008, 12:47 pm
Could be many problems. Is the text being placed at specific points based on the UCS? Or it it placed randomly based on a base point of 0,0? Or is it being placed based on the survey grid?
6th Feb 2008, 01:14 pm
I am using the World coordinate system, so it's not relative and the fact that I could insert some text at correct locations and others which I couldn't..... makes me think.
6th Feb 2008, 01:17 pm
I think we need to know how this text, and what it is, is being placed.
6th Feb 2008, 01:32 pm
this could also be an Object Snap problem.
6th Feb 2008, 02:33 pm
Thanks a ton for replying guys.
This is the lisp command i'm using in my lisp file:
(command "text" "311,11" "2" "0" lastloopnum)
where lastloopnum is a string with a number in it as "ERTICA64030 "
Similarly I insert different texts at various coordinates using the same command, some of them are inserted correctly but others are offset by some variable amount.
What other things could I check as i presume it's not a problem with the code but maybe some hidden settings?
6th Feb 2008, 02:53 pm
Hate to say this, but it looks very much like that string is placing text at a specified point. How do you determine the text insertion point?
6th Feb 2008, 05:23 pm
Guyz thanks a lot for your inputs. OSnap was turned on which caused the problem.
BTW, it picked an end point of the drawing and always inserted text there. I got the point coordinates from its properties and was specifying global coordinates to insert text.
Anyways, glad it's sorted. Thanks loads!
Powered by vBulletin™ Version 4.1.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.