Author Topic: Link between Text, Mtext and Attribute with Field  (Read 1643 times)

0 Members and 1 Guest are viewing this topic.

Fabricio28

  • Swamp Rat
  • Posts: 670
Link between Text, Mtext and Attribute with Field
« on: October 23, 2015, 06:16:40 AM »
Hi guys,
How are you?

I have to create a link with some informations.
So, I'm trying to create a Mtext as a field of attritubes.

i'd like to know if is possible to create that link between the objects to make faster my task. Because I have many objects in my project.

Regards

irneb

  • Water Moccasin
  • Posts: 1794
  • ACad R9-2016, Revit Arch 6-2016
Re: Link between Text, Mtext and Attribute with Field
« Reply #1 on: October 23, 2015, 08:52:54 AM »
You'd need something to build the field codes and then place that into the MText. Effectively you'd want to get the Object ID and then the relevant property.


Something similar I did a while ago: http://www.cadtutor.net/forum/showthread.php?57342-Sum-Numbers-in-Mtext-Fields-to-Mtext-Field&p=389198&viewfull=1#post389198


Which was incorporated into my Caddons tools: http://sourceforge.net/p/caddons/code/HEAD/tree/Libraries/text.lsp


Used in the DimText command here (basically sums the values in several text entities into another - all you want to do is concatenate them, actually a bit simpler) : http://sourceforge.net/p/caddons/code/HEAD/tree/General/DimUtils.LSP
Common sense - the curse in disguise. Because if you have it, you have to live with those that don't.

Fabricio28

  • Swamp Rat
  • Posts: 670
Re: Link between Text, Mtext and Attribute with Field
« Reply #2 on: October 23, 2015, 11:02:29 AM »
You'd need something to build the field codes and then place that into the MText. Effectively you'd want to get the Object ID and then the relevant property.


Something similar I did a while ago: http://www.cadtutor.net/forum/showthread.php?57342-Sum-Numbers-in-Mtext-Fields-to-Mtext-Field&p=389198&viewfull=1#post389198


Which was incorporated into my Caddons tools: http://sourceforge.net/p/caddons/code/HEAD/tree/Libraries/text.lsp


Used in the DimText command here (basically sums the values in several text entities into another - all you want to do is concatenate them, actually a bit simpler) : http://sourceforge.net/p/caddons/code/HEAD/tree/General/DimUtils.LSP

Hi irneb,

Thank you for replay,

But I couldn't make that modification. I'm trying, but my knowledge is very limited.  :-(

Thank you