I have made a dynamic block with attribute text. Everything works fine except the text comes out as larger than the mtext that it was created from. The text height & the width factor are the same since i created the attribute default by copying the mtext. when i close the block the text appears longer than the mtext it was created from.
I am using M Text Attributes to store imperial lengths in the drawing, feet inches and fractions (stacked). When I read back the Text String property which, is the M text Attribute.Contents parsed, I am having problems because the parser does not add a space between the inch and the fraction. So, is there any setting that could be used to tell the parser to add the space between the inch and the fraction?
Is there a way to create an attribute or MTEXT in a block where part of it is User defined and the other part is constant?
e.g.
"AUTOCAD = 12345 LAYERS"
Where "AUTOCAD =" and "LAYERS" are constant
and
"12345" is the user defined part.
The reason why I would like this is because i want to be able to Middle Center Justify the text and if i were to create 3 separate texts then it wouldn't be good (2 texts and 1 attdef)
I basically have a block with two text attributes which they are the same but in different positions.
When you double click on the block I don't want to enter "A" as the attribute value twice. I just want to type "A" one time and automatically receive it on the other position as "A" too.
Basically it is Detail(A-A) as in the following block.
Recently i came to know about LISP called INCREMENT it is so useful. But i have small problem with that It Increments only in X or Y direction or according to UCS. I am looking for a command which can increment along path. In my drawigns many numbers they are in a order by room wise, i have drawn a path on numbers so number should sort as per path direction..i have tried with ALTEXT LISP but iam not getting it is not corting my numbers along path.]
I have a set of notes for a given jurisdiction that I need to show on mumltiple layout tabs within the same file. However, the notes need to change their width, number of columns, height, etc. for each layout tab to work with viewports and other drawing elements within each tab. My question is this- is there way using fields, blocks, rtext, something that will allow me to create one master copy of the note and basically have instances of the note on those other tabs that I can adjust the wrapping, height, columns etc.? I could just create a bunck of copies of the same note, but then if we get a comment from an AHJ about the notes, we need to make sure the comment is addressed in each instance of the note instead of just one master note. Is there way to do what Im asking, or is the technology just not there yet?
I have received details that have been blocked that I need to edit. When I expode or burst them, the dims text and arrows grow larger than is required for the block and I cannot find any adjustment in the properties to bring them back to the correct size for the detail. Also the leaders lose their point and association with their text and become just a line.
Is there a command that will allow me to edit the block without loosing the current sizing and associations?
I have multiple singular text objects on my screen and I want to convert them to mtext so I can use the Background Mask option within mtext on my drawing. how to quickly select all the text and convert it to mtext without it combinin ginto 1 mtext?
I have a Block that represent a point and has an attribute in order to label the point that I am displaying. According to the scale I can change the size of the point itself but I am having problems changing the size of the Atribute in order to make the label readeble in the scale that I have in drawing. How is possible to chage the Text size of my attribute in the point block so I can read the labels easily?
I have an attribute definition and I need to add its value to an mtext. I added it in mtext insert field it is ok, every thinks work fine it is only needs a regen but it is not a problem.
The problem is when my mtext and att in a block regen does not work in model space, I had to enter block and regen. Is there any way to do it without entrance in block editor?
When I select a block that contains a multiline attribute my AutoCAD does not display the corner grips of the attribute if its location is "locked" in the block. Is there a setting I can change to show grips in 2012? Apparently a co-worker of mine that uses 2011 has grips when selecting the block.
If I unlock the location I have grips (not the same ones I am used to seeing from mtext though) but I do not want the attribute location unlocked..I was understanding that the multiline attribute was simply an attribute containing an mtext.
I'm having issues with updating an MTEXT attributes value using lisp.
If I insert my block (this is a titleblock) and run my lisp routine the MTEXT attribute updates fine. Once I edit the MTEXT attribute with the MTEXT editor, and then run my lisp routine again, the MTEXT attribute will not update anymore. All the single line (DTEXT) attributes update fine. The lisp routine I created has worked for years...this is the first time I've tried it with an MTEXT attribute.
It has length and width stretch actions activated by grips. (Works fine).
It has an attribute for the user to type in a height value. (attribute insert box appears on block insert and when double clicking block).
It has Mtext "worktop [field] High" the [field] is looking at the attribute value so in theory should return the value the user types. But no only ---- shows. regen/regenall/battman fieldeval 31
Am I missing something i have pointed the field to tag/prompt as test and they show up in the mtext.
I am trying to get DText objects to update width factor when I change the Width Factor of the Text Style. We have one style (Simplex) & I hoped to be able to set the width factor of that style to 0.8 or 1.2 depending on what is required and then just insert objects from the tool palette so they have the correct width factor.
This seems to work for MText but not for DText or Attributes. Short of using lisp is there a to update the width factor of DText & Attributes? (hoping to be able to do this on LT also)
Only way I can see for DText is to qselect text and change style to something else and back to Simplex. Only way for attributes I've found is to advance edit block and change text style to something else and back.
In VBA, how can I batch convert field attributes in blocks to text attributes while retaining the blocks? Is there a simple way to univerally convert them all at onceusing VBA? The plotted values for the fields must be retained, too.
Explode will not retain the value of the field.
Burst will not work as it explodes the blocks as well.
You can right-click on the field and slelct "Convert to text" from the RCM. So I know that the process exists within CAD, just need to batch the process for a quantity of DWGs at a time - in VBA.
When I insert text with either the TEXT command or MTEXT command, the text is displayed mirrored. This doesn't seem to have anything to do with the MIRRTEXT variable because that is used when I'm actually mirroring the text. In my case, the text is mirrored as soon as I insert it. How can I get it back to normal? Is there a variable I'm missing?
I re-opened a drawing this morning and found some text to be different height from the rest. When I attempted to adjust all of the heights to be the same using the properties method, they all became bigger. Instead of all of them going to 6", the 5" text went to 6" and the 6" text went to 7-3/16". So, I checked the formatting size and the properties size and they did not match. See PDF.
3rd party tool which didn't match our scaling needs the file is a fas so I have tried to reverse engineer the whole function using trial and error. The following code works perfect except we need multiple (x amount) lines of text I have at current the M txt function which mimics and is effective for today however we need all lines to be individual.
I’m playing round with a loop but how to achieve my need..He had a 3rd party tool which didn't match our scaling needs the file is a fas so I have tried to reverse engineer the whole function using trial and error.
The following code works perfect except we need multiple (x amount) lines of text I have at current the M txt function which mimics and is effective for today however we need all lines to be individual.
;Starting lisp program...(defun C:REDtext ();Creating Layers (if non existant)...(command "layer" "m" "TEKST-1.5mm" "lt" "continuous" "" "c" "1" "" "");Memorising previous layer...(setq MYOLDLAYER (getvar "clayer"));Setting requierd layer...(COMMAND "LAYER" "SET" "TEKST-1.5mm" "");Setting variable "MYHEIGHT" to "DIMSCALE" x 2...(setq myheight (* 2 (getvar "DIMSCALE" )));Requesting and storing usser defind point...(setq MYPOINT (getpoint "Start punt :")); Requesting and storing user defind text...(setq MYTEXT (getstring T "Nieuw tekst :"));Placing text...(command "text" MYPOINT MYHEIGHT "0" MYTEXT); Restoring previous layer...(setvar "clayer" MYOLDLAYER);Closing lisp program...)
If I put a single line text and use it several times and then select them all I can change them in the properties all at ones. How do I do that with Mtext, if I select all and go to the properties they are opened one by one and you can change that.
Is there another way to do that as a single line text with the same.
I am trying to add labels everywhere on my drawing to show the properties of my objects i.e. lines. (But the thing is, I need static text). This is because I need to be able to "distort" the drawing for legibility purposes but retaining the label information. This is a common drafting task in surveying. Solution A - add the labels and then convert then into text. (I don't think Autocad allows this) Solution B - add the mtext via script, but so far I am stuck on the text editor.
Here's what I have done so far. mtext 100,100 <-- I'll need to come up with some calculation to automatically place the text in the middle of the line. j mc r 96d08'27" 130,100 "186° 08' 27""" <-- how to you add the content of the mtext object?
I am using LT 2013. I cannot figure out how to match properties for text. I click on the 2 options and the box witdth, orientation, layer will match but not the style or font. I have tried using Quick Properties to select but have not had any success with this tool. Here is what I did:
Created a style and named it Arial.
Open the Quickselect box.
Apply to : click the box and select the various mtext objects.
Object Type: mText
Properties: Style
Operator: Select All
Include in New Selection Set is checked.
I click Ok and the objects are selected.
Next I go to the Properties Manager and change the style to the one I want to use, bu the text does not change. If Idoubleclick a text object it shows the correct style, but not the correct font. What have I missed doing?
I used the CHANGESPACE command today to bring a piece of mtext from model space to paper space. I had a background mask on the mtext and when it came into paper space, the height of the text box displayed right but the width stayed the same as it was in model space. I played around with column settings and also the WYSIWYG in editor settings. Nothing seemed to make difference. What am I missing? Using autocad 2014
I have an older drawing that was created by somebody else that is chock full of bad CAD. I have to add some leaders to some text and I'm using the "QLeader" command. For some odd reason when I implement "QLATTACH" it won't attach the leader to the text.
Yes, I could recreate the text with the Qleader command but I'm trying to avoid having to do that because there is a lot of text. I'm not a fan of the rigidness of Mleader either so that is not an option.
When I create Mtext with a Bullet list, I want to change the bullet to something of my own choosing, instead of the blakc dot. I've been looking into this before, but couldn't find a solution. Some time back, I received a drawing from someone else. See attachment. It contains a piece of Mtext wich uses an alternative bullet, in this case a hyphen. So it CAN be done. Only thing is, I can't figure out HOW they did it?