Author Topic: Text objects move  (Read 3594 times)

0 Members and 1 Guest are viewing this topic.

daron

  • Guest
Text objects move
« on: July 25, 2005, 12:50:54 PM »
when they haven't been set to do so.
I'm working a function that so far only changes the 72 and 73 group codes using subst. I have no group code 10 or 11 being subst'ed but for some reason every text object is, when updated, thrown into outer space :shock:. Anybody have any knowledge of why this would happen?

Dommy2Hotty

  • Swamp Rat
  • Posts: 1127
Text objects move
« Reply #1 on: July 25, 2005, 12:53:27 PM »
Gremlins?

daron

  • Guest
Text objects move
« Reply #2 on: July 25, 2005, 12:55:22 PM »
Just as I suspected. Anyone else?

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Text objects move
« Reply #3 on: July 25, 2005, 12:56:06 PM »
Yes, anytime a text object is modified to anything other than Left justified (I think there may be one or two more) AutoCAD is set to use DXF 11 (alignment point) as opposed to DXF 10 (insertion point). ANYTIME you change the justification of the text, it is best to update both DXF 10 and DXF 11 to the point you EXPECT it to be aligned to (unless you use FIT) otherwise it will always go to unexpected points.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

CADaver

  • Guest
Text objects move
« Reply #4 on: July 25, 2005, 12:59:05 PM »
UCS?

daron

  • Guest
Text objects move
« Reply #5 on: July 25, 2005, 01:00:11 PM »
So you're saying set 72, 73, then set 11? I'll give that a shot.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

daron

  • Guest
Text objects move
« Reply #7 on: July 25, 2005, 01:46:41 PM »
Thanks all. Randy, this was not as simple as UCS. Keith's smack on the head was what I needed. BTW, the unexpected points are this: 0,0 with an 11 group code being the length of the string, the height of the text and a possible z-value.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Text objects move
« Reply #8 on: July 25, 2005, 01:58:11 PM »
actually DXF 11 is defined as the "Alignment point" when using an "aligned" justification.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

daron

  • Guest
Text objects move
« Reply #9 on: July 26, 2005, 07:53:07 AM »
Okay. What I mean is DXF 10 defaults to 0,0, and it seems that DXF 11 is then showing... :idea: ah, I getcha. Let's say alignment point 11 is set to middle center, the coordinates from 11 to 10 would be showing half the length of the string and half the height of the text and if alignment point 11 gets changed to right or top left, it would only give any indication of either the height (top left) of the text or length (right) of the string, but not both. Either way, I'm sure this is still usable for keeping or putting the text back where it came from when changing justifications. Thanks for the lesson Keith. It helps to discuss things to clear the head.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Text objects move
« Reply #10 on: July 26, 2005, 08:12:21 AM »
Actually in every text justification EXCEPT fit and left, DXF 11 controls the actual point where you would expect the text to be.

For example, you have a text entity with DXF 10 (10,10,0) and DXF 11 (0,0,0) ... left justification ... the texts left justification point will be at 10,10,0, now lets say you programmatically change the text from left to middle center, now the middle center will be at 0,0,0, and while DXF 10 still shows 10,10,0 it is ignored. If you change DXF 11 to 10,10,0 the middle center of that text will be at 10,10,0, and DXF 10 will still be 10,10,0 ....

Imagine it like this

(if (or (> DXF72 0) (> DXF73 0))
 (use DXF11)
 (use DXF10)
)
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

daron

  • Guest
Text objects move
« Reply #11 on: July 26, 2005, 08:29:52 AM »
So your saying if text wasn't originally set to left, then... I have to go check this out and see it to make sense. I'll be back later.