Quick LISP routing to change alignment of text.

Quick LISP routing to change alignment of text.

Anonymous
Not applicable
1,735 Views
8 Replies
Message 1 of 9

Quick LISP routing to change alignment of text.

Anonymous
Not applicable

Hello everyone,

I have all my annotiationnote text and associated leader types saved over in in the tool palette which lets me just drag notes on to  adrawing that we use at least 25-20 each times for each drawing.  My only boggle is that once I've drawn or created a standard note and leader, then drag ito over onto the tool palette for future use, it retains the formatting from what it was when I dragged it over. i.e if I first wrote it out with the text alihnment LEFT with the ledaer, this is how it will generate when I reuse it from the template,  Of course, its a mixed old bag as to whether I want that leader not to be left aligned or write aligned...depending on each drawing.  Is there a was to set this up so I can avoid having to highlight the leader text and change it to let or right aligned when adding to the palette or would this require a lisp to modify them after theyve been placed..?  Hope this mkaes sense and somone might see an easy remedy here for this little boggle.

 

Hope to hear.  Many thanks everyone.

 

Brad

0 Likes
Accepted solutions (1)
1,736 Views
8 Replies
Replies (8)
Message 2 of 9

pbejse
Mentor
Mentor

@Anonymous wrote:

My only boggle is that once I've drawn or created a standard note and leader, then drag ito over onto the tool palette for future use...


Not sure I understand, can you explain more with illustrations or drawing sample on how it should work?

 

0 Likes
Message 3 of 9

Anonymous
Not applicable

I'm sorry this has not been made clear.  In the screenshot provided I have tried to help.  So..reading from my tool palette icons downwards..:

The 'Aj. in Brickwork' leader seems to align its text whichever way it fancies (incorrect.

The 'CRANK MESH' likewise apparently randonly choosing its text aligment (again incorrect)

Same for the 'Crank Mesh' note.

I'v no diea why the 'Sleb EB not Site Boundary' seems to work..? and justify its text correctly flush against the leader.

 

So I just wasn't sure if or how I had created the Slab edge beam.." leader differently or correctly or if there might be a faster way using lisp to get the ones without incorrect text to align to the leader properly. i.e justified in a straight line against the end of the leader like the slab edge ones do.

 

Does this make any sense.  Major pain in the butt having to fix them all.

 

Thanks so much.  Brad

0 Likes
Message 4 of 9

pbejse
Mentor
Mentor

@Anonymous wrote:

The 'Aj. in Brickwork' leader seems to align its text whichever way it fancies (incorrect.

The 'CRANK MESH' likewise apparently randonly choosing its text aligment (again incorrect)

Same for the 'Crank Mesh' note.

I'v no diea why the 'Sleb EB not Site Boundary' seems to work..? and justify its text correctly flush against the leader.


Would be nice if we can get a sneak peek at the properties for both CRANK MESH and Sleb EB.

  • Are those blocks 
  • Mleaderstyle is different for CRANK MESH and Sleb EB to which one is "Always left justify" is ticked on the other one

Otherwise, its easy to change all this with lisp a program

 

Again, better to post a sample drawing. 

 

 

0 Likes
Message 5 of 9

Anonymous
Not applicable

Thanks for the reply.

Have included the tool palette options for the two leaders I drag and drop; the crank mesh one (wish doesnt align correctly (or...only on one side) and the Slab EB one (this one aligns the text no matter which way the leader is started or drawn etc.

 

Hope it helps or you can see whats happening.

 

Many thanks.

Skab Boundary.png

Crank Mesh.png

  

 

0 Likes
Message 6 of 9

Anonymous
Not applicable

I cant see any difference in the 'Slab Boundary edge beam' (where the text does align properly to the leader and the 'Crank Mesh' leader which does NOT align the text (left or right justified to end of leader)

Greatly appreciate anyones input here.

 

Thanks again.

0 Likes
Message 7 of 9

pbejse
Mentor
Mentor
Accepted solution

@Anonymous wrote:

I cant see any difference in the 'Slab Boundary edge beam' (where the text does align properly to the leader and the 'Crank Mesh' leader which does NOT align the text (left or right justified to end of leader)

Greatly appreciate anyones input here.


I believe it has something to do with MTEXT formating code

 

\A1;\pxql;CRANK MESH\PTO SUIT STEPDOWN,\P{\A0;TYPICAL}

 

Removing parts of it seems to "fix" the issue

 

\A1;CRANK MESH\PTO SUIT STEPDOWN,\P{\A0;TYPICAL}

 

 

I'm not sure what \A1;\pxql or \A0 even means. I rarely play around with Mtext formatting

I'm not seeing any difference, tell me what does it do for the mtext format?

 

0 Likes
Message 8 of 9

Anonymous
Not applicable

Thats an excellent question. All I did was draw the leaders and add their associated text, then drag them as a whole onto the tool pallette.  Will just have to experiment as to those minor text formatting change/s its showing.  Will play around today and see if I have any joy.  Thank you for your time and help in staying with me on this.

0 Likes
Message 9 of 9

john.uhden
Mentor
Mentor

Well, yes, I think you should fix them.

I use the MIRROR command all the time, with ortho on.

You could write a routine that does that with one pick.

In fact, I think I'll do that for myself on Monday.

John F. Uhden

0 Likes