AutoCAD Electrical Forum
Welcome to Autodesk’s AutoCAD Electrical Forums. Share your knowledge, ask questions, and explore popular AutoCAD Electrical topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Title block attribute shift

5 REPLIES 5
Reply
Message 1 of 6
oldmanbauer
421 Views, 5 Replies

Title block attribute shift

One of the attributes in my title blocks in a project of drawing needs to be moved over one space since it is on one of the title block dividers. I have tried putting an extra space in the .wdt, .wdp, and in the .wdl files. Also tried an extra space in the project descriptions. All attempts just ignored the space in front. I also tried using some wild cards that I thought may get it to notice the space but nothing has worked so far. Any ideas?
5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: oldmanbauer

It does look like AcadE strips off any leading spaces. There might be a way
to do this depending on where the value is coming from that you want to
assign to this attribute. You can assign an AutoLisp expression in the .wdt
file to an attribute. Let's say you wanted to assign the First Project
Description line to the attribute name TITLE1 but you wanted to add a space
in front of it. There is an API that returns the Project information,
c:wd_proj_wdp_data. It returns more than you need but the 3rd (nth 2)
element of the return is a list of the project's description lines. The
first description line is held in the 2nd place (nth 1) of that list. So to
get the first description line, the Autolisp expression would be

(nth 1 (nth 2 (c:wd_proj_wdp_data)))

To add a space in front of it, the expression would be

(strcat " " (nth 1 (nth 2 (c:wd_proj_wdp_data))))

So the line in the .wdt file might look like this

TITLE1 = (strcat " " (nth 1 (nth 2 (c:wd_proj_wdp_data))))

If it isn't a project description line you are assigning but something else,
the idea is the same but a different API might be needed to get the
appropriate value.

Pat Murnen

wrote in message news:5153661@discussion.autodesk.com...
One of the attributes in my title blocks in a project of drawing needs to be
moved over one space since it is on one of the title block dividers. I have
tried putting an extra space in the .wdt, .wdp, and in the .wdl files. Also
tried an extra space in the project descriptions. All attempts just ignored
the space in front. I also tried using some wild cards that I thought may
get it to notice the space but nothing has worked so far. Any ideas?
Message 3 of 6
oldmanbauer
in reply to: oldmanbauer

I tried your suggestion but it still ignores the spaces that I put in. In the command window you can tell that the attribute shifts but in the actual title block it still does not move. Any other ideas? Message was edited by: oldmanbauer
Message 4 of 6
Anonymous
in reply to: oldmanbauer

My test seemed to work OK. When I edit the attribute, the space is still
there. What justification is the attribute? Is there some reason you can't
just move the attribute itself to the desired location?

Pat Murnen

wrote in message news:5154205@discussion.autodesk.com...
I tried your suggestion but it still ignores the spaces that I put in. In
the command window you can tell that the attribute shifts but in the actual
title block it still does not move. Any other ideas?

Message was edited by: oldmanbauer
Message 5 of 6
oldmanbauer
in reply to: oldmanbauer

It has center justification. If I double click on it the enhanced attribute editor pops up showing that it is spaced over but in the drawing it is not. I could move it manually but I was hoping to correct this problem on hundreds of old drawings if it was an easy fix and I don't want to move all of them one at a time.
Message 6 of 6
Anonymous
in reply to: oldmanbauer

Adding a space in front of a center justified text probably won't do much.
It is still going to center around the insertion point. What direction are
you trying to shift it? I don't have any more ideas right now but if I come
up with anything I will post it.

Sorry I couldn't be more help,
Pat Murnen

wrote in message news:5154330@discussion.autodesk.com...
It has center justification. If I double click on it the enhanced attribute
editor pops up showing that it is spaced over but in the drawing it is not.
I could move it manually but I was hoping to correct this problem on
hundreds of old drawings if it was an easy fix and I don't want to move all
of them one at a time.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost