AutoCad 2D :: Attribute Text - Multiple Sizes In Block
Mar 2, 2012
We have a client whom insists on 1/8" text and my blocks are all sized for 3/32". What I wanted to do is create two visibility states for the block. One using the 1/8" text and one using the 3/32" and be able to switch between them. I can get the border of the tag to work, but the text doesn't switch sizes.
Is this even possible? Is there a better way to deal with all my tags and needing to have two different versions of them? (Tags such as fixture tags, note tags, etc...)
View 4 Replies
ADVERTISEMENT
Feb 12, 2012
I need to match few attribute values from one block to different block. I download a lisp file called; ca.lsp which can match the single attribute value. I modified it for more than one attribute value matching. It is ok but still wish to overcome two issues for batch prcess
1. picking up the blocks by selection
2. click the alternative block numbers of times to match the numbers of attribute values I needed.
How to modify this lisp I can run it by block name selections instead of picking selection which enable me to run batch process for numbers of drawing? That will be good...
Lisp & Demo file attached (Match attribute value, A, B & C to Attribute 1, 2 & 3).
View 3 Replies
View Related
Nov 8, 2013
Is there a way that I can create a block with text ('A') and when I insert the block and populate the block another block block will update also? I am wanting to create a block for x-sec flags, and detail callouts that update their detail titles.
AutoCAD Civil 3D 2012 SP4
Windows 7 (64)
View 6 Replies
View Related
Nov 19, 2012
I am tying to create a Dynamic Block of a steel angle of multiple sizes and thickness. I used Dynamic Blocks before and live the idea of changing sizes on the fly with out having to delete and recreate an object.. I got as far as creating an angle of different sizes, i.e.. 4x4, 5x5, etc. and different thickness but can't get the thickness to work with the radius of the angle.
View 2 Replies
View Related
Aug 2, 2008
I have a block with an attribute and need to change the first three characters of each to a different two characters. I recall my instructor once showing me how i could do this easily without having to click on each block to change the attribute.
View 2 Replies
View Related
Aug 31, 2012
select all blocks on certain layers in a drawing, check attribute CIRCUIT in each block if it starts with MS then attribute CONTROL = switched. I hope thats clear enough the way
(defun c:control()
(graphscr)
(Setq sc (ssget "X" '((0 . "INSERT")
[Code].....
View 1 Replies
View Related
Mar 27, 2013
I am looking for some code or something which can change the title block revisions from "01" to "02" in multiple drawings.
The title block revision block is set in attributes.
View 5 Replies
View Related
Oct 26, 2011
I am trying to load multiple Text Sizes into AutoCAD Civil 3D 2012 so that I can have a list of the standard text sizes (3/32", 3/16", 1/4", 3/8") to choose from the Annotation tab > Text Group > Annotation Text Height drop down list, instead of having to type them in each time.
At first I thought that I could just add the different text sizes using the TEXTSIZE variable command into my drawing template file, but apparently the Text Sizes entered are only retained for that particular session of AutoCAD Civil 3D. Is there perhaps some other system variable that controls this setting being retained for more than one session??
Then I thought I could just create a program to load the sizes. I originally tried creating a C# .NET program to load the text sizes, but ran into a problem. I then I tried creating another version of a C# program, as well as an AutoLISP script, thinking that it was perhaps some limitation to my approach (which still may be the case). But I still keep running into the same problem. The problem is that only the last text size specified is actually entered into the list of available text sizes. The other text size values appear to be processed but are not retained in the Annotation Text Height drop down list.
The following is my first attempt with C#:
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.Runtime;
public class CreateTextSizes : Autodesk.AutoCAD.Runtime.IExtensionApplication
{
public void Initialize()
{
// Create following Text Sizes: 0.09375 (3/32"), 0.1975 (3/16"), 0.25 (1/4"), 0.375 (3/8")
[code].....
The following is my attempt with AutoLISP:
(defun c:LOADTEXTSIZES()
(Command "TEXTSIZE" 0.09375)
(Command "TEXTSIZE" 0.1975)
(Command "TEXTSIZE" 0.025)
(Command "TEXTSIZE" 0.375)
(Command "TEXTSIZE" 0.09375)
)
View 1 Replies
View Related
May 15, 2012
Is there a way to have VARIABLE text size AND BLOCK SIZE autocad 2012, for different scales sizes? To sum it up I am running 1/8th scale on some of the pages in the set with a 1/4 blow up section. I use addressable devices so it is a lot of work to change all the text Is there anything that will auto-update the text size per scale with out having to go through my drawing and repeat all the text and VPfreeze it?
View 9 Replies
View Related
Apr 4, 2011
I'm using 2007 LT. I Would like to explode a block with the attribute text remaining as text.
View 9 Replies
View Related
Feb 25, 2013
I have several title blocks each in their own paperspace pages. Could have the attribute filled in, but more than likely only one page will have values filled in the attributes. I am looking for a VL method for finding which pages title block is filled in so that I can get those values and fill in the equivalent attributes for all of the other pages. Currently I am using a long set of :
(IF (setvar "ctab" "8.5x11") (IF(TBLSEARCH "BLOCK" "TB-8.5x11") (IF (/= "" (get-att "OWNER" "TB-8.5x11")) ; Function to read a named attribute(editblk "TB-8.5x11") ; Function to pull up the attdia(IF (setvar "ctab" "11x17") (IF (TBLSEARCH "BLOCK" "TB-11x17") (IF(/= "" (get-att "CUSTNMFIRST" "TB-11x17")) (progn ; At the last page ditch the [Code]..........
The example is just a very simplified version of what I'm doing. I just need to find the information, if it exists in any page and store it for later. Afterward, I'll fill in each page's Title Block with the stored information.
I know that this can be done much more efficiently. As I am currently flipping through the pages too much action is occurring on the screen and it makes some people nervous. With VL I should be able to run the search quietly, but I would still like to (setvar "ctab" "to the page with the filled attribute value") after the LISP is finished storing values.
View 7 Replies
View Related
Apr 27, 2012
I need to create blocks in which the same text appears twice. I've created an invisible attribute to hold the text and created two mtext object containing fields that point to the attribute value.
The text fields show the default value of my attribute but will not change when the attribute is set on an placed instance. After setting the attribute on an instance I've tried UPDATEFIELD and REGEN but still I see the default value.
View 1 Replies
View Related
Jul 23, 2013
whenever I make a block with attributed text the block works just fine when I insert it into a drawing like normal. However if I try and open the block drawing by itself the attributed text just turns into normal text after I get this message "Orphan Attdef Objects found & Converted to Text". This problem seems to happen on two of our machines but a third co-workers machine still works fine.
View 9 Replies
View Related
Oct 31, 2012
I am looking to go through a whole drawing and change the text color of any block attribute to say 0 as the drawings I am receiving have all the text at a weird color. I was unable to find anything on the forum. I already have a routine that changes text of certain blocks based on layer, but I want this to change the color. Below is code I used for the layer change I talked about earlier.
publicstaticvoid strFind(string sFind, stringsReplace)
{
string str = "";
Document document = Application.DocumentManager.MdiActiveDocument;
Editoreditor = document.Editor;
Transactiontransaction = document.Database.TransactionManager.StartTransaction();
[code].......
View 1 Replies
View Related
Dec 30, 2013
I HAVE ATTRIBUTE TEXT BLOCK IN DRAWING TITLE AND IF I WANT TO ADD ANOTHER TEXT IN SAME ATTRIBUTE BLOCK
HOW CAN I ADD
View 1 Replies
View Related
Apr 18, 2013
I am wondering if it is possible to create some sort of block which will detect the angle it has been rotated to and present this angle as a text? For eg. to calculate the superelevation and present it as a multileader with 3.00% above it.
View 2 Replies
View Related
Sep 7, 2011
how we can explode block with attributes and keep the text of attributes as is without changing to value
View 3 Replies
View Related
Dec 9, 2011
I am building a block with some attribute text and I need to be able to backmask the text. The properties menu does not have a backmask option for the text attribute when I open the block in the block editor.
I am using Autocad LT 2011
View 1 Replies
View Related
May 11, 2011
How would i insert a text attribute to a block that i have already made? Does it give me the option to make the text vertical & horizontal before blocking it for use?
View 9 Replies
View Related
Jul 17, 2012
I would like to know if it is possible to have a single attribute fill multiple strings of text. I have text that appears in more than one spot in a block of mine but when inserting the block i would like to be prompted once to fill the attribute.
View 1 Replies
View Related
Apr 1, 2013
I am ACA 2013. I received a file from an equipment company and has these blocks that are huge in file size, so I am cleaning things up on them. Their blocks have multiple layers in them with different colors and linetypes. I see the setbylayer command and it works, but not all the time. On some of the blocks, they have attribute text in them. the individual lines of the attribute are on different layers. I want to keep the info, but set all to layer 0. then I can move it to the block to the layer I want.
another question, is there a way to make an outline of a block? Some of these blocks are so detailed that I want to make a simple outline and then delete the block.
View 3 Replies
View Related
Feb 3, 2012
Is there an easy way to transfer the text inserted in one attribute and copy it over to another attribute in the same block? This is for a titleblock. We are currently using AutoCAD Electrical. We need to do this on over 10,000 drawings so we would like to be able to write a script or lisp routine so we could run a batch across all of the drawings.
View 6 Replies
View Related
Nov 13, 2013
starting a new job at work so setting up the job folder etc. grabbed the title block and the text attribute insert from the library.....
so here is when the issue started.....so title block and text attribute are both saved in model space, both have all the same settings, this also applies to the template we have here all match.
so i xref in my title page at 1:1 which comes in normal, then i insert my attribute block in at 1:1 but it comes in at some super size thing, normal 3.5 text size is now 1000......
have fiddled with everything gone back to the library set etc but got no idea.
the interesting bit is if i open the title block and insert the attribute block in, it comes in perfect......
so in saying that i am assuming it is the work template..... but none of this has changed for over a month and have created drawings since then........maybe a random setting somewhere has changed but again haven't done anything different to normal no new radical changes....
i have attached a copy of the title block and the text attribute.
View 9 Replies
View Related
Oct 10, 2011
I having one DWG with in 50 layouts. In that, if i going to edit or change the date, description, and etc, means it will take too much time to update in all layouts (50nos.)
If possible to edit all layout with in one time?. One more thing, one type of title block used to all layouts and title block was with enhanced attribute text.
View 9 Replies
View Related
Feb 7, 2012
I wrote this little piece of code (attached) that explode all the blocks in the current drawing.This is magical, compared with what we had to do in VBA.
This works perfectly but now I want to go deeper and managed blockreferences with attributes.Based on my code, I can determine if oBTR.HasAttributeDefinitions is true or false.
If the blockreference has attributes, I suppose I will have to use Explode instead of ExplodeToOwnerSpace.
My first question is, using explode, I need before to know in which space the blockreference is inserted (Model or any layout) so to insert the exploded entities correctly. So, is it possible from a blockreference to get its own SpaceId?
An another idea I had is to edit the blockreference (not the block definition) to replace attributes with text...
View 6 Replies
View Related
Jan 7, 2012
I am using AutoCAD 2000i I would like to click a button, hide the form, pick the text, I'm only picking one text item, then insert the picked text into a block. Then put the text into the attribute in the block..Insertion point of the block next to the text item.
Private Sub CommandButton2_Click()
frmGetData.Hide
'Set sset = ThisDrawing.SelectionSets.Add("SS3")
Set sset = ThisDrawing.PickfirstSelectionSet
sset.SelectOnScreen
'For Each ssobject In sset
'msg = msg & vbCrLf & ssobject.ObjectName
[code]....
View 2 Replies
View Related
Apr 8, 2013
Got a problem with the attached drawing. (The drawing will eventually be used as an xref).
I have created a dynamic block that has a (multi-line) attribute applied. This attribute is linked to an annotative text style. The drawing contains annotation scales. I have applied some of these annotation scales to the attribute so that it shows at 4.5 in paper space.
The annotation scales (metric) contained in the drawing are "1:500, 1:1000, 1:1250, 1:2000, 1:2500, 1:5000, 1:10000, 1:20000 and 1:25000". All these annotation scales are applied to the attribute.
The block contains a look-up table of properties that when applied, size the block to be used as a boundary to the following scales "1:500, 1:1000, 1:1250, 1:2000 and 1:2500".
Now, for example, i wish to set the blocks to be shown at 1:2500 in the drawing. I select the blocks and make them 1:2500 in the 'look-up' table. However, if i wish to set the annotation scale to 1:20000 (because this will xrefed into a drawing plan of a scale of 1:20000) it incorrectly shows the size of the attribute. The attribute has a 1:20000 annotation scale set to it but its size is not correct. This happens for other scales but for other scales (1:25000 for example) its fine. Also, the attribute could move when switching annotation scales and appear near the 0,0 WCS.
The layout tab shows the annotation scale and viewport scale set to 1:20000 but as you can see, the text is not set to 4.5.
I would prefer to have the attribute linked to the block though. I have tried ATTSYNC and RESETBLOCK but the bug keeps coming back.
Using AutoCAD 2011.
View 2 Replies
View Related
Jun 18, 2013
I am using AutoCAD 2012 (Electrical). I have a few blocks that I pasted in a drawing with text that is contained in attributes.
I would like to explode these blocks so that I can make some changes to them, but when I do this, I lose the text that is contained in the attributes. After exploding the blocks, I just see the attribute names rather than the text that they originally contained.
I hate to have to re-type all this info. If I could somehow choose to choose to convert the text originally contained in attributes to plain old static text, that would be perfect for me.
View 4 Replies
View Related
Jun 3, 2013
I have a block that I want to show on a vertical exaggeration of 10x. How do I make it so that a block has a Y scale of 10 without the attribute text inside the block being stretched in the Y direction 10x?
I would like to use a Y scale of 10 rather than a block with 10x the length because I have a field that returns a length parameter and I don't want that value to be 10x what it's supposed to be, and it would make things much easier to not have to multiply my values by 10x each time I use the block.
View 1 Replies
View Related
May 17, 2013
I wanna change my block name to attribute text value, any similar lisp code?
View 9 Replies
View Related
Dec 18, 2013
How do I prevent "Edit Attribute" pop up prompt for entering text for an attribute in a block? I just want the same attribute text each time I insert the block, I don't want the "Edit Attribute" popup window to re-enter the same text every single time.
I do want the attribute text so mirror won't reverse it (I just want permanent attribute text).
First I delete the old regular text.Second I give the block an Attribute Definition Tag and enter the text I want in the Tag blank. Third I center where I want the text. Forth I save the block.
When I finally insert the block I get the "Edit Attribute" pop up to renter what I want it to say. Like I said earlier, I don't want this pop up, I just want to enter the text once and that's it. Also if I enter nothing in the "Edit Attribute" pop up, then no text will show on the block.
View 3 Replies
View Related