Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

VBA inserting text rotation error...

0 views
Skip to first unread message

garzatech

unread,
Mar 21, 2005, 6:13:45 PM3/21/05
to
i'm importing some tiger line files and i'm trying to automatically label some of the entities. When I add a text object i'm setting the rotation between 0 and 90. But for some reason when it completes I have a bunch of text that has rotations greater than 90.... I am using the <entity>.rotation attribute to set the rotation. Also when I try to use the <entity>.aligment property to acMiddleCenter it causes the text to move way off the drawing...any ideas?

LochDhu

unread,
Mar 22, 2005, 8:40:34 AM3/22/05
to

"garzatech" <nos...@address.withheld> wrote in message
news:4506657.111144685...@jiveforum2.autodesk.com...

> i'm importing some tiger line files and i'm trying to automatically label
> some of the entities. When I add a text object i'm setting the rotation
> between 0 and 90. But for some reason when it completes I have a bunch of
> text that has rotations greater than 90.... I am using the
> <entity>.rotation attribute to set the rotation.

The rotation uses Radians, not degrees. You will need to convert 90 degrees
to radians.

"Also when I try to use the <entity>.aligment property to acMiddleCenter it
causes the text to move way off the drawing...any ideas?"

You may need to set the TextAlignmentPoint of the AcadText Object. I can't
recall, but I know this gets set to 0,0,0 when you set the alignment to a
certain setting. Check the Help file.

Scott


Will Crichton

unread,
Mar 31, 2005, 6:11:33 PM3/31/05
to
There is an alignment point property as well as an insertion point property.
Setting alignment property to anything other than alignedleft causes the
object to reference the alignment point.
Kinda tricky to sort it all out...

"garzatech" <nos...@address.withheld> wrote in message
news:4506657.111144685...@jiveforum2.autodesk.com...

0 new messages