I want to set the Textheight system variable using Autolisp. However 'textsize won't work.
I am setting up a routine so that when I want to draw a 1:100 scale drawing my dimscale is set to 100 and my textheight is set to 350. Likewise when I want a 1:50 drawing my dimscale is 50 and text height is 175. This way I don't have to keep changing the height setting when I'm using dtext and mtext.
I am working on a simple function to add/remove a non-printing stamp our drawings to specify a preliminary drawing. The issue is that I cannot seem to get AutoCAD to accept the text height in the Mtext command. Below is the code; try it and see.
I am having trouble getting my text height to change user the 'textsize' system variable.
When I input a new height at the command prompt using 'textsize' the text height in the text style dialogue box does not automatically change to match. Also when I use the dtext or mtext command after changing the textsize value, these commands use the value in the text style dialogue box instead.
When creating Mtext, I can't figure out how to specify a given height using the ribbon. Clicking on the "A" on the "Home" tab brings up the "Text Editor" ribbon and displays the Mtext editor in the drawing area. On the "Style" panel of the Text Editor ribbon is a drop-down box with a default height of 1/8". Clicking on this drop-down box gives the list, 1/8", 1/4", 1'-6", 1/8", and 3/16". It appears those are my only choices, but I need to make Mtext that is 1'-0" high. If I try to highlight the size selected in the drop-down box and type in 1'-0", AutoCAD erases my typing, replacing it with the 1'-6" choice (or some other member of the preset list). It does this whether or not I have typed text in the Mtext editor, highlighted that text, etc.
If I hover the mouse over the drop-down box, a tooltip comes up that says "Ribbon Combo Box - Text Height / Press F1 for more help." Pressing F1 brings up the Autodesk Exchange window which is blank except for a spinning wheel animation in the center that never stops. The promised "help" never appears.
Right now my only workaround is to create Mtext using one of the heights that AutoCAD has chosen to make available, then select it and change its height using the Properties palette, which may or may not be so easy depending on whether the height I need is very different from the height I was forced to use and the zoom factor of my view (the created mtext might show up as an almost invisible dot, forcing me to play "Where's Waldo" to select it). This is an almost unusable kluge. How can I set the size when creating the Mtext, not afterwards? How is the list of sizes available in the drop-down box determined?
Which settings or where do I go to set my drawing Style, Text height and line space factor on all my drawings in one shot. It is frustrating going through many drawings changing it.
I have this lisp which will display the height of a 3D object to 2 dps. What I need is for 3dps to be displayed but I have no real understanding of LISP coidng so I can't work out where this is specified in the routine.
Why this LISP does not work when I try to use it in a drawing which has a Pointools POD file working (or previously had one) within it?
I am having problems with changing the height of the dimension text. I have tried going into the style editor and changing the text height in there and then saving it. The number for the height that I changed stays saved however the actual text height on the drawing does not, not even after I tell it to update.
I'm trying to set up a height label for sections and elevations. I then want to update it with a shortcut.
I already tried it with a field that shows me the y coordinates, but it won't show me the "+-"0.00 sign,when I put it to zero level. It only writes "0.00".
I design a small plant in Autocad 2012. For the pipes we used cylinders and boxes(for square pipe), now we need to make the bill of materials, but I don't know how to extract the data from each cylinder(radius and height) or box.
It is possible to do this?
I place a small sample from the plant. Totally I am having around 6000 elements.
I am trying to create a custom message box with variable width and height by passing width height title and list of text. I can get the routine to work if I use preset width and height, but would like to make the box adjustable.
I only do programming when absolutely needed so it usually only happens every couple years. I wrote this routine to count nested blocks inside of dynamic blocks to count parking spaces. The routine worked fine but was relying on the ltscale to scale a block containing an attribute for the total number of spaces. I want to update the routine to use an annotative block so the scale doesn't have to be set. I changed my block containing the attribute but now when I run my routine, the attribute height gets changed each time the routine is run. The text just gets larger and larger. Here is the portion of the routine where the attribute info is gathered and updated with the new value for that attribute. If you need the entire routine, I can post it with a slight modification so it will work outside our network.
(defun updateattrib () (setq CNT 0) ; sets count to 0 (while (< CNT (sslength ss)) ; starts loop while CNT is less than the number of objects in the group
[Code].....
I am running this in Civil 3D 2010 but will want it to work in 2013 so if the solution will only work in 2013, that is fine with me.
I have had a survey carried out on a recently poured concrete slab. The survey company have given me spot heights which correspond with Ordnance Datum but i wanted to find out how much the slab is out of level by. For instance the TOC level should have been 25.750m OAD and in some instances it is 25.770m OAD meaning it is 20mm above the level it should be. There are hundreds of levels and i want a command that lets me take away 25.75 from all the levels leaving me with the difference. The CAD file i have is in 2D and not 3D.
I design a small plant in Autocad 2012. For the pipes we used cylinders, now we need to make the bill of materials, but I don't know how to extract the data from each cylinder(radius and height), after I will be able to do this, I can make the material list, but I don't know how and I am having so many cylinders.
I've created a data link, linked to my autocad drawing, checked the box to keep excel formatting and update. Once i Import the table, the size of the table is NOTHING like what the size is in excel.
I have my page layout in excel to be 11 x 17 landscape. I have my table at about 9 1/4 x 15 landscape. Once I import it into autocad, it is now about 6 3/8 x 20 1/4. I don't know what i'm doing wrong but i need it to transfer just like it is in excel as far as the size of it.
I am drawing an icon holder for a church. However, I got this problem, where I need to change the width of a piece but keep the height. So scaling wouldn't work as scaling would change both the width and height.
I can't use trim and cut from the middle as there is a block in the middle of it. and if I do that it will cut the block in all location.
I usually draw in model space 1:1 and then scale my drawing in paper space to fit my sheet, but when I'm scaling I also scale my text. Is there a way to keep my text at 1/8 even after scaling my drawing from model space?
I am having a problem in text height on dimensions. Working in model space I go to the Dimension style manager and change the height of dim text. When I dimension something, the height has not changed. This also happens when I try to change the height of the text using the properties box.
I'm fairly new to AutoCAD, and most certainly to the forum [URL]......
I have a question in regards to using Multileader text. Tolerance.jpg
The guy who used to work here made this text with a tolerance to a radius measurement. The tolerance is smaller ( no problem with that), but also adjusted to the top of the line.
When i used to draw a rectangle, circle, line, etc- a box (or several) boxes popped up after i clicked the first point. These let me enter the distance then hit the tab button and go to a second box to enter height or angle depending on what i was drawing. There was also some popups that showed up when clicking the chamfer or fillet buttons but now those are all gone. When i input numbers, it goes to the command bar.
How can i get those small popup windows to reappear in my modelspace?
If I click on any text the docker shows the incorrect height of the text. I have typed in an measured a 4" H and the docker display tell me its over 5.5".
I have recently upgraded from LT06 to LT09.Why am I having trouble changing the text height on my dimension? I used to be able to double click on a specific dimension and change the text height to anything I wanted and than using the "match properties" icon change all the others.
I've set up a load of dim styles for varying scales i.e 1:1 through to 1:50.Now the text height is set to 2.5 on 1:1. However when I have changed a dimension string to the dimstyle the text changes to 0.625!?
But if I draw a dim from scratch it's correct.The dimensions are not annotative. When I open properties bar the text height is stated at the desired 2.5 but when I double click to edit text it says 0.625.
Now I can't be bothered to go through my drawings and double click to edit the text hieght or redraw all my dims I just want to 'matchprop', but it's matching!
When I export .idw in autocad .dwg, the tolerance text height of dimensions with 'Limits/Fits-Show tolerance' change, becoming the same of the dimensions text, while the tolerance text height of dimensions without 'Limits/Fits-Show tolerance' remain the same of the .idw file. Why? There's something I can do, to ensure that text height no change? See the attached pictures that show the problem.
I've just finished a large survey using GPS, this I've downloaded onto autocad. My issue is I've got loads of levels on cad drawing that I wish to make larger. These where downloaded automatically, onto drawing. Is there a way to change height of text, so all heights are larger, or do I hand change them one by one!