.NET
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
How to draw text at Line? How to calc direction for text placed on the line?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
88 Views, 2 Replies
07-26-2012 01:36 PM
I did DrawableOverrule instance and override WorldDraw method.
In this method I have checked:
public override bool WorldDraw(Drawable d, WorldDrawwd)
{
if (d isLine)
{
Line line = (Line)d;
Next I want to draw text placed on the line and I did:
wd.Geometry.Text(line.StartPoint, normal, direction
Question is - how to calculate required direction for text that text should be placed on the line? Is it easy way to do it?
Thanks!
Re: How to draw text at Line? How to calc direction for text placed on the line?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-26-2012 08:51 PM in reply to:
pva75
The Line.Delta property returns a vector along the direction of the line.
Cheers,
Stephen Preston
Autodesk Developer Network
Stephen Preston
Autodesk Developer Network
Re: How to draw text at Line? How to calc direction for text placed on the line?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-26-2012 09:42 PM in reply to:
StephenPreston
Thanks a lot, Stephen!

