AutoCAD 2010 :: Setting Text Height In AutoLisp?

Jun 20, 2012

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.

View 2 Replies


ADVERTISEMENT

AutoCAD Visual LISP / AutoLISP :: Accept Text Height In Mtext Command

May 31, 2013

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.

(DEFUN NOT4CONSTRUCTION(/ CTR HGT PT1 PT2) (IF (EQ (GETVAR "CLAYER") "NOT4CONSTRUCTION") (SETVAR "CLAYER" "0")) (IF (EQ (GETVAR "CTAB") "MODEL") (SETQ HGT "8'-4"") (SETQ HGT "1"")) (IF (= (ASSOC 0 (TBLSEARCH "layer" "NOT4CONSTRUCTION")) nil) (PROGN (VL-CMDF "-LAYER" "M" "NOT4CONSTRUCTION" "C" "30" "" "TR" 90 "" "P" "N" "" "") (SETQ PT1(LIST (- (CAR (GETVAR "viewctr")) (/ (* (GETVAR "viewsize") (/ (CAR (GETVAR.
[code]....

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Retrieving Current Paper Text Height

Oct 10, 2012

I'm looking for code to retrieve the "Paper Text Height" from the current (active) "Text Style".

View 7 Replies View Related

AutoCAD 2010 :: Change Leader Text Height?

Apr 19, 2013

My text style height is set to 1/8, however my leader text height is 3/16. How do I change the leader text height? T

View 6 Replies View Related

AutoCAD 2010 :: Text Height System Variable?

Jun 19, 2012

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.

View 3 Replies View Related

AutoCAD 2010 :: Ribbon Combo Box - Text Height

Jan 18, 2013

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?

View 4 Replies View Related

AutoCAD 2010 :: Where To Set Drawing Style / Text Height / Line Space Factor

Mar 15, 2013

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.

View 9 Replies View Related

Revit :: Setting Height Of Masonry Stone

Apr 9, 2013

Setting the height of the masonry stone,
 
I couldn’t figure out how the height of the masonry stone can be set.
 
For example, in the attached screenshot, I wanted the height to be 0.26 meter then how this can be done?

Software: AutoCAD 2014, AutoCAD C3D, AutoCAD M3D, Revit
Windows 7 (Ultimate 64 bits),
Firefox 20.0,
Kaspersky 2013.

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Display Height Of 3D Object To 3 DPS

Jun 14, 2013

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?

View 5 Replies View Related

AutoCAD Inventor :: Changing Text Height Of Dimension Text

Sep 13, 2013

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.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Setup Height Label For Sections And Elevations

Sep 16, 2013

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".

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Extract Radius And Height From Cylinders And Boxes

Jul 23, 2013

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.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Create Custom Message Box With Variable Width And Height

Nov 15, 2012

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.

Here is what I have so far -

;--dialog box--

MYmessage :dialog{
label="Custom message box";
:column {
:text {
key="MY_message_Title";
fixed_width_font=true;
[code].......  

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Attribute Height Is Changing Each Time Routine Is Run With An Annotative Block

Apr 30, 2012

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.

View 3 Replies View Related

AutoCAD 2010 :: Specify Width And Height Of Image?

Feb 18, 2012

I 'm attaching images through c# using lisp _image  and sendcommand in a predefined rectangle.

how can I specify width and height of the image so the image is exactly placed inside the area that I want?

(scale is not a good option because as image ratio changes scale must also change).

View 2 Replies View Related

AutoCAD 2010 :: Spot Height Variance

Jul 5, 2012

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.

View 8 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Get / Edit Properties (height) Of A Drawing View Created With Viewsection Command?

Apr 23, 2013

How can I get/edit the properties (height,..) of a drawing view created with 'viewsection' command?

View 2 Replies View Related

AutoCAD 2010 :: Extract Radius And Height From Cylinders

Mar 26, 2013

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.

View 9 Replies View Related

AutoCAD 2010 :: Cell Formatting Height And Width From Excel?

Apr 17, 2012

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. 

View 2 Replies View Related

AutoCAD 2010 :: Icon Holder - Changing Width While Keeping Height?

Aug 28, 2013

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 am not sure if there such an option in AutoCAD.

View 2 Replies View Related

AutoCad :: Keeping Text Height At 1/8?

Jul 11, 2012

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?

View 9 Replies View Related

AutoCad :: Text Height On Dimensions

May 10, 2012

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.

View 2 Replies View Related

AutoCad :: Different Height Of Text In Multileader

Mar 23, 2011

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.

View 3 Replies View Related

AutoCAD 2010 :: Popup Height / Depth /angle Box Is Missing In Model Space

Mar 20, 2012

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?

View 3 Replies View Related

CorelDRAW X6 :: Text Docker Displays Wrong Height Of Text?

Jan 14, 2013

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". 

View 13 Replies View Related

AutoCAD LT :: Dimension Text Height Change

Aug 20, 2009

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.

View 9 Replies View Related

AutoCad :: Text Height On Dims / Perplexed

Jul 3, 2013

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!

View 9 Replies View Related

AutoCAD Inventor :: Tolerance Text Height

Apr 13, 2011

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 use Inventor 2011 with SP1.

View 6 Replies View Related

AutoCad :: Changing Height Of Text On Survey?

Jan 26, 2014

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!

View 6 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Setting Workbook Already Open?

Nov 3, 2011

I need to use visual lisp to set the workbook if it is already open. What is the syntax for this?

I got the ExcelApp already set as well as the FilePath.

If the workbook is not open then this works

(setq WorkBook (vl-catch-all-apply 'vla-open (list (vlax-get-property ExcelApp "WorkBooks") FilePath)))

I want to be able to see if the workbook is already open and if so set it otherwise open it.

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Setting A Previous Selection To Nil?

Jan 12, 2012

How to Set a previous selection to nil from say a move command? 

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved