Align queried object data text to objects, Why did you nuke me?

Align queried object data text to objects, Why did you nuke me?

Anonymous
Not applicable
589 Views
8 Replies
Message 1 of 9

Align queried object data text to objects, Why did you nuke me?

Anonymous
Not applicable
Its a legitimate question!
I have a network of roads and I want to align the names to the roads. The
only tools I see let me set the angle, justification, and label point (not
even offset). I have 1000s of streets and I'm looking for a way to
automatically align the queried data (names) to the line objects. Somebody
might clue me in. At least let it up for a couple of weeks and then delete
it. You only let it show for 2 or 3 days. Give me a break!
JK
0 Likes
590 Views
8 Replies
Replies (8)
Message 2 of 9

Anonymous
Not applicable
JK, If you are refering to your post on Dec 4 it is still here, at least on my reader. To answer you question No there is no easy way to do it automatic. when you set the text ange in the query all the text gets set at that angle. You can use text justifaction to offset it from the road. .
Murph
0 Likes
Message 3 of 9

Anonymous
Not applicable
JK -

Your post is still here. Reset your discussion news reader to see
ALL posts. The default on MS Outlook Express 5.5 is 5 days.

Subject:
Can I align object data text to objects
Date:
Tue, 4 Dec 2001 07:35:19 -0800
From:
"JK"
Newsgroups:
autodesk.map.developer

--
Anne Brown
Manager, Moderator
Autodesk Product Support Discussion Groups
Discussion Q&A: http://www.autodesk.com/discussion


JK wrote:
(snip) At least let it up for a couple of weeks and then delete
> it. You only let it show for 2 or 3 days. Give me a break!
> JK
0 Likes
Message 4 of 9

Anonymous
Not applicable
JK,

We are currently adding such a functionality to our GeoTools program. It is
called 'QueryProc' - Query Processor, an extended functionality for 'Alter
Properties' queries. This program will allow the queried text labels to be
handled in much more innovative and imaginative ways than is possible with
just plain AutoCAD Map Query Properties.

I am afraid I cannot post the whole code here but this is not too diffcult for
a developer to figure out - Collect the queried objects section set and the
query created text labels selection set. These will have the same number of
objects and the corresponding index in each selection set are the object and
label link. Once you know this association, it is upto you to do what you
want.

Hope this helps. Do feel free to ask.

Regards
Rakesh Rao

JK wrote:

> Its a legitimate question!
> I have a network of roads and I want to align the names to the roads. The
> only tools I see let me set the angle, justification, and label point (not
> even offset). I have 1000s of streets and I'm looking for a way to
> automatically align the queried data (names) to the line objects. Somebody
> might clue me in. At least let it up for a couple of weeks and then delete
> it. You only let it show for 2 or 3 days. Give me a break!
> JK

--

AutoCAD customization for Engineering/Mapping/GIS
Get GeoTools @ http://www.4d-technologies.com/geotools
Build MyGeoTools @ http://www.4d-technologies.com/geotools/my_geotools.htm
FREE downloads : http://www.4d-technologies.com/techcenter
0 Likes
Message 5 of 9

Anonymous
Not applicable
Oops.
I apologize Anne.

"Anne Brown" wrote in message
news:3C16A4EA.A15BE405@autodesk.com...
> JK -
>
> Your post is still here. Reset your discussion news reader to see
> ALL posts. The default on MS Outlook Express 5.5 is 5 days.
>
> Subject:
> Can I align object data text to objects
> Date:
> Tue, 4 Dec 2001 07:35:19 -0800
> From:
> "JK"
> Newsgroups:
> autodesk.map.developer
>
> --
> Anne Brown
> Manager, Moderator
> Autodesk Product Support Discussion Groups
> Discussion Q&A: http://www.autodesk.com/discussion
>
>
> JK wrote:
> (snip) At least let it up for a couple of weeks and then delete
> > it. You only let it show for 2 or 3 days. Give me a break!
> > JK
0 Likes
Message 6 of 9

Anonymous
Not applicable
"J.Murphy" wrote in message
news:f0a06d6.0@WebX.maYIadrTaRb...
JK, If you are refering to your post on Dec 4 it is still here, at least on
my reader.

Sorry. My fault. Call me CADD monkey, I've earned it.
I was deleted before for irrelevant (fairly) that's why I thought I got
nuked.

> To answer you question No there is no easy way to >do it automatic.

You ain't kidding. I've been trying for days to write a VBA macro that would
look at every line's x1,x2,y1,y2 make degrees out of the slope value but I
just have no experience programmming. I couldn't figure out how to feed it
to the rotation setting for each individual line. I have to get better at
this. Did you see Richard's lisp expression?! I have to learn some lisp.

> when you set the text ange in the query all the >text gets set at that
angle. You can use text >justifaction to offset it from the road. .

Justification still leaves the text touching the road (I have a centerline
network) but it doesn't matter because I still got to go around erasing the
text I don't want and making it look pretty, I'll grip-offset them then.
Some of the text comes up upside down but thats OK I'll just 180it.


Murph
0 Likes
Message 7 of 9

Anonymous
Not applicable
Thanks for the information Mr. Rao, I will look at your products.

"Rakesh Rao" wrote in message
news:3C16D4F6.97AB12DF@vsnl.net...
>
> JK,
>
> We are currently adding such a functionality to our GeoTools program. It
is
> called 'QueryProc' - Query Processor, an extended functionality for 'Alter
> Properties' queries. This program will allow the queried text labels to be
> handled in much more innovative and imaginative ways than is possible with
> just plain AutoCAD Map Query Properties.
>
> I am afraid I cannot post the whole code here but this is not too diffcult
for
> a developer to figure out - Collect the queried objects section set and
the
> query created text labels selection set. These will have the same number
of
> objects and the corresponding index in each selection set are the object
and
> label link. Once you know this association, it is upto you to do what you
> want.
>
> Hope this helps. Do feel free to ask.
>
> Regards
> Rakesh Rao
>
> JK wrote:
>
> > Its a legitimate question!
> > I have a network of roads and I want to align the names to the roads.
The
> > only tools I see let me set the angle, justification, and label point
(not
> > even offset). I have 1000s of streets and I'm looking for a way to
> > automatically align the queried data (names) to the line objects.
Somebody
> > might clue me in. At least let it up for a couple of weeks and then
delete
> > it. You only let it show for 2 or 3 days. Give me a break!
> > JK
>
> --
>
> AutoCAD customization for Engineering/Mapping/GIS
> Get GeoTools @ http://www.4d-technologies.com/geotools
> Build MyGeoTools @ http://www.4d-technologies.com/geotools/my_geotools.htm
> FREE downloads : http://www.4d-technologies.com/techcenter
>
>
0 Likes
Message 8 of 9

Anonymous
Not applicable
Here is a lisp routine I found somewhere that helped me out.
(angtos (- (/ pi 2) (atan (/ (/ (if (> .y1 .y2) (- .x1 .x2) (- .x2 .x1)) .length) (sqrt (- 1 (expt (/ (- .x1 .x2) .length) 2)))))))

Use for the insertion point in the alter properties
0 Likes
Message 9 of 9

Anonymous
Not applicable
Correction...
I believe that line of lsp code should be used for the ROTATION... not the insertion point....

Warren M
0 Likes