AutoCAD LT :: Replace Existing Attribute Value By New One

Jun 20, 2012

I need to replace an existing attribute value by a new one.

The problem is that I don't know the current value. Is there a way to use a wild-card statement when asked to "Enter string to change: ". I can only manage to do it if I know the existing value of the attribute.

I am using Autocad LT 2012.

View 1 Replies


ADVERTISEMENT

AutoCAD LT :: Script To Replace Attribute Value?

Mar 22, 2012

script to replace an attribute value, the problem I've got is that its adds to the value not replaces it. Here's what I've got :-

-attedit

n

n

rev

A

regenall
 
So if the previous value for the attribute was 0 for the attribute "rev". I now get 0A.

I am using Autocad Lt 2012 and my block name is HS-A3.

View 1 Replies View Related

AutoCad :: Replace All Existing Elevations In Drawing With Same Contents

Mar 3, 2011

A way to substitute the contents of a text throughout the drawing easily? What I want to do is substitute all existing elevations in the drawing with the same contents, but enclosed in parentheses, so that: xxx.xx becomes (xxx.xx)

View 8 Replies View Related

AutoCAD Inventor :: Copying Sheet Formats / Replace Existing?

Mar 13, 2012

I also need to copy sheet formats and have it replace existing like it would with Titleblocks or Borders.  All it does at the moment it create Copy of Titleblock. Here is the current code.

Function CopySheetFormat(SecretDrawingName As String, Titlename As String, ActiveDrawingDoc As DrawingDocument) As SheetFormat
    Dim SecretDrawing As DrawingDocument
    Dim I As Integer
    'Find the number of Standard Resources in the Documents collection.
[code]....   

View 1 Replies View Related

AutoCAD 2010 :: How To Add Items To Existing Attribute

Feb 3, 2012

I have an exisitng attribute that have several line items.  I want to add more items to this attribute same attribute.  The attribute block name is "JLR24X36" and there are 15 existing tags within this attribute?

View 3 Replies View Related

AutoCAD LT :: ZTag Data To Existing Attribute In Block

Oct 19, 2011

we have a block that we use to identify rooms. that block has 3 attributes: rooms name, rooms number and surface area.

A former colleague once showed me how to do this but I can't reach him... How can I inquire the data from an area and tag-it right to the surface area attribute of my block? I don't mean pick a pline, list and edit the block... it's something like pick the closed pline and the "area" data is displayed in the right tag of my block?

View 8 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Search For Existing MLeader With Attribute Value

May 21, 2013

I'm working out a LISP for searching my entire drawing for a MLeader with a given value and then do something if it is found.

Currently, my code dies with 

; error: Automation Error. Description was not provided.

I do not know what is going wrong & I don't know what must be done next.
 
(DEFUN ML-SRCHSTR (TXT LBL / SS n_txt_LBL ENT P1 P2) ;|(ML-SRCHSTR TXT)|; (IF (SSGET "x" '((0 . "MULTILEADER"))) (PROGN (SETQ ss (VLA-GET-ACTIVESELECTIONSET (VLA-GET-ACTIVEDOCUMENT (VLAX-GET-ACAD-OBJECT)))) (VLAX-FORent ss(IF (VL-STRING-SEARCH txt (STRCASE (VLA-GET-TEXTSTRING ent))) (PROGN (VLA-CLEAR ss) (INITGET 1 "Yes No") (SETQ n_txt_LBL (STRCAT "
=>> " LBL " Label EXISTS! Add another " txt "? ") y_n (GETKWORD (strcat n_txt_LBL " [Yes/No]: ")) ) (IF(= y_n "Yes") (PROGN (ppa-L-

[Code]...

My MLeader has a _TagBox & it is the attribute of the _TagBox that I am trying to check/compare the "txt" value.

View 8 Replies View Related

Illustrator Scripting :: How To Access Text Boxes In Existing Document And Replace With New Value

Jun 28, 2012

Is there a way to access text boxes in an existing document and replace them with a new value taken from an excel table? I've been able to create new documents from scratch and populate them with excel data, but formating these new documents to look like those we already made is proving more difficult than I thought using just Javascript.
 
Ideally I'd be able specific an index for each text box and replace them in order as i itterate through the excel(or CSV) document.
 
I already have a way to pull from the table, another question asked here, but can't figure out the object model to put the new info in a specific place.
 
Below is what I came up with to create a very rough looking document from scratch:
 
#target Illustrator
var csvFile = new File('C:/users/whatever/spreadsheet.csv');
if(!csvFile.exists){
          alert('notafile');
          app.quit(); }
 
[Code].....

View 3 Replies View Related

AutoCAD Civil 3D :: Find / Replace After Export It And Replace Star With A Column

Feb 23, 2012

i have a csv file that has 6 columns, PNEZD and a 6th column which is my notes..i type a star in the data collector after my code, make my note, and then find/replace after i export it and replace star with a column..that gives the desired 6th column in excel that my boss wants....problem is he also wants to see that next to the Full Description in Civil 3d 2012...i tried adding a Point File Format with a 6th Column, User Defined, String for type...named the column Notes...but if i go to edit the point there is no 6th column in the Tool Palette.

View 1 Replies View Related

AutoCAD VB :: 2011 Batch Convert Field Attribute To Text Attribute In Blocks Using VBA

Jun 3, 2011

I've got hundreds of files to convert. 

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.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Transfer Attribute Block Values To Another Attribute Blocks

Jul 3, 2012

I wanna transfer my attribute block values to another attribute text blocks , is there any lisp for that?

Is there a possibility for sum tag values of choice attribute blocks to inside of another attribute text block ?

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Convert Attribute Tag Into Attribute Value?

Dec 8, 2011

Background: Someone exploded an attribute block and copied it hundreds of times throughout a project, each time changing the Attribute Tag to match the Value they expected to appear in their drawing.  The drawing must be xrefed, so the attribute definitions do not appear.

(There is only 1 attribute in the block.) 

Proposed Solutions:

1:AutoLISP routine which copies Tag data from Attribute Definition into Value of Attribute Block:

Prompt-Select Attribute Definition

Copy Tag data

Prompt-Select Attribute Block

Paste data into Value

(Allow repeat to speed workflow)(*PREFERRED*)

2:AutoLISP routine which copies Tag data from Attribute Definition into Default Value and creates a new Block:

Prompt-Select Attribute Definition

Copy Tag data

Paste data into Default Value

Create New Block

(Select Multiple Objects)(Creates tons of new blocks which are messy)

View 3 Replies View Related

AutoCAD .NET :: Attribute Reference Text String MText Attribute

Mar 16, 2012

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? 

View 1 Replies View Related

AutoCAD 2010 :: Can't Change Attribute Value In Enhanced Attribute Editor

Dec 21, 2012

creating a block with attributes. I did manage to get my block set up and inserted in a dwg, but I am unable to change the "value" of any attribute. Unless I click on the "..." button next to the value field.

View 1 Replies View Related

AutoCAD 2010 :: Change An Attribute From A Value From Another Attribute In The Same Block

Oct 5, 2012

What I really want to do is on our fire alarm blocks we have 3 different attributes one for the address, the candela and one for misc info. I want to make an attribute that takes the number from the candela (15,30,75or 110) and change a different attribute to a value depending on which candela we use (such as 15=.078, 30=.113, 75=.195 or 110=.259). But I don't want the .078,.113,.195,.259 to print out on paper, I want to export block information excel file so I can add up all values.

View 2 Replies View Related

AutoCAD Civil 3D :: Create All New Existing Surface Over Existing Ground

Sep 28, 2012

I'm trying to create an all new existing surface over existing ground. I have a TIN surface of the EG, and I have drawn overlay splines that describe the new surface, but how to go about creating that design surface.

It is a compound surface, open on one end and closed all around on the other, somewhat like a half of a football stadium, but with an irregular upper edge because I am needing to figure out cuts and fills to manipulate the EG into this new surface without costly major terraforming. There is about 40-50' vertical elevation between the "field" and the upper rim with a generally constant 7-10 deg. slope all around. I'm just at a loss to figure out how to approach this project, and am quite new to Civil 3D.

Civil3D 2013
MacBookPro 17 - 2.4GHz Intel QuadCore i7 (Late 2011 build)
Microsoft Windows 7 64bit
350GB Bootcamp volume

View 2 Replies View Related

AutoCad 2D :: Copying Attribute Values To Another Attribute?

Jun 15, 2013

I want to copy attribute values. I'm making a catalogue of all the reinforcements in my drawing so I need to name those reinforcements. So what I want is to make a string of text that I don't need to totally modify everytime. Something like this:

Amount of reinforcement bars - 5
Diameter of the reinforcement - 12
Division of reinforcing bars - 100
Reinforcement bars: 5-T12-k100

So the only attributes I'd edit would be the first three not the last one. So how can this be accomplished?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Check Block Attribute Then Change Different Attribute In Block

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

AutoCAD Civil 3D :: Composite Surface Of Existing Surveyed Contours As TIN Pasted Into Existing Aerial Contours

Nov 15, 2012

Some background: We have a composite surface of existing surveyed contours as a TIN pasted into existing aerial contours that we received from a client.  We used polylines to generate our proposed contours, and then generated a proposed surface from that.  We've made a blank surface, pasted in the existing surface, and are trying to paste in our proposed surface...  only the existing contours outside of the proposed suface no longer line up correctly once we do.

We've tried applying the method laid out here: [URL] ........ (and the link referenced in the bottom) but are still having trouble getting the surface to work.  We've tried offsetting as little as 0.25' and as much as 5' with the feature line draped over the existing surface, but it seemed that the greater the offset, the greater the discrepancy.

Just to make sure we even tried that correctly - should the breaklines that we add be standard or non-destructive?  (I've tried it both ways with little success either way, so I don't know if it matters much in this instance, but perhaps for future reference it would work.)

I've attached a screen shot of our surfaces.  The pink and green lines are the proposed contours, the white dashed are the existing.  The outer red line is offset 0.25'.  As I've mentioned, we've tried offsetting various amounts with decreasing success.

View 9 Replies View Related

Photoshop :: How To Change Color In Existing Gradient On Existing Image

Mar 25, 2013

I have an image which is simply a one color gradient, with transparency from nothing to something. I would like to be able to access the existing gradient on the image and change only the color. I have hunted high and low and cannot see how to do this.

(I am familiar with how to make a new gradient and how to change the colors in a saved gradient via the gradient dialogue. But for the life of me, I can't see how to access an existing gradient on an image and change only this one parameter.

View 9 Replies View Related

AutoCad :: Replace One Block With Another?

Mar 24, 2008

I'm working in ACAD 2008 and have a drawing with multiple blocks (block 'a') that need to be replaced with block 'b'. Is there a command similar to edit/find that I can use to replace the block? I don't want to redefine my block and want to only select certain block 'a' to be replaced, not all block 'a'...

View 9 Replies View Related

AutoCAD Inventor :: Replace A Model From IAM To IPT In IDW?

Oct 30, 2013

is it possible to replace a model  from .iam to  ipt in idw?

View 2 Replies View Related

AutoCAD .NET :: Replace All 3D Polylines With Cylinders

Feb 21, 2013

I'm trying to automate a simple yet massively tedious task at the moment. Certain layers of my drawings contain 3D Polylines that have to be converted to cylinders. What I need to do is select all 3D Polylines in a specific layer and automatically convert them to cylinders, these cylinders will all share the same hardcoded diameter, however will retain the x,y,z, positioning of the 3D Polylines. The way that I'm approaching i'm attempting right now is to use a selection filter to select all 3D Polylines, save their co-ordinates into an array, create the cylinders using these co-ordinates and then deleting the existing polylines.

View 9 Replies View Related

AutoCAD Inventor :: Save And Replace IPT And IAM With New Name

Oct 31, 2013

Whats the best way to save and replace many ipts and iams with a new name. I would like to select many files in the tree and then loop through each of them.

View 2 Replies View Related

AutoCad 2D :: How To Replace Font Style

Sep 23, 2011

Is there a way to mass change text, as in I have our standard text style and we need to use the same font as the rest of the consultants.

I would like to 'replace' our font style with theirs and not have to select any text and change it manually.

View 6 Replies View Related

AutoCad :: Replace Block Command?

Sep 6, 2012

I remember on a pc i was using once upon a time, AutoCAD had a command called replace block. the shortcut was 'RB' and you could replace a block with another one very easily.

View 2 Replies View Related

AutoCad :: Replace Only Selected Blocks With A Different One?

Feb 11, 2011

I have 20 blocks named "george" in my dwg. Now, I would like to replace only 7 of them with the block "george2". Is there a simple way to do it just by selecting these 7 and replacing their definition without changing the other 13 "george" blocks?

View 9 Replies View Related

AutoCad :: Find And Replace Box Keep Always Open?

Nov 7, 2012

Is there a possibility to find and replace box keep always open. What I need is to find a certain text, make corrections on the drawing (not in that text) and click NEXT to jump to the following text with the same content. Constantly opening and closing commands takes lots of time.

View 1 Replies View Related

AutoCad :: Replace Donuts With Blocks?

Aug 12, 2011

I have structural drawings and all the rebar is donuts. I've decided to make it a block so I can add it to Tool Palettes. Is there a way (Lisp perhaps) to replace all the donuts in an existing drawing with these new blocks?

View 9 Replies View Related

AutoCAD Inventor :: Replace Assembly With Part

Oct 6, 2012

I am capturing a book-case design that I made long ago into Intentor.  I am almost finished, and I want to produce .dwg files and a bill of materials of parts that can be held.

For various reasons, almost all the items in the existing design are assemblies, and the underlying parts correspond more or less to half of physical parts that are contained inside a repeating cell.  I will almost certainly continue using this approach.

A simplified design that shows this is at [URL]..... in the file Display.iam

I created the file Slat.ipt by using derive (Slat.iam).

If I replace the Slat assemblies with the file Slat.ipt, the bill of materials will show parts that correspond to physical parts that I can hold in my hand, or list on an invoice.  I can do this with many, many mouse operations.

To make this modification quickly, I attempted to do Component -> replace on the Slat assembly.  I use this operation a lot to replace one version of an assembly with another.  When I do it with a .ipt file, the system pauses for some tens of seconds, then crashes.

A brute force work around is to use the mouse to do the replacement, essentially rebuilding the entire project in place.

View 1 Replies View Related

AutoCAD 2010 :: Batch Replace Blocks

Feb 22, 2012

We've recently converted all our microstation drawings to autocad now that the company has decided to go with one cad program company wide. One of the issues we are having after getting the drawings back from the this co. converting them is the cells to blocks conversion inside the drawing. when we open a drawing and see a "Fuse" block for instance and if it a has multiple inserts, it named them:

Fuse
Fuse_1
Fuse_2 etc....

is there a lisp routine or some command that would replace the "Fuse_*" blocks with "Fuse"..I've been searching the forums and know about the express tool Replace Block but need to be able to automate somehow. I thought about trying to rename each of the "Fuse_*" but of course it won't let you rename to a block name that already exists.

View 1 Replies View Related







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