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)
I can do it, but I was wondering if there is a better way.
Large PS file (CS6 and CC) half a dozen texture layers using low res images. Several have blend modes, transparency and even masks. I now have the same images in high res. I want to replace just the image, but not lose my blend/transparency, or masks.
Do I bring in the high res layer, copy the mask over etc? Then delete the original?
I'm currently working on a profile and I just don't understand why my profiles barely show any stations. It doesn't even show the very first station. I remember checking on a box that mentioned showing the 1st station and still nothing. I've gone into the edit band style and turned on the labels at minor stations but it just turned on the FG/EG elevations.
I've added a picture showing what i'm talking about. It only shows stations 31+00 and 32+00. Not 30+00 or the 50' increments. Also, while I'm on the subject. How do I get something proposed into this existing profile to show FG Elevations. Example if I just wanted to strike a straight line from 30+00 to the end where the elevation is a 91' & 86'.
HP Compaq 8100 Elite Win 7 Pro SP1 - 64Bit 8GB RAM i7 860 @ 2.80 GHZ AutoCad Civil 3d 2012 SP1
I would like to know if there is a way to insert drawing no.1 into drawing no.2 (not copy sheets!) so that if I change the drawing no.1, the drawing no.2 (the one that contains no.1) also updates.
That is because I would like to have one part of the drawing that is ''standard'' and multiple drawings that contain this part (so that this part is defined in all drawings but is always the same). Because I don't want to have a separate drawing for the ''standard'' part, but only drawings that contain it.
I am trying to label existing ground & profile grade on my cross-sections the way old Land 4 used to do it. I've muddled through section view property style settings, band settings, group properties w/no luck. It can't possible be this difficult. What am I missing?
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 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]....
I have a drawing from an outside source which was not drawn to scale, and dimensioned in MS.. When trying to scale the drawing to 1:1, the dimensions lose their contents. When looking at the properties, the contents of the override do not jive with what is actually shown, and any attempt to edit, move, copy/paste, or scale the dimensions will delete the contents. I have not come across anything like this before. Drawing attached...
I have imported a survey file. When I insert the points into the drawing, the elevation changes to something that isn't even recognizable. When I view the point in the survey tab, the elevation is correct, when I view the point in the prospector tab it is different.
I've been sent a survey drawing with elevations. The format is a block, but it's not a named block. Each entity has it's own block name. So, I'm having trouble getting at the elevations. I can't seem to export and get the elevation or Postion Z.
I've tried exploding these blocks, but all I get is a couple of polylines, and some text. Useless. I've attached a sample drawing with a couple of these points.
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(); }
I created the attached block to add spot elevations to a drawing. The block has attributes allowing elevations to be manually typed in, but also includes many dynamic features for rotation, lengthening, mirroring, etc. The block was created as an annotative block.
The block and all of its features work perfect as long as the dynamic features (rotation, etc) are not used after additional annotative scales are added. I often times have a drawing set at 1:10 or 1:20 scale and need to do an enlarged detail at 1:5.
What I would like to do is have this block set at 1:10 scale and 1:5 scale and manually rotate it (ideally using the dynamic features) at different angles for each scale. Is this possible and if so, why is it not working with this block? This works flawlessly when using annotative multileaders, so why shouldn't it work with blocks or is this just too labor intensive for the software?
I have also tried attsync, etc. and often times when rotating at different annotative scales, the text attributes go "bonkers" for the opposing scale when applying attsync.
After using the program for a few weeks it appeared the error message "An error has occurred while drawing the contents of this window" only when I open the 3D view. I reset the Windows user profile and everything is back to normal operation. Today has come out again this error screen. Video drivers are certified and the board is a Nvidea Quadro and normally I have no problems. To test I created a new user and everything works fine.What could alter the software related to user profile?
I just downloaded the student version of Revit 2012 and when trying to draw in the window i get the following error message. "A error has occurred while drawing the contents of the window." This lwindow shall be closed.
How can I make sure the annotated surface labels spot elevations from my 3d design drawing which is being xrefed into a new Precise Grading Breakout Sheet plots screened?
The Label Style which I created for the annotated surface label spot elevations has all its properties set to be ByLayer for example its color and lineweight. The Layer I assigned the Label Style was assigned to a layer with a color and plot style that should plot any object screened. Color 8 and Plot Style Screened.
What other steps am I missing to assure myself that this Label Style will plot screened in my new Precise Grading Breakout Sheet?
I also made sure that the xref drawing in which this Surface spot elevation has the correct colors and lineweights and Plot Styles in my new Precise Grading Breakout Sheet.
I have some styles I will like to replace in some drawings but how? I cant find any function to do this.
Dim oIDWStyles As Inventor.DrawingStylesManager Set oIDWStyles = oDrawDoc.StylesManager Dim oldstyle As style Dim Newstyle As style For Each oldstyle In oIDWStyles.Styles If oldstyle.Name = "Old style" Then
I have a drawing with numerous text fields that I'd like to replace. For example, there are 30 different text fields showing a dimension of 19.298". I need to replace all of them so that they show 19.125" instead. Is there a quick way to swap out the text without having to do it one field at a time? Is there something that would allow me to do it globally rather than individually?
I'm using an LSP to replace points in a drawing into a block. I've had this working previously, no problems. However, having spent some time creating new blocks when running the LSP the points are being replaced at a different location in the drawing - rendering the whole process useless.
I get the impression this is caused by the block itself rather than the LSP. What am I doing wrong that would cause this effect?
is there a way of find and replace tab names in one drawing file? one file with six tabs named 001 rev A, 002 rev A etc. i would like to change all the "rev A" to "rev 0" with out going into each tab seperatly and changing them.
I have drawing template files created by a former employee that need to have the old company logo removed and replaced in the title block. If I double click on the title block, all information displays, except the graphic for the logo. If I explode it, I lose all the .dwt formatting. How can I replace the logo without losing the formatting of the rest of the drawing template?
I have some code to replace the current title block with a title block from a template file. I just don't like how it adds a new title block definition named "copy of titleblock". I'd like to delete or replace the current title block definition so only the newly added one is listed.
Sub test() Dim odrawdoc As DrawingDocument Set odrawdoc = ThisApplication.ActiveDocument If (odrawdoc.DocumentType <> kDrawingDocumentObject) Then Exit Sub Dim oTemplate As DrawingDocument Dim oSourceTitleBlockDef As TitleBlockDefinition Dim oNewTitleBlockDef As TitleBlockDefinition Dim oSheet As Sheet Set oTemplate = ThisApplication.Documents.Open(ThisApplication.FileOptions.TemplatesPath & "template.idw", False) Set oSourceTitleBlockDef = oTemplate.ActiveSheet.TitleBlock.Definition Set oNewTitleBlockDef = oSourceTitleBlockDef.CopyTo(odrawdoc) ' Iterate through the sheets. For Each oSheet In odrawdoc.Sheets oSheet.Activate oSheet.TitleBlock.Delete Call oSheet.AddTitleBlock(oNewTitleBlockDef) Next oTemplate.CloseEnd Sub
I'm just being picky at this point, but I don't want a buildup of title block definitions. We reuse drawings all the time which is why a simple method of updating a title block would be nice. I can just imagine in some years time after a title block update or two there are 20 "copy of copy of copy of .................. titleblock" listed in a drawing file.
I'm wondering if there's a way to change/add to the list of available lineweights in the dropdown lists in the layer manager. I want to have a thickness of 0.125", but that isn't available. I found that if I issue the STYLESMANAGER command, I can edit lineweights in existing .ctb/.stb files, but I don't know now to transfer that to be available in an existing drawing. Can I just assign a ctb/stb style to my drawing?
I have a drawing at AutoCad and i want to change its coordinate like that
X'= X Y'= -Z Z'= Y
I know how to do it with the points (export their coordinates in a text and then transform the text and then import again at an Autocad) . But thus i loose all the line, arcs, etc .