Author Topic: Dynamic Align Text to Curve { with Reactors }  (Read 58076 times)

0 Members and 1 Guest are viewing this topic.

cmwade77

  • Swamp Rat
  • Posts: 1443
Re: Dynamic Align Text to Curve { with Reactors }
« Reply #60 on: November 19, 2009, 12:55:27 PM »
I have a correction to a previous post, the routine doesn't work with xrefs or blocks all the time.

cmwade77

  • Swamp Rat
  • Posts: 1443
Re: Dynamic Align Text to Curve { with Reactors }
« Reply #61 on: November 19, 2009, 02:36:46 PM »
Ok, I have it working now with Xrefs and blocks, although xrefs and blocks are slow to use, but they work, also the slowness only applies to xrefs and blocks, nothing else is slow.

I modified a routine from the express tools, but all of the code in included here (with all applicable copyright information), so you should not need the express tools installed to use this. Ifanyone has a better suggestion on how to handle it, feel free to let me know.

SteveK

  • Guest
Re: Dynamic Align Text to Curve { with Reactors }
« Reply #62 on: November 19, 2009, 05:22:57 PM »
Excellent program Lee, thanks!

Just a couple of notes:
I haven't been following the development and I notice DTRemove doesn't remove the xdata heading DTCURVE from the curve, just the rest, is this intentional? (I suppose for multiple aligned text?)

Also, one error I've received occurs in new drawings after aligning text to a curve once, immediately afterwards if I use DTREMOVE or DTCURVE I receive ** Error: Automation Error. Invalid class **. Something at my end?

Anyways when it matters it works great.  :-)

Steve

cmwade77

  • Swamp Rat
  • Posts: 1443
Re: Dynamic Align Text to Curve { with Reactors }
« Reply #63 on: November 19, 2009, 05:44:08 PM »
Ok, I have on more update to my IT, it allows you to specify the offset of the background mask.

Lee Mac

  • Seagull
  • Posts: 12912
  • London, England
Re: Dynamic Align Text to Curve { with Reactors }
« Reply #64 on: November 19, 2009, 06:30:07 PM »
Excellent program Lee, thanks!

Just a couple of notes:
I haven't been following the development and I notice DTRemove doesn't remove the xdata heading DTCURVE from the curve, just the rest, is this intentional? (I suppose for multiple aligned text?)

Also, one error I've received occurs in new drawings after aligning text to a curve once, immediately afterwards if I use DTREMOVE or DTCURVE I receive ** Error: Automation Error. Invalid class **. Something at my end?

Anyways when it matters it works great.  :-)

Steve

Hi Steve,

Many thanks for your comments, I'm glad you like the program.

Thanks for alerting me to the fact that the xData header is not completely removed - for the object selection, all xdata should be removed - I shall update the code with this.

As for the error you are receiving, I cannot seem to replicate it - at exactly which point do you receive the error?

Thanks,

Lee

Lee Mac

  • Seagull
  • Posts: 12912
  • London, England
Re: Dynamic Align Text to Curve { with Reactors }
« Reply #65 on: November 19, 2009, 06:37:12 PM »
Code in first post updated to Version 2.1, All xData is now removed when using DTRemove  :wink:

SteveK

  • Guest
Re: Dynamic Align Text to Curve { with Reactors }
« Reply #66 on: November 19, 2009, 07:05:41 PM »
Great, ta. (and download counter back to 1  :|)

It's annoying I can't produce the error every time, but this is what I do to get the error occasionally:
  • File -> New (not a template)
  • draw a 10unit circle
  • load lisp
  • dtcurve
  • type in text (eg "TTT")
  • select the circle
  • click once to place the text (command completes)
  • dtremove
  • ERROR (but as I said, not everytime  :x)

EDIT: Lee I can't replicate the error at home so don't worry about it, must be something on the work machine.
« Last Edit: November 20, 2009, 02:19:13 AM by steve.k »

Willie

  • Swamp Rat
  • Posts: 958
  • Going nowhere slowly
Re: Dynamic Align Text to Curve { with Reactors }
« Reply #67 on: November 19, 2009, 08:15:08 PM »
This is a great tool Lee.  Thanks.  :-)

My suggestion:  Is it possible to add a flip/mirror option to the text to rotate it by 180º?  If you have a rotated viewport, the text may show up upside down in the viewport, but it displays correctly in modelspace.
Soli Deo Gloria | Qui Audet Adipiscitur
Windows 8  64-bit Enterprise | Civil 3D 2015 and 2016| ArcGIS 10.1
Yogi Berra : "I'd give my right arm to be ambidextrous."

Lee Mac

  • Seagull
  • Posts: 12912
  • London, England
Re: Dynamic Align Text to Curve { with Reactors }
« Reply #68 on: November 20, 2009, 07:55:54 AM »
This is a great tool Lee.  Thanks.  :-)

My suggestion:  Is it possible to add a flip/mirror option to the text to rotate it by 180º?  If you have a rotated viewport, the text may show up upside down in the viewport, but it displays correctly in modelspace.

Hi Willie,

Thanks for the feedback, I'm glad you like the program  :-)

I should think I could add a mirror option for you  :wink:

Lee Mac

  • Seagull
  • Posts: 12912
  • London, England
Re: Dynamic Align Text to Curve { with Reactors }
« Reply #69 on: November 20, 2009, 07:56:54 AM »
EDIT: Lee I can't replicate the error at home so don't worry about it, must be something on the work machine.

I'm not sure what it would be, but if anyone else is having trouble, let me know  :wink:


cmwade77

  • Swamp Rat
  • Posts: 1443
Re: Dynamic Align Text to Curve { with Reactors }
« Reply #70 on: November 20, 2009, 11:20:03 AM »
This is a great tool Lee.  Thanks.  :-)

My suggestion:  Is it possible to add a flip/mirror option to the text to rotate it by 180º?  If you have a rotated viewport, the text may show up upside down in the viewport, but it displays correctly in modelspace.
You can also use the Annotative text idea and set it to change when you rotate viewports.

Lee Mac

  • Seagull
  • Posts: 12912
  • London, England
Re: Dynamic Align Text to Curve { with Reactors }
« Reply #71 on: November 20, 2009, 12:40:18 PM »
My suggestion:  Is it possible to add a flip/mirror option to the text to rotate it by 180º?  If you have a rotated viewport, the text may show up upside down in the viewport, but it displays correctly in modelspace.

Willie, although Chris has offered another solution to this - I have added a "Mirror Text" option to the program - I figured there was no harm in adding another utility to the program in any case.

The Code in the first post has been updated to Version 2.2

But this requires another restructure of the xData, so any text aligned using previous versions, (pre 2.2) will need to be "re-aligned".

Enjoy,

Lee

Willie

  • Swamp Rat
  • Posts: 958
  • Going nowhere slowly
Re: Dynamic Align Text to Curve { with Reactors }
« Reply #72 on: November 21, 2009, 04:07:39 AM »
Cool Lee,

I am out of the office for the week, but I will try it next week.

Thanks!!  :-)
Soli Deo Gloria | Qui Audet Adipiscitur
Windows 8  64-bit Enterprise | Civil 3D 2015 and 2016| ArcGIS 10.1
Yogi Berra : "I'd give my right arm to be ambidextrous."

Lee Mac

  • Seagull
  • Posts: 12912
  • London, England
Re: Dynamic Align Text to Curve { with Reactors }
« Reply #73 on: November 21, 2009, 09:16:53 AM »
Cool Lee,

I am out of the office for the week, but I will try it next week.

Thanks!!  :-)

Your welcome Willie  :-)

Lee Mac

  • Seagull
  • Posts: 12912
  • London, England
Re: Dynamic Align Text to Curve { with Reactors }
« Reply #74 on: November 25, 2009, 04:13:01 PM »
Code updated to Version 2.3

This Version includes an option to change TextStyle and Height during Text Alignment - a suggestion from one of the guys over at CADTutor  :-)

Any comments/criticism/suggestions are welcome!

Enjoy,

Lee