Author Topic: Upgraded Text 2 MText  (Read 22686 times)

0 Members and 1 Guest are viewing this topic.

Krushert

  • Seagull
  • Posts: 13679
  • FREE BEER Tomorrow!!
Re: Upgraded Text 2 MText
« Reply #15 on: September 29, 2009, 04:13:53 PM »
Krushert,

I haven't been able to replicate your error when testing - but I have updated the code to make it slightly more robust - it may not fix the issue, but it should make the error more transparent.  :wink:

Lee
I shall test it again.  BRB
I + XI = X is true ...  ... if you change your perspective.

I no longer CAD or Model, I just hang out here picking up the empties beer cans

Krushert

  • Seagull
  • Posts: 13679
  • FREE BEER Tomorrow!!
Re: Upgraded Text 2 MText
« Reply #16 on: September 29, 2009, 04:33:49 PM »
Okay it works on MText ... If the Mtext is TopLeft justified.  Before I was selecting mtext with middle center justification and when selected, it error-ed on the third object selected.

Code: [Select]
Command: T2M

Select Text:
øø Current Mode: New Line  øø  [Space to Change]
** Error: Automation Error. [b]Object was erased [/b]**
Command:
Command:

Second thing, When error-ing, it did not erased the object that it created (I don't know if it is or is not supposed to erase but your error message says object erased.   :|)  And When error-ing, it creates a repeat of the text selected with in the object.   :|




I + XI = X is true ...  ... if you change your perspective.

I no longer CAD or Model, I just hang out here picking up the empties beer cans

Lee Mac

  • Seagull
  • Posts: 12913
  • London, England
Re: Upgraded Text 2 MText
« Reply #17 on: September 29, 2009, 04:39:00 PM »
Ahhh gotcha  8-)

I know what is happening  :evil:

Will be back with a bug fix shortly  :-)

Lee Mac

  • Seagull
  • Posts: 12913
  • London, England
Re: Upgraded Text 2 MText
« Reply #18 on: September 29, 2009, 05:31:32 PM »
I have updated the code to Version 1.2, hopefully this resolves the alignment issues. I have also added code to keep the Text Height in tact - I get the feeling I am waging war on MText Formatting codes as far as keeping the formatting goes...  :|

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Upgraded Text 2 MText
« Reply #19 on: September 30, 2009, 12:43:21 AM »
What kind of text object is the "Hello, my name is:" one in the second gif?
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Lee Mac

  • Seagull
  • Posts: 12913
  • London, England
Re: Upgraded Text 2 MText
« Reply #20 on: September 30, 2009, 07:47:17 AM »
What kind of text object is the "Hello, my name is:" one in the second gif?

MTEXT  :-)

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Upgraded Text 2 MText
« Reply #21 on: September 30, 2009, 08:27:59 AM »
What kind of text object is the "Hello, my name is:" one in the second gif?

MTEXT  :-)

The grips are quite different, is that what 2010 MText grips look like?
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Lee Mac

  • Seagull
  • Posts: 12913
  • London, England
Re: Upgraded Text 2 MText
« Reply #22 on: September 30, 2009, 08:45:39 AM »
What kind of text object is the "Hello, my name is:" one in the second gif?

MTEXT  :-)

The grips are quite different, is that what 2010 MText grips look like?

Yup  :-)

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Upgraded Text 2 MText
« Reply #23 on: September 30, 2009, 08:48:09 AM »
What kind of text object is the "Hello, my name is:" one in the second gif?

MTEXT  :-)

The grips are quite different, is that what 2010 MText grips look like?

Yup  :-)
Wild. Ok, just wondering.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Lee Mac

  • Seagull
  • Posts: 12913
  • London, England
Re: Upgraded Text 2 MText
« Reply #24 on: September 30, 2009, 08:51:22 AM »
The "arrow" grips are so that you can quickly adjust the height and width of the text box - the arc also has the arrow grips, so you can adjust the radius and angle swept by the arc  :wink:

Krushert

  • Seagull
  • Posts: 13679
  • FREE BEER Tomorrow!!
Re: Upgraded Text 2 MText
« Reply #25 on: September 30, 2009, 10:11:01 AM »
I have updated the code to Version 1.2, hopefully this resolves the alignment issues. I have also added code to keep the Text Height in tact -

Works like a charm.  You keep producing this kind of stuff, I am going to have to create a folder in my lisp with your name on it and place it next to CAB's

I get the feeling I am waging war on MText Formatting codes as far as keeping the formatting goes...  :|
I would agree with that.  The few times I messed with text objects in my lisp, my exploded in size just to handle something that behind the scenes to the user.  But then again my code is big to begin with becuase I write with my kid's crayons. 

Thanks again for this nugget of gold.
I + XI = X is true ...  ... if you change your perspective.

I no longer CAD or Model, I just hang out here picking up the empties beer cans

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Upgraded Text 2 MText
« Reply #26 on: September 30, 2009, 11:09:39 AM »
The "arrow" grips are so that you can quickly adjust the height and width of the text box - the arc also has the arrow grips, so you can adjust the radius and angle swept by the arc  :wink:
Nice new addition in 2010. It looked like a dynamic block, that's why I was confused.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Lee Mac

  • Seagull
  • Posts: 12913
  • London, England
Re: Upgraded Text 2 MText
« Reply #27 on: September 30, 2009, 11:43:02 AM »
Works like a charm.  You keep producing this kind of stuff, I am going to have to create a folder in my lisp with your name on it and place it next to CAB's

Excellent - thanks Krushert :-)

I think I have a folder of CAB's with a few sub-routines that I use in it... he gets onto all our computers  ;-)

I get the feeling I am waging war on MText Formatting codes as far as keeping the formatting goes...  :|
I would agree with that.  The few times I messed with text objects in my lisp, my exploded in size just to handle something that behind the scenes to the user.  But then again my code is big to begin with becuase I write with my kid's crayons. 

Thanks again for this nugget of gold.

I have seen the lengths that people such as Joe Burke and Tim Willey will go to to accomodate the codes in text explosions, and unformatting - but I just wish that MText used a different method to save its formatting and not mix it with the actual Text String that it contains...  :|


The "arrow" grips are so that you can quickly adjust the height and width of the text box - the arc also has the arrow grips, so you can adjust the radius and angle swept by the arc  :wink:
Nice new addition in 2010. It looked like a dynamic block, that's why I was confused.

I wasn't sure how many versions had that addition - having gone straight from ACAD 2004 to 2010 when I became a student, but I must admit, it is a great new feature they have added.

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Upgraded Text 2 MText
« Reply #28 on: September 30, 2009, 05:55:38 PM »
just an idea suggestion....

maybe add a feature to allow user to Leave a copy of the selected text (maybe by pressing Shift Key)  ?
Keep smile...

Lee Mac

  • Seagull
  • Posts: 12913
  • London, England
Re: Upgraded Text 2 MText
« Reply #29 on: September 30, 2009, 06:21:34 PM »
just an idea suggestion....

maybe add a feature to allow user to Leave a copy of the selected text (maybe by pressing Shift Key)  ?

Nice idea Andrea, and not too difficult to incorporate also - what does everyone else think about this as an addition?