AutoCAD 2010 :: Replacing Old Titleblocks With New
Dec 17, 2013What is the best way to replace an old titleblock with a new titleblock? I am using AutoCAD 2010
View 5 RepliesWhat is the best way to replace an old titleblock with a new titleblock? I am using AutoCAD 2010
View 5 RepliesI was asked if there was a way to replace an embedded (Nested) block inside of multiple blocks, with another block. I thought of Express Tool's "Replace Block with Another Block", that that only works with blocks inside the drawing, not nested blocks. The only other way I know of is to redefine the block current block, then rename it to the new name.
View 6 Replies View RelatedI 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?
Would it be possible to make a dynamic block for titleblocks with various layouts predefined in it?
To clarify, I currently have several titleblocks set up for the corresponding papersizes that i use, each one of these is a seperate block.
If i used a Dynamic Block could i incorporate several "layouts" into one block and one drawing?
usage of dynamic title blocks with visiblity states and defining page setup override templates which use same for quick plotting using sheet sets.
I have attached a simple dynamic block that I built which is the outter frame of our company title block, it is designed to allow users to quickly switch between Landscape and Portrait orientations.
The problem I am having is when I go to define page setups for my Sheet Set Page Setup Override Template I am unable to use the "Extents" option with auto-center because the "Extents", as defined by the page setup, includes ALL objects in the paper space regardless of visibility, so my title block ends up being centered in a stupid way if that printing configuration is used.
The only solution I have found is to use the "Layout" option when defining page setups, but this option produces other issues in other ways when printing. I don't want to use the "Window" option either for the potential for users to be using the page setup overrides to print drawings using different paper sizes or drawings that were not originally created using the current template the override is designed to accomodate.
Is there perhaps a system variable that defines whether invisible objects are included in the "Extents" setting in the page setup? I'm sure you'll all agree that Extents is the way to go in this situation, but it is not performing exactly as required.
Something I have found useful in day to day drafting is changing the F1 key to a secondary escape button. This way you won't have to wait for the help window to appear.
View 2 Replies View RelatedI'm working on HVAC project and after I have almost finished the whole project the managers company sent me new template layers file ,that I should follow. So now my "17_COOL_MEPA_SUP" layer and all of his futures (including color,line thickness and so on) need to be changed to "10_C_HVAC_S" with other futures (different color,different thickness). I know that I can rename group of layers by using script file ,but can I totally replace group of layers with another group?
View 9 Replies View RelatedMy office procedures dictate that when we place a content center part that we do so "as custom" for several reasons that are irrelevant to this question (I can expound if needed).
My question is: If I have an assembly with a content center part that is placed "as custom" and I use the component replace tool (CTRL+h) to replace it with another content center part that has already been created and placed "as custom" in another file, how come I get a new CC component that is not the one I selected?
It appears that I am getting a CC part from the same family as the original when what I need is the component to be replaced with the one I am selecting.
In other words: when I say replace "this" with "that", how come I get something else entirely? This functionality works perfectly on non-CC parts.
I need to replace a large number (3700) of blocks with points, and cannot find a command for that operation. I have found a lisp for converting circles to points.
Have I just not found the command, or am I a bad googler? Unfortenately I cannot handle pure code (yet), so I need a lisp file (or the command).
I cannot find why Design Assistant dont want me to use the replace command. i attached a picture.I have a 30 pages idw and i just need to replace one thing in it. I don't believe I need to redo the whole thing just for fews differents dimensions..
View 3 Replies View RelatedI have an autocad drawing with so many light fixtures with all different names.Now we have to change all those names, i already have an excel sheet containing two columns with first one containing "name in drawing" and second one containing respective "new name".
Is there any way to replace the names in cad file using that excel sheet.i just dont want to do all those thousand rename manually ...
I have an assembly with two similar items in it and have written code to replace the component based on a given selection. If I try to change item one, nothing happens. If I change items two, it changes both item two as well as item one. In the attached screenshot item one should have a full cover panel and item two should be open; however, they are both the same. I have stabilized the browser by changing the names to "Leg One:1" and Leg Two:1) and the components that are being replaced are standard assemblies to be replaces with other standard assemblies.
View 4 Replies View RelatedI need to change printer/plotter (maybe PC3 file) on my drawings. For example I have 'printerN.pc3' setted and I need to set 'PrinterM.pc3'. Also need to change print scale. But since I have many drawing I need somithing thatcan do iy automatically. So what I need:
I need to replace specific plotter to anither plotter:
1. For example if plotter setted to "HP" -> change to "Canon"
2. If paper size (2) is A3, set Plot scale (3) to 1:1.015, if Paper size (2) - A4, set Plot scale (3) to 1:1.02
Seems like I can do it with AutoLISP.
*** Using AutoCAD 2009 and 2011***
[URL]
You're code is definitley a great starting point, and will most likely save me a ton of time!
I am currently diving into a small project which should save a lot of time for designers in the end if it pans out.
Issue being resolved:
We use the Vault and have a ton of machines that get re-used from time to time through the Copy Design method. There's obviously some changes that are made from job to job, but the big issue is changing a machine from an Imperial to Metric one. This is the time (and mind) consuming process I'm looking to shorten.
What I have:
Currently I have a code (few tweaks needed but it works) that is run from an upper assembly. This code then cycles through each and every sub assembly and part that exists within it. As it cycles through, it checks for hole features which are tapped, and if it finds one of these instances, changes the thread from Imperial to Metric according to a Hard Coded set of values.
Current Dilema:
What's the point of changing the holes if the designer has to go through the assembly to change the bolts and fasteners anyways?
I've practiced a bit with your code and been able to replace items, the issue is everything must be hard coded in order to do so. My question is:
Is there a way to get the Family from the Part Occurence / Document / Anything related?
I've looked through the API, but have only found that everything related to the Content Center.... is only accessable through the Content Center, and nothing else.
For Example, yes I am able to tell if a part has come from the content center (ie. PartComponentDefinition.IsContentMember), but that's as far as it goes, just a simple Boolean.
There MUST be a way to find out some sort of Content Center information from the direct Part / other related documents. I've looked at the "Replace Content Center Part Sample" provided in the API, but this example hard codes the ContentTreeViewPath as well.
In the end, I don't quite understand the point of hard coding this path with no way to access it through the Part Document. This only creates the need for constant manual change and / or MANY rules to compensate each and every family.
Consider the following
(if (ssget "_X" '((0 . "ACAD_TABLE")(1 . "PIPE LIST")))(progn (vlax-for a (setq ss (vla-get-ActiveSelectionSet (vla-get-ActiveDocument (vlax-get-acad-object)))) (repeat (setq r (vla-get-rows a))(setq r (1- r) c -1)(repeat (vla-get-columns a)
(if (eq "*PL*" (vlax-invoke a 'GetText r (setq c (1+ c)))) (vlax-invoke a 'SetText r c "THREAD ONE END"))))) (vla-delete ss)));progn);if
Basically, it replaces this text inside a table:
1 1/2" NPTM - A53 - 3000LB - A-53 - 3000 LB
with:
thread both ends.
But I'm limited to the size of pipe, it's material and its pressure rating. I can't change how the text in the field is populated. It would be nice if, it did a search for NPTM, and when that string exists in the string, change it to "thread both ends".
Essentially right now, I have 46 lines (and growing) of different scenarios. I just want the NPTM to trigger the string change.
When I replace elements with iLogic the Inventor Browser is not automatically refreshed.
E.g. I have a file A.ipt and I replace it with B.ipt then in the Brwoser will be shown: A.ipt:1, even when B is already inserted.
Is there some refresh, like "Update Browser nodes when done" ?
These both has no influence on it:
iLogicVb.UpdateWhenDone = True
InventorVb.DocumentUpdate()
By the way. To Update the Browser manually, I have to rename the block nodes (From Filename to Filename). So it's only opening up the Renaming Function and then hitting "ok".
If there's no direct function to update the Browser, maybe there's a way to do the manually way by iLogic?
How can we delete an element within a connected profile.
View 2 Replies View RelatedI have geometry not updating after replacing a component in an assembly.
I have drawn part A and in the assembly environment I have projected cut edges on a XY Plane in a 2D Sketch.
After replacing component A in the assembly with part B (not identical but very close) i was expecting the projected geometry to update. But it doesn't. The "local update" button is greyed out in assembly mode. also the Rebuild command does not seem to update the projected geometry.
I can see the new 3d shape and the old projected geometry. How to get the projected geometry to update?
Inventor 2013 Build 176 SP1.1
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.
I have an excel document with a document header reserving rows 1-12. When i use "extract data" in autocad, i don't want the excel header to disappear. Can i set another cell than A1 to be the starting cell in Excel? Or how do i keep the header in the document?
View 5 Replies View RelatedLisp Routine that could replace a line at a specified maximum length with a block at the lines midpoint.
I would love to be able to replace all lines I select which are say less than 0.5m in length with a block at the lines.
Is there a way to find and/or replace "very" special characters like [carriage return], [backspace] or even [tab mark], considering that the first thing that comes to mind when saying special characters is the standard and extended ASCII only.
View 4 Replies View RelatedReplacing characters in a text file.
I solved the following Lisp routine chore. I have this csv file of coordinates (and many more) that comes from a total station:1,100,100,10,50
2,100,200,12,50
3,200,200,12,50
4,200,100,10,51
and should replace the code after the last comma like this:1,100,100,10,.50
2,100,200,12,.50
3,200,200,12,.50
4,200,100,10,..50
To be able to generate the topographic map. And I have this code but does not work properly:
(defun c:cod (/ filename fileopenr readline)
(if (setq filename (getfiled "!!! SELECT *.csv FILE COORDINATE:... ¡¡¡" "c:/" "csv" 0 ))
(progn (setq fileopenr (open filename "w"))
(while (setq readline (read-line fileopenr))
[[code].......
I write a code to replace strings in one string.for example
str="AutoDesk, AutoCAD, 2013, Electrical, 64Bit"
patt=", "
NewStr=" - "
==> result: "AutoDesk - AutoCAD - 2013 - Electrical - 64Bit"
;;replaces NewStr instead of Patt(s) in Str string(defun ReplaceStr (NewStr Patt Str)(While (> (vl-string-search ptt str) 0)(setq Str (vl-string-subst NewStr patt Str)) );;whilestr) ; usage;(ReplaceStr " - " ", " "AutoDesk, AutoCAD, 2013, Electrical, 64Bit")
==> result= ; error: bad argument type: (or stringp symbolp): nil
We are using Tube and Pipe with custom valves, flanges etc published to and taken from Content Center. Quite frequently we have to mock up a vendor supplied valve until we get the final model from them (usually near the end of the project) the mocked up valves can change in design over the course of the project, which means submitting and re-submitting different versions of valve with a slightly different name each time.
To try and keep things tidy (and prevent confusion with other users) I've tried to delete existing families and replace again with the same name, but Inventor T&P/CC won't allow this, and usually get the error message about family name already existing.
How can I truly delete the family and have no trace left on CC/Vault/working folders etc? Is there a workflow I should be aware of for such a task?
Inventor Routed Systems 2011
Win 7 x64
Product Design Suite Ultimate 2013
Win7 x64
Dell Precision T7400
Xeon X5460 @ 3.16GHz
8GB RAM
Quadro FX 1700 512MB
Is there a way to use iLogic to replicate the old-school method of replacing drawing references? (ie, where you'd temporarily rename the originally referenced file, open the drawing, and then point it to the new file after Inventor says it can't find the original)
Longer version:
I have an iLogic configurator that manipulates skeletal models, copies them out as new files, and swaps them into template drawings. The original skeletal model can be configured in several different ways (different features, surfaces, etc), so I have several template drawings set up for each model depending on the configuration.
The problem that I'm encountering involves the order in which the drawing is loaded and then has its references replaced. When first opened, the drawing loads the original skeletal model which doesn't have all the geometry of the "new" model for which the particular template drawing was intended. This makes most of my section and detail view constraints go belly-up. After subsequently replacing the model references with the "new" model with the correct geometry, the section and detail view constraints fail to resolve themselves, and my once-perfect detail drawing is ruined.
If I instead force the drawing to open with the new model from the git-go (via the workaround discussed above), everything loads perfectly. However, I haven't yet found a way to handle this automatically with iLogic.
FWIW, I am currently using the following code in a subroutine:
DESTINATIONDOC=ThisApplication.DOCUMENTS.Open(TemplateDrawing, False)
DESTINATIONDOC.SAVEAS(filePath&Left(PN,6)&".idw", False)
DimSTRNEWREFNAMEAsString
DimOREFFILEAsFILEDESCRIPTOR
[Code]....
I want to replace the blue with red [ blood, yeah ]. How might I be able to do his, I though I might be able to select just that little section, and then change the hue of it, to make it red,
View 4 Replies View RelatedI have a picture of a beach and sky, I want to replace the sky with one generated in Bryce, which I have already done.
I used the Magic Wand on the beach photo in order to select and replace the sky but whenever I move the new sky in, it comes as a whole lock and doesn't just show through the magic wand selection I've created. I'm sure there must be a way to "replace" this sky. Can you help please.
Secondly, I'm trying to add a plug in to the filters folder but the Edge Effect I downloaded was a "atn" file, all the effects seem to be "8BF" files, how can I download a plug in, there doesn't seem to be any other "atn" files.
I want to take the sky from one image and use it on another image. I can do this in Photoshop Elements just fine...but can't seem to get it to work in CS3. I open both images and select the image with the sky. I then use the Move tool to drag it over to the image I want to work on. The problem is, it moves over as a very small image and I can't figure out how to resize it. In PSE, it moves over and has the "marching ants" around the edge so I can grab a corner and resize. In CS3, there are no "marching ants" on the edge.
View 1 Replies View RelatedI have attached to this thread 2 photos, 1 - original picture 2 - the background that I would like to apply. if you can guide me how to replace the background in the most effective way so it looks real
View 3 Replies View RelatedI'd like to know how can I change the color of an element from a given image.
I've got the attached image, and I'd like to change the yellow shape by recoloring it to red ....