AutoCAD 2010 :: Copy A Text String From One File To Another

May 2, 2012

I have spent the last three days writing a lisp program that will copy a text string from one text file and paste it into another.  I have tried using the write-string, get string, prin1, princ and print functions with no success. 

View 2 Replies


ADVERTISEMENT

AutoCAD Visual LISP / AutoLISP :: Copy Text String From One File To Another

May 2, 2012

I have spent the last three days writing a lisp program that will copy a text string from one text file and paste it into another.  I have tried using the write-string, getstring, prin1, princ and print functions with no success. 

View 6 Replies View Related

AutoCad 2D :: Edit One Text String And Same Change Can Affect Another Text String

Jan 12, 2011

I was wondering if there is a way that AutoCad can edit one text string and the same change can affect another text string, instead of editing the same thing twice.

View 9 Replies View Related

AutoCAD 2010 :: Replacing Part Of A Text String?

Mar 27, 2012

I am trying to add text to a set of text strings in a drawing.

The tricky part is that not all of the text strings are the same.

For example, change part numbers

123, 125, 456, 892

to

123-70, 125-70, 456-70, 892-70

Is there a way to do this for all of the strings at once?

View 9 Replies View Related

Illustrator :: Finding And Replacing A Text String To Style Block Of Copy

Jul 19, 2012

Is there a way when finding and replacing a text string to style the block of copy. My problem is that I have some color codes given by the customer that now need to be converted to our internal color matches on our production drawings.
 
The original string of text looks like this:
Holder: P1 (Metallic Silver)
 
What I’m getting when I go to replace this string is:
Holder: Natural Satin
 
What I want is:
Holder: Natural Satin
 
I do not want the replaced text to be italicized. I'm thinking since the original string ends with an italic style that the replacement string is also italicized. There are about 50 pages of drawings with about 10 colors on the job and some pages have them entered in more than one place. So that's a minimum of 500 entries and defititely more considereing the multiple places these are called out. I'd really rather not have to copy and paste all of these by hand. I'm use to FreeHand, which would respect the font styling of pasted text in the find and replace diaglog.

View 6 Replies View Related

AutoCAD 2010 :: Lisp For Extract Number Value From Between Text String

Sep 5, 2012

I have text with number string. ( eg:  weight   50 kg,   xyz weight   362 kg)i want to extract the number values of  "50" &  "362"  from the text string.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Changing String Of Text / Multitext / Dimensions To Another String

Nov 16, 2012

i failed to find one which would change string of a text to other for all types of objects. I mean it was usually either only multitext, or only text, dimensions or attributes.creating one which would change in abt 200 drawings:

-001

-002

-003

to:

-00001

-00002

-00003

in attributes, text, multittext, leaders, multileaders, dimensions..... at the same moment?

It is meant to be used in ScriptPro (by loading lisp in script).

If not possible, then can also open each file and run the lisp in each of them - still would save lot of time.

View 4 Replies View Related

AutoCAD Inventor :: Remove Iproperty Mass Unit String From Mass Value In Text String?

Oct 3, 2011

I've been looking for a solution to remove the unit string ie Lbs, g, kg from the value given from a 'Mass' value in a text string.

As you may all know, creating text and having a 'physical property - mass' value...the unit string is there...

Lots of people on here have the problem...no-one has got a solution.

Until now...

Basically...open the part you need to get the mass property of in your text string.

Follow the instructions on this webpage...this is the first part...

[URL]

Basically, this creates a Mass property value in the parameters table that you can call on as a text parameter.

It's similar to the custom iproperty model - mass but NOT the same.

Once you have done this, you can go to the drawing of the part and create a text string in the drawing and call it up as shown in this procedure. BUT it still has the unit string.

Here's the best bit that you want to know...

To get RID of the unit string...open up the part again from the drawing...click on the parameter icon...find the user parameter...in the Nominal value column, right click on the value and you get a pop-up that gives you 3 options...

Custom Property Format, Make Multi Value & Delete Parameter.

Click on Custom Property Format.

The pop-up window comes up...showing you the property type...in my case...the 4 left columns read Text, g (grams), Format & Precision...

On the right hand side I have a Preview of the text...then 3 check boxes...Units string, Leading Zero's, Trailing Zero's.

Units string is checked.

Uncheck it.

Close it...Save your part...go back to the drawing and hey presto!...the text now shows the weight you require as a straight value...no units!

View 9 Replies View Related

AutoCAD 2010 :: Copy And Increment Text

Aug 21, 2012

Does AutoCAD have a function to copy and increment text? Say I have a piece of text that says Area 1, I want to copy this text a number of times so that I get Area2, Area3, Area4 by just copying ..

View 9 Replies View Related

AutoCAD 2010 :: Copy Text From One Attribute To Another Within Same Block

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

AutoCad 2D :: Change Text Edit To Start At The End Of String Of Text?

Jun 26, 2012

What I want to do is have text edit for single line text to start at the end of a string of text instead of high lighting the entire text. Is it possible to do this?

View 4 Replies View Related

AutoCAD 2010 :: Copy Or Move Object In File Converted From Microstation

May 22, 2012

When I copy or move an object in a file converted from Microstation to Autocad 2012 the system freezes or slows down to a crawl. If I redraw the drawing in Autocad it works fine. I have a lot of drawings converted from Microstation and I don't need to be redrawing them all.

View 1 Replies View Related

AutoCAD 2010 :: This Drawing File Doesn't Allow Copy To Clipboard Or Even Binding

Aug 22, 2012

This drawing file doesnt allow copy to clipboard or even binding on to other drawing. It was originally sent to us from another company, I have deleted all the objects and layers, purged it. If I create a new line or other object, Ctrl+C doesnt work.

View 2 Replies View Related

AutoCad 2D :: Remove Text String Out Of All Selected Text?

Sep 28, 2012

Instead of adding text as a prefix or suffix i would like to know if it is possible aswell to remove text from within text: For example:

I have these texts "I am not good", "he is not good", "what not to be" And i would like to remove the word "not" from all selected text so i would get "i am good", "he is good" , "what to be". The set word not will always be the same, so there is no need for user string input.

View 6 Replies View Related

GIMP :: Copy Editable Text From A Word File Into The Text Editor

Oct 28, 2013

I'm trying to copy editable text from a Word file into the text editor for GIMP. Before I upgraded to 2.8, this was possible, but now it seems not. I'm on 2.8.4 using OSX Mavericks on a Macbook Pro.

I'm a terrible speller and since GIMP doesn't support spell check, this was always my workaround.

View 4 Replies View Related

AutoCAD 2010 :: Using Lisp To Add A String To Each Item In List?

Nov 14, 2013

I have a list ("temp.dwg" "temp2.dwg") and would like to add the string "insert text here" into each item in the list resulting in ("insert text heretemp.dwg" "insert textheretemp2.dwg").  how would i go about doing that using LISP?

View 2 Replies View Related

AutoCAD 2010 :: Extract Text To Excel File Or Find MEAN Value Of Text

Jul 6, 2012

I have a drawing which has hundreds of levels on and i'm trying to establish what the MEAN level is and the AVERAGE level.  I thought the best way might be to extract the text to excel and perform it there but at the moment the only way i can do it is to copy and paste the text and its taking me forever.  Is there a way to either a) extract text to excel or b) calculate a MEAN value based on texted selected?

View 2 Replies View Related

AutoCAD .NET :: Attribute Reference Text String

Sep 4, 2013

I change a block's attributes programmatically using thisfunction I created:

private void UpdateAttributes(Database database, Detail det) { using (Transaction tr = database.TransactionManager.StartTransaction()) { //Grab the BlockReference the detail refers to. BlockReference block = (BlockReference)tr.GetObject(det.ObjectId, OpenMode.ForRead); //Iterate over the Attribute ids. foreach (ObjectId [code].......

You can ignore the Detail and Detail Attribute objects as they are also user-defined.  Also note that this function expects the database to be currently open for working on.

Everything in this function works fine, but there is a strange quirk that becomes noticeable only when I use this function to edit an attribute that has its "Invisible" property set to "No".

Below, is the original block that is edited via this function:

As you can see, the block has a number with 4 digits (for our purposes, call this the Block Number).

View 6 Replies View Related

AutoCAD Map 3D :: Converting Text String To Block

Aug 16, 2012

In a drawing, i have several text strings, 's', that i would like to change to a known block... is this able to be done? there are over 3000 's' in the drawing, hoping to change them all to the same block. let me know if this can be done.

View 2 Replies View Related

AutoCad 2D :: Converting Text String To Known Block

Aug 16, 2012

in a drawing, i have several text strings, 's', that i would like to change to a known block... is this able to be done? there are over 3000 's' in the drawing, hoping to change them all to the same block.

View 9 Replies View Related

AutoCad :: Keep Original String In Text Override?

Aug 15, 2011

I know it is easy to enter special characters in using “%%” escape sequence. However, if I am not entering in single or multiline text, but rather in a dimension annotation’s “override” field, I found that the newly entered text completely overrides the original dimensional annotation.

For example, if originally I had a diameter of 7.98, and I would like to put a Φ sign in front of it to make Φ7.98, but it seems that there is no way to preserve the original content of 7.98 together with the Φ sign.

Is it possible to keep the original measurement within the string? What is the special character representing the original measurement?

View 5 Replies View Related

AutoCad 2D :: String Of Text Is Curved At A Given Radius

Dec 18, 2009

I want to have a string of text that is curved at a given radius.

View 9 Replies View Related

AutoCAD 2010 :: Copy Elements Of Files In Drawing - Copy To Clipboard Failed

Jan 11, 2013

i have various files which I cannot copy elements of into other drawings.

when i use the ctrol+copy command, I get the "copy to clipboard failed". This has only started since I upgraded to AutoCAD2012.

View 4 Replies View Related

AutoCAD Inventor :: Converting Text String Into A Number

Dec 20, 2011

I have a custom iProperty with a text value of "Plate, Steel 140 mm". Is it possible to strip out the 140 (text) from the string and convert it to a number?

View 7 Replies View Related

AutoCAD 2010 :: SSGET - Filtering String Content / Code Not Selecting Objects With L Included

Dec 12, 2012

I don;t know what happen with this piece of code, I have checked it a million of times and seems to be well done. I'm trying to filter a previous selection and select Text or Mtext objects that are in the layer COTREF, and that contain the strings "%%c" AND "L" at the same time. The problem is that the code it's not selecting objects with the "L" included.

Here's the

(setq grupo1 (ssget "" '((0 . "TEXT,MTEXT")(8 . "COTREF")(-4 . "<AND")(1 . "*%%c*")(1 . "*L*")(-4 . "AND>"))))

The most unreasonable thing it's that I have 2 text objects exactly the same and when using this filter codes just one object it's selected (cyan cloud), check included DWG file.

I'v been searching about it and seems some persons are having problems with ssget filters in the newer versions of AutoCAD, I'm using 2012. I'm also suspecting for the character "%" which could be working as a wild-card, but as far as I know it is not.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Get Text String From Mtext?

Aug 20, 2013

I'm looking for a function to return the actual text from an mtext object.if there's a carraige return I wish to replace it with a space.

View 4 Replies View Related

AutoCAD .NET :: Replacing Text Of MText And DBText Entities With Some String Value

Jun 15, 2012

I was writing code for my custom .net extension dll and one of the procedure involved therein was to replace the Text of MTEXT and DBTEXT entities with some predetermined Text String. I am using C#, AutoCAD 2012, and Visual Studio 2010. Here is the part of code wherein I am trying to replace the Text String of the MTEXT or DBTEXT entities.

  foreach (SelectedObject selectedObject in selectionSet) { Entity currentEntity = transaction.GetObject(selectedObject.ObjectId, OpenMode.ForWrite, false) as Entity; if (currentEntity == null) { continue; } if (currentEntity.GetType() == typeof(MText)) { ((MText)currentEntity).Contents = textToCopy; } else { ((DBText)currentEntity).TextString = textToCopy; } } transaction.Commit();

 The issue is that the text of the MTEXT or DBTEXT is not getting replaced with the string I am trying to. I debugged the code and it correctly hits the setting of MText.Contents == "Some String" and also transaction.commit(). But the text of the MTEXT still remains to the old value. Is this the correct way of changing the text of MTEXT / DBTEXT  through the .Net API.

View 3 Replies View Related

AutoCAD Inventor :: IProperties - Adding Extra Text To Existing Fx String

Jun 26, 2012

I am populating iProperty "Description" field using expressions from the custom fields. These custom fields are exported from the parameters.

Is there a way of typing in extra plain text into the field onto the end of the expression without losing the expression formula?

Inventor 2010 Pro SP4, Vault Collaboration 2010
HP Z820 Xeon E5-2643 0 @ 3.3Ghz 16.0GB RAM
Nvidia Quadro 5000

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Find Duplicate Text String

Jun 11, 2007

In order to avoid duplicate text string in different places in the same drawing, I would like to have such a tool to find duplicate text string.

For instance, I want to put numbering of some connection lines, I do not want to have different lines but have same number by mistype.

View 9 Replies View Related

AutoCAD Inventor :: Write Text String To Parts List With ILogic

Mar 5, 2013

I'm trying to create an iLogic rule that will print a text string to a cell or coloum of a parts list in inventor.

My code so far...

Sub Main()
On Error Resume Next
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
[code]......

I want to print what is in the Message Box into a cell in the parts list, and i am stumped. The cell i am trying to print to is a user property in the Parts List.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Compare Value Of Variable To Set String Of Text

Jun 11, 2012

I would like to know how I can compare the value of a variable to a set string of text if the two prove to be equal perform task A if the two prove different perform task B?

View 7 Replies View Related







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