Author Topic: block insertion based on text justification  (Read 1659 times)

0 Members and 1 Guest are viewing this topic.

ETR

  • Guest
block insertion based on text justification
« on: October 30, 2015, 08:28:13 PM »
Hello, I'm fairly new to all forms of AutoCAD programming and I have recently taken over the updating and maintaining of the programming that we use at my employ. I can usually figure out what I need by reverse engineering the programming that is already in place and by searching on forums, etc.

Anyway what I am trying to do but, can't find everything I need to piece it together is insert a block based on the justification of a text object. What makes this difficult for me is that I need the block insertion point to vary based on the text justification. What I mean is if I have text that is centered justified I need the block to be centered with the text and offset below it a specific distance. Or if I have text that is left justified I need the block to insert left aligned with the text and offset below it a specific distance. etc. etc.

Currently I just insert the block and then move it from a node point that corresponds to the text justification. Which is a little clumsy when a different node point is needed for each text justification.

I did find a post on finding the justification point of a text object (http://www.theswamp.org/index.php?topic=4385.msg52904#msg52904) but, I'm not sure how to use it to tell the block how to insert after the justification point is found.

Any help would be appreciated. Thanks

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: block insertion based on text justification
« Reply #1 on: October 31, 2015, 07:10:03 AM »
Welcome to the Swamp.  8)

No time to help, tennis match this morning.

The answer is in the following;

----------  Align Text  ---------------
http://www.theswamp.org/index.php?topic=25824.0  Align Text X-Y Axis  CAB
http://www.theswamp.org/index.php?topic=8903.msg367635#msg367635 Tim Willey / CAB
http://www.theswamp.org/index.php?topic=29153.0  Align Text to Curve by Lee Mac
http://www.cadtutor.net/forum/showthread.php?37646-Align-Text-to-Curve
http://www.theswamp.org/index.php?topic=33735.0  Slinky Text by Lee Mac
http://www.theswamp.org/index.php?topic=30943.0  LeeMac text2object reactor

----------  Text Overlap Detection  -----------
http://www.theswamp.org/index.php?topic=2133.msg27500#msg27500

----------  Insert Text  --------------
http://www.theswamp.org/index.php?topic=1392.0 CAB

----------  Box Text by CAB   -------------
http://www.theswamp.org/index.php?topic=7003.0  CAB

Bounding Box for Groups of Plain Text [Older Version]
http://www.theswamp.org/index.php?topic=6045.0

Shrink Mtext width to fit text
http://www.theswamp.org/index.php?topic=4592.msg55517#msg55517

-----------  Text Style  -------------
Merge text styles (or change text styles)  by Tim Willey
http://www.theswamp.org/index.php?topic=17659.0

-----------  Text Explode  -------------
http://www.theswamp.org/index.php?topic=31435.0
Netload  . . . . Txt2Geom\Txt2Geom\bin\Release\TextToGeom.dll
Command: t2g
http://www.theswamp.org/index.php?topic=48321.0


--------------  Clone / Copy / Merge Text  ----------------
Clone Text Object by CAB - Clone one text string from dText mText
or Attribute to other selected dText mText or Attribute object
http://www.theswamp.org/index.php?topic=6874.0
http://www.theswamp.org/index.php?topic=30368.0  CopyText.lsp v1.3 by Alan J. Thompson (alanjt)
http://www.theswamp.org/index.php?topic=28685.0  SwapText by Joe Burke
http://www.theswamp.org/index.php?topic=19805.msg241476#msg241476  Copy 2 Clipboard VVA
http://www.theswamp.org/index.php?topic=21764.0   Copy 2 Clipboard
http://www.theswamp.org/index.php?topic=21764.msg263566#msg263566
http://www.theswamp.org/index.php?topic=30451.0  txt2mtxt w/ copy option LeeMac
http://www.theswamp.org/index.php?topic=36265.msg414554#msg414554 LeeMac
http://www.theswamp.org/index.php?topic=36265 LeeMac
http://www.theswamp.org/index.php?topic=35607.0  t2mt RonJonP
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.

ETR

  • Guest
Re: block insertion based on text justification
« Reply #2 on: November 11, 2015, 06:32:57 PM »
Looks like I have a lot of reading to do that hopefully I understand enough to help me figure out what I'm trying to do. It will probably take me a while but, I'll let you know if I figure it out or need more help.

Thanks