PDA

View Full Version : Find and Replace



Danny Polkinhorn
2005-12-09, 08:08 PM
All,

I put together a simple Find and Replace utility that searches text notes in the Revit model. I am publishing it here so you can see the source and modify/update it as you see fit. If you make changes to the source, please post a new compiled version and your source here.

Important:
I'm not responsible for what this utility does to the text in your project. While I have made every effort to ensure that this works properly, you should check the text yourself. You can always undo.

To use:

Download the FindReplace-Compiled.zip file and unzip it in the location of your Revit.exe file. Place the contents of FindReplace-Revit.ini into your Revit.ini file. After launching Revit, you'll find it under Tools > External Tools > Find and Replace. You can add a keyboard shortcut for it if you want.

It works fastest if you select the text you want to search prior to running the command. Otherwise, it has to search the ENTIRE model looking for text notes. This could take a while if you have a large model.

It only searches text notes, not parameters in tags.

If you have spaces at the beginning or end of a text note, they will be lost. I think this is an issue with Revit.

Source notes:

The utility uses the Revit API for RB 8.1/RS 2. For later versions of Revit, you will need to re-reference the RevitAPI.dll and recompile.

The VB.NET source and solution files are in the FindReplace-SourceCode.zip file. The source is commented so you can follow it. If you have any questions, please post here.

Enjoy,

beegee
2005-12-09, 11:41 PM
Keep up the good work Danny.

Danny Polkinhorn
2006-05-10, 08:18 PM
Here's an updated version for Revit 9. No changes, just re-compiled for 9.

Eric Stewart
2006-05-10, 08:22 PM
Now THAT'S service!!

Thanks again.

christopher.zoog51272
2006-05-11, 02:34 AM
Sweet! Somehow I missed this when it was first posted, thanks Danny!

Eric Stewart
2006-05-11, 11:09 AM
For some reaseon, I can't get it to work in 9.0. :(


Sweet! Somehow I missed this when it was first posted, thanks Danny!

Danny Polkinhorn
2006-05-12, 12:33 AM
Sorry, I didn't realize that it was still referencing the old RevitAPI.dll. Fixed that bug and made the required changes to the Execute command. New one is posted here.

Eric Stewart
2006-05-12, 11:18 AM
Once again, thank you.

Scott Hopkins
2006-08-26, 07:17 AM
Danny,

Thanks for posting this. It looks cool. Unfortunately I can't get ti to work. I keep getting the same error message:

"Object reference not set to an instance of an object."

Am I doing something wrong?

Danny Polkinhorn
2006-08-27, 10:21 PM
Scott,

I'll need a little more information I think.

Are you using the correct version? There's 2 posted here, one for 8.1 and one for 9.
Are you selecting text prior to running the command or running it without selecting?
Does it work in a blank project with just a few pieces of text?

Scott Hopkins
2006-08-28, 03:12 AM
Scott,

I'll need a little more information I think.

Are you using the correct version? There's 2 posted here, one for 8.1 and one for 9.
Are you selecting text prior to running the command or running it without selecting?
Does it work in a blank project with just a few pieces of text?
Danny,

I am running the most current DLL File (May 11th ).
I am selecting the text prior to the command. The dialog box comes up fine.
I type in the text I want to replace and the text I want to replace it with and then hit "replace all"
I get the same error message noted above every time.

Could it be that my path to the Revit EXE file is not standard. (I have it set to "Revit 9" instead of "Autodesk Revit Building 9"? I changed the Revit.ini file to show the correct path.

Danny Polkinhorn
2006-08-28, 06:46 AM
Hmm. Sounds like you're doing everything correctly. The path to the Revit exe file doesn't matter as long as the Revit.ini is correct, and it is in your case. Otherwise, you wouldn't even see the dialog.

So, one more quick question before I revisit the code: You're not selecting tags, correct? 'Cause it doesn't work on tags (parameter values).

Eric Stewart
2006-08-28, 10:54 AM
My experience is the same as Scott's. I am NOT selecteing a tag.

One question that your tag comment brings to mind: Does it work on text in groups? Revit's spellcheck won't even check text in groups.

Thanks for all your efforts!

Scott Hopkins
2006-08-28, 03:08 PM
Hmm. Sounds like you're doing everything correctly. The path to the Revit exe file doesn't matter as long as the Revit.ini is correct, and it is in your case. Otherwise, you wouldn't even see the dialog.

So, one more quick question before I revisit the code: You're not selecting tags, correct? 'Cause it doesn't work on tags (parameter values).
No tags, just plain old text.

Danny Polkinhorn
2006-08-28, 07:04 PM
Ok, thanks for the head's up. I'll take a look at the code today and see if I can replicate the issue.

It won't work on text in groups as they appear as a group object and not a text object. I could probably search through the groups as an option. I'll see what I can do.

Thanks again,

Danny Polkinhorn
2006-08-29, 02:32 AM
I took a look at the code and I was able to replicate the issue. I was unable to correct it and I've submitted a support request with Autodesk to see if they can fix it. I'll let you know what happens.

By the way, this worked in earlier builds of 9 and in 8.1. It seems to be broken in the latest build.

Eric Stewart
2006-08-29, 02:37 AM
Once again, thanks for your efforts.

Danny Polkinhorn
2006-09-04, 08:08 PM
Update: There appears to be a small bug in Revit that's causing this. Hopefully, they'll have it corrected in a later build. Once they do, it should work without any updates to the Find/Replace tool.

Scott Hopkins
2006-09-04, 09:24 PM
Thanks Danny!

dhurtubise
2006-09-07, 03:08 PM
Hey Danny, same error as Scott here.
I'm running it wihtout selecting text AND with text selected.
Won't work on the default.rte with a single line of text.
I've included a screen shot of the .dll i'm using (9)

Danny Polkinhorn
2006-09-07, 03:58 PM
Daniel,

Yeah, sorry about that. Unfortunately, we'll have to wait for Autodesk to fix it (fingers crossed).

jake.109030
2007-04-20, 06:12 PM
Danny,

Did you ever get this up & running with Autodesk's help? (I realize this is a relatively old thread but I cannot find a newer one with any resolution.)

Jake Freauff
THA

Danny Polkinhorn
2007-04-20, 10:26 PM
Although I can't confirm it, I think it's been fixed in RA2008. I'll re-compile it and find out. Stay tuned...

Danny Polkinhorn
2007-05-10, 01:15 AM
Ok, seems to be working now, so I've attached a new version here. This was compiled for Revit 2008 (all flavors). Copy the FindReplace.dll somewhere, edit your Revit.ini and copy/paste the section I included in the text file, then change the location in your Revit.ini to reflect the correct location of the FindReplace.dll.

Elmo
2007-07-09, 06:47 AM
Thanks this looks awesome!

sfaust
2007-07-23, 10:48 PM
Danny,

I tried installing this, but for some reason it does not show up in the external tool. What could I be doing wrong? I copied the text in to the revit.ini file and put the dll file in my Revit program folder, which is where the ini text is pointing. I did notice that there was already some external command info from the earth connector, so I don't know if that's doing anything to it... I attached my ini file so you can see...

Thanks for any help you can give.

Steve

Danny Polkinhorn
2007-07-23, 11:03 PM
Steve,

Yes, you had conflicting External Command sections. This one should work for you. Compare yours with mine if you're interested in the proper syntax.

Hope that helps,
-Danny

sfaust
2007-07-23, 11:57 PM
Sweet! thank you so much. I figured it was something simple, I just couldn't figure it out. Thanks for your help :)

decio.ferreira
2007-08-07, 02:23 PM
And does it work in Revit Architecture 2008?

sfaust
2007-08-07, 03:36 PM
yep, look above. He recompiled it for 2008 and that's what's posted from 5/9...

mccurdyks
2007-08-16, 01:31 PM
Thanks for this.

Mike Hardy-Brown
2007-08-30, 02:13 PM
Danny,
Thanks for this!!!
A'desk should make you a gaziiiilionaire for this and integrate it in the next release:beer:

I couldn't get it to work in RB9.0, but works like a dream now in RA2008 !!!!!!

Danny Polkinhorn
2007-08-30, 06:54 PM
A'desk should make you a gaziiiilionaire for this and integrate it in the next release:beer:

Yes, to both! Although it was only a few lines of code, but thanks.

Autodesk, please feel free to implement this in the product. Really...

CadWiz
2007-09-05, 04:55 PM
Danny,

Great tool, but I can't get it to work. Is it because I am using Revit Architecture 2008?
Thanks.

CadWiz
2007-09-05, 05:18 PM
Danny,

Thanks again, I was able to get it to work now. Works great.

patricks
2008-01-16, 11:00 PM
Anybody have trouble with this causing Revit to take a REALLY long time to boot up?

I've been starting up Revit by using a shortcut to a tiny file with just some text in a drafting view and nothing else. It has always made Revit boot up in 10 seconds or less. Now I just added this Find & Replace DLL and made the changes to the INI file, and now it's taking like 30 seconds to 2 minutes to boot up Revit when I click on the little "splash screen" file.

I also noticed that it doesn't seem to work if you're trying to replace text on anything other than the first line if you have hard returns in your text notes.

For example, I have in lots of places on my drawings the following note:

PEMB STRUCTURE
PAINTED

I have always done a hard return to get down to the second or subsequent lines in my text notes. Other people like to type all in one line and then pull the text box in, but I just never really liked doing it that way.

Anyway, I want to change the note to say:

PEMB STRUCTURE
FACTORY PRIMED

I don't want to find and replace just "painted" because I have that in other notes that I need to keep. So is there any way to find and replace things on subsequent lines of text notes that have a hard return in the note?

Danny Polkinhorn
2008-01-16, 11:21 PM
Patrick,

Merely adding the file to the INI shouldn't affect Revit at all since the app isn't loaded until you click on the menu item. Did you try removing it from the INI to see if it's any faster again?

Does the command not work with subsequent lines of text or is it a feature request that you be able to specify which ones to replace? If you select the individual text note, then run the command, does it replace the text on the second line?

michael.chan
2008-02-22, 04:20 AM
Just wonder if you have one for Revit 2008? and if it can be shared.

Thanks

Danny Polkinhorn
2008-02-22, 07:38 PM
Yes, it's on the third page of this thread.

winnwgomez
2008-04-09, 09:06 AM
Hi Danny

i tried to use the application, but even if I add it to the revit.ini file, it doesnt show up in tools. I tired replacing it with text from your ini file, but that was futile too. what could be wrong?

thanks and best Regards

winn

Danny Polkinhorn
2008-04-09, 09:10 AM
Hi winn,

Can you post your revit.ini file here and we'll take a look.

By the way, I need to re-write this tool for Revit 2009. There are some API enhancements which will make this a lot more user-friendly. Stay tuned...

HTH,

winnwgomez
2008-04-09, 09:25 AM
Hi Danny

Thanks a lot. I'm attaching my revit.ini file.

Best Regards

Winn

Danny Polkinhorn
2008-04-09, 09:28 AM
You have an [ExternalCommands] section earlier up in the ini file. Delete that section and the second one will be read with the FindReplace components in it.

HTH,

winnwgomez
2008-04-09, 10:50 AM
Ouch!

does that mean that i cant use those external stuff? or does it require me to install those plugins again?

what is the difference between External Commands and External Application? i want to learn API, but am stuck!

Best Regards

Winn

david.bartliff
2008-04-14, 01:59 PM
No - Danny means a single [ExternalCommands] line higher up the file that has no commands under it. Just delete that line. This will not affect your ExternalApplications.

JoelLondenberg
2008-05-20, 04:55 PM
Just wonder if you have one for Revit 2008? and if it can be shared.

Thanks

Now how about 2009?

And thanks for sharing.

bchase
2008-05-29, 05:32 PM
Hi winn,

Can you post your revit.ini file here and we'll take a look.

By the way, I need to re-write this tool for Revit 2009. There are some API enhancements which will make this a lot more user-friendly. Stay tuned...

HTH,

So is the file FindReplace-R9.zip the one I want to use for Revit 2009, or is there another one that is being worked on that I should wait for? I tried several times to get this to work. The command line shows up but when I click on the Find and Replace, it doesn't bring up the tool.

Danny Polkinhorn
2008-06-02, 02:26 AM
Time commitments elsewhere have prevented me from working on this. If someone wants to take a crack at updating the source code from 2008, it's available earlier in this thread.

Updates that it needs:

update the command parameters for 2009
make it faster by only searching for Text objects (a new object in 2009)
add an option to search the current view (by searching view.elements)
replace the parameter editing process to update via Text object's Text(?) property.Updates that it wants:

Highlights the edited text after it's replaced.
An option to search parameters (which would update tags as well)I think that's it. Since this is a fairly simple project, it would be a good exercise for the beginners out there.

Sorry for the delay. If I don't see any activity on the thread, I'll try to make some time.

Thanks for your patience,

GuyR
2008-06-03, 12:34 AM
It's a shame you can't spend time on Revit Danny ;-( I'll have a look at this and update it accordingly. I take it the source code in the first post is the latest code base?

Guy

Danny Polkinhorn
2008-06-03, 01:01 AM
Here's the VS2005 project file. We'd all appreciate it if you could post your source as well once it's been updated.

I'll say again too, that if anyone is in the process of learning the API, this is a good sample to pick apart.

Thanks Guy,

GuyR
2008-06-03, 01:54 AM
We'd all appreciate it if you could post your source as well once it's been updated.

Of course.

jltraino
2008-06-05, 03:24 PM
I tried to use this with Revit 08 and the external tool option appears, but does nothing. I didn't understand the bit about "recompiling" for later versions. Do I need to do that for Revit 08? Any other items that might be causing this not to work?

Description:
I use my tools pull down, go to external tools - find and replace and absolutely nothing happens.

Danny Polkinhorn
2008-06-06, 07:52 AM
Check here (http://forums.augi.com/showthread.php?p=698856#post698856)for the Revit 2008 version. Not sure what you downloaded. If you downloaded the correct one, then confirm that the syntax is correct in your Revit.ini and that you don't have duplicate [ExternalCommands] sections.

GuyR
2008-06-07, 11:47 PM
In terms of the new functionality mentioned by Danny, what additional categories would people like to see F&R search? Walls, familyInstances,roofs,floors,rooms etc or maybe select from a list?

Guy

Danny Polkinhorn
2008-06-08, 06:40 PM
Couldn't the items you mention be handled with Select Similar? Even if it's easy to add that sort of functionality, I think the real value in this simple app is the text search since there are tools to handle the other items.

GuyR
2008-06-08, 08:03 PM
Danny, I was just thinking about how to implement this requested feature:

An option to search parameters (which would update tags as well)

Maybe I didn't word the question well enough. Or rather than categories what about some common parameters like description, name, etc?

Guy

Danny Polkinhorn
2008-06-09, 09:02 AM
Ah, right. Misunderstood. :Oops: Sounds like you're on the right track.

GuyR
2008-07-11, 11:42 PM
Ok, finally got around to looking at this. :Oops: rewrite in C# (just can't groke VB) and beginning of added functionality and is RAC2009 only.

This is a work in progress but is functional. I've only started to implement new features so the UI will change. It currently just works with Text Notes but this is going to be expanded in a future update.

Cheers,

Guy

gpekmezi
2008-07-29, 04:05 AM
Any chance you can post the C# source?

GuyR
2008-07-31, 02:02 AM
Will post the code once I've finished implementing new features and documented code.

Cheers,

Guy

AJGKennedy
2008-08-20, 07:14 PM
I do not know what I may be doing wrong... but I have tried both version... We are currently using ver 2008... and I am testing 2009 and trying to convince the uppers to go ahead and install the upgrade... So I have tried both versions of your utility, but in both cases I have the same result... I have the menu in Revit... I select it... but nothing happens... The first time I noticed I had forgot to correct the path to the "dll" file... but I have done this now in both computers and programs...

Any ideas?

I really would love to have this ability and am glad that someone has taken the time to figure this out... I couldn't believe it was not part of the base package...

Thanks...

Just noticed... more post than I originally read... I see it was a work in progress... maybe I got one not finished? maybe not?...

Danny Polkinhorn
2008-08-20, 07:49 PM
Make sure you're using the correct version for the Revit version you're testing. Also, please post your Revit.ini so we can take a look.

GuyR
2008-08-20, 07:55 PM
Just noticed... more post than I originally read... I see it was a work in progress... maybe I got one not finished? maybe not?...

The 2009 is a work in progress BUT it is working....

Guy

AJGKennedy
2008-08-21, 01:36 PM
O.K. Let me know if I goofed...

We are still using the 2008 Revit... I am trying to push to allow us to install the upgrade to 2009... it is sitting here... I have been testing it... I like it much more than 2008... but there is another voice in our company with equal credentials as mine and more years with this company telling the uppers it isn't a good idea! so it is an up hill battle... But in the end I think 2009 will win out...

That is why I am still trying to get them both to work... I could use the utility right now... and I don't really want to wait on the victory of this raging battle...

Thanks for looking at this...

GuyR
2008-08-21, 08:35 PM
Looks like you're trying to use the 2008 version with 2009. Download the 2009 version here http://forums.augi.com/showpost.php?p=865131&postcount=58 . NOTE the different ini settings.

Cheers,

Guy

AJGKennedy
2008-08-25, 12:55 PM
You may realize that both a Revit ini file for 2008 & 2009 has been uploaded... I was trying to get both to work... because currently we are still using 2008... I am hopeful that will change, but as it stands 2008 is still the norm here... I am running a test on 2009 and I am pushing to have the office do the upgrade, but that hasn't happened yet...

I couldn't get this to work on either... I down loaded both the 2008 & 2009 version... now I just looked at you 2009 version and the ini file does look different then the first 2009 version I down loaded... so I will try that on the computer with 2009... but this will not fix the 2008 version... I suppose since 2008 is a dead version in a world of non backward compatibility it really is a version most would not care to much about...

Thanks for the post.. I will let you know how it goes later... When I get a chance to test the testing computer...

AJGKennedy
2008-08-25, 04:21 PM
Yes! This one works for 2009... Still do not have anything for 2008... I supose I could just add it to my growing list of reasons why I want them to allow us to move forward.... Although I may get some comments about using outside utilities... But this one is way to usful not to...

Thanks...

NKramer
2008-08-25, 06:29 PM
Try this for 2008

ECName1 = Get Level
ECClassName1 = sfaust.Revit.GetLevel.Command
ECAssembly1 = "C:\Program Files\Revit Architecture 2008\Program\FindReplace.dll"

Note that ECDescription is not required.

HTH

Nick

AJGKennedy
2008-08-25, 07:54 PM
I figured it out on my own.... Kind of...

The source I used was from the beginning of the thread...

So... I started reading backwards through this thread until I found the last version for 2008... I have to thank Guy for directing me to the latest post for 2009... It was the same problem there... I was using the first version posted...

Now I know better... If I ever look at something like this read backwards... grab the latest then try it... ha, ha, ha... I am learning...

I must say this is an wonderful tool... You would think it would be part of the package...

kanderson.189670
2008-09-23, 07:54 PM
Is there a version of this for Revit 2009?

Thanks

kanderson.189670
2008-09-23, 07:55 PM
Is there a Find and Replace tool for Revit 2009?

Thanks

sfaust
2008-09-23, 08:26 PM
look a couple pages back. posted by GuyR

johnlangton
2008-10-02, 11:33 AM
Danny
I am using Revit 2008 build 20070324_1700, had to change the ECCOUNT to 4 and the four lines of code to EC...4, set the reference to the correct directory, started Revit, and the external command was showing, but when selected nothing happens. The bit about source code worried me so I did not change anything. Any suggestions please.

Thanks

John

Danny Polkinhorn
2008-10-03, 05:07 PM
John,

Can you confirm that you grabbed the correct version of the utility for 2008? There are several versions posted throughout the thread. Also, can you post your revit.ini so we can take a look?

Thanks,

luke.s.johnson
2009-04-20, 11:56 PM
Has anyone updated this for Revit 2010?

mbalsom
2009-04-21, 08:16 AM
Has anyone updated this for Revit 2010?

Hi Luke
Just installed 2009 version of "Find and Replace" exactly the same way you did in RA2009, and it worked without any problem.
After installing will get a new menu tab at the top named add-ins. Click on menu and it will take you to external commands tab.
This is still one of my favourite add-in's, just hope "get level" and others work just as well.

Mark

Danny Polkinhorn
2009-04-22, 02:35 AM
There will not be a Find and Replace utility for 2011 and later versions for two reasons: Autodesk made their own tool that is a subscription benefit in 2010 and is part of the base software in 2011, and two, the filters used in my version have significantly changed in 2011 and would require significant refactoring.

I think it's time for a new thread. Here's the latest:
Find and Replace for 2010 (http://forums.augi.com/showthread.php?t=99877)

Earlier versions:
Find and Replace for Revit Building 8.1 (http://forums.augi.com/showthread.php?p=238303#post238303)
Revit Building 9 had a bug that broke the command. It was fixed in 2008.
Find and Replace for 2008 (http://forums.augi.com/showthread.php?p=698856#post698856)
Find and Replace for 2009 (http://forums.augi.com/showthread.php?p=865131#post865131)

giaquocminh
2009-05-03, 08:17 AM
I think it's time for a new thread. Here's the latest:
Find and Replace for 2010 (http://forums.augi.com/showthread.php?t=99877)

Earlier versions:
Find and Replace for Revit Building 8.1 (http://forums.augi.com/showthread.php?p=238303#post238303)
Revit Building 9 had a bug that broke the command. It was fixed in 2008.
Find and Replace for 2008 (http://forums.augi.com/showthread.php?p=698856#post698856)
Find and Replace for 2009 (http://forums.augi.com/showthread.php?p=865131#post865131)'
after unzip file "find and replace" i see file "revit".how to use it in revit 2009. thanks

binabbas2000
2009-06-09, 03:01 PM
Thanks a lot

quinnlj
2009-09-21, 09:37 PM
I can't seem to get the Revit 09 version to work. I have attached my file for you to look at.

Danny Polkinhorn
2009-09-22, 03:35 AM
@quinnlj: Change your "ECCount=4" value to "ECCount=5"

frankb
2009-10-01, 03:48 PM
I downloaded the find and replace for 2009 and I can't get it to work. It shows up under tools menu, but when I click it nothing happens.
Anybody experiencing the same problem?
Thank you

frankb
2009-10-01, 04:51 PM
my eccount is = 6 right now. I thought that this number represented the number of external commands. no?

frankb
2009-10-01, 05:00 PM
[Revit.ini]
[Directories]
DefaultTemplate=N:\FKA Revit Settings\FKA Master Template\FKA - MASTER TEMPLATE.rte
FamilyTemplatePath=\\Fkaserver\Master Library\FKA Revit Settings\Application Data\RAC 2008\Imperial Templates
DataLibraryLocations=Imperial Library=\\Fkaserver\Master Library\FKA Revit Settings\Application Data\RAC 2008\Imperial Library,Imperial Detail Library=\\Fkaserver\Master Library\FKA Revit Settings\Application Data\RAC 2008\Imperial Library\Detail Components,Training Files=\\Fkaserver\Master Library\FKA Revit Settings\Application Data\RAC 2008\Training
ProjectPath=
ImportLineweightsNameDWG=C:\Program Files\Revit Architecture 2009\Data\importlineweights-dwg-default.txt
MaterialLibraryFiles=..\Data\Rendering\assetlibrary_base.fbx
[DesignPane]
Basics=1
View=1
Modeling=1
Drafting=1
Rendering=1
Site=1
Massing=0
AreaAnalysis=0
Structural=0
Construction=0
Mechanical=0
Electrical=0
RoomAndArea=1
[Language]
Select=ENU
[Applications]
Mechanical=0
Electrical=0
Architectural=1
Structural=0
[Messages]
SuppressNewFeaturesWorkshop=1
SuppressShowButtonMessage=0
[InstallationSettings]
Country=USA
Language=ENU
Usage=Architectural
[ContentSearch]
Site=http://contentsearch.autodesk.com
[ContentInstalled]
ENUTutImp.cab=C:\Program Files\Revit Architecture 2009\Program\
ENUTutMet.cab=C:\Program Files\Revit Architecture 2009\Program\
ENUHelp.cab=C:\Program Files\Revit Architecture 2009\Program\
TrainingFilesCommon.cab=\\Fkaserver\IT Dept\Drivers & Software\AUTODESK\Revit\RACS09x64 Net Inst\Content\Training\
TrainingFilesImperial.cab=\\Fkaserver\IT Dept\Drivers & Software\AUTODESK\Revit\RACS09x64 Net Inst\Content\Training\
NAImperial.cab=\\Fkaserver\IT Dept\Drivers & Software\AUTODESK\Revit\RACS09x64 Net Inst\Content\Imperial Library\
ProteinMaterialLibrary.cab=C:\Program Files\Revit Architecture 2009\Data\Rendering
[Windows]
Maximized=1
[ToolBar]
TextLabels=1
Standard=1
View=1
Edit=1
Tools=1
Worksets=1
DesignOptions=0
Help=1
APITrackChanges=0
VSTAMacros=0
ContentSearch=1
[ExternalCommands]
ECCount=7
ECName1=Acquire from Google Earth
ECClassName1=GEAcquirement.Acquirement
ECAssembly1=C:\Program Files (x86)\Autodesk\Globe Link for Revit 2009\x64\GlobeLinkForRevit2009.dll
ECName2=Publish to Google Earth
ECClassName2=GEPublish.Publish
ECAssembly2=C:\Program Files (x86)\Autodesk\Globe Link for Revit 2009\x64\GlobeLinkForRevit2009.dll
ECName3=Import Google Earth File (KML/KMZ)
ECClassName3=GEImport.Import
ECAssembly3=C:\Program Files (x86)\Autodesk\Globe Link for Revit 2009\x64\GlobeLinkForRevit2009.dll
ECName4=Export Google Earth File (KML/KMZ)
ECClassName4=GEExport.Export
ECAssembly4=C:\Program Files (x86)\Autodesk\Globe Link for Revit 2009\x64\GlobeLinkForRevit2009.dll
ECClassName5=REX.AREXRevitMngr.Manager
ECAssembly5=C:\Program Files (x86)\Autodesk\REX\Revit 2009\AREXRevitMngr.dll
ECName5=Revit Extensions for Revit Architecture 2009
ECDescription5=Manager for Revit Extensions for Revit Architecture 2009
ECName6=Worksharing Monitor
ECClassName6=WorkSharingCommand.WorkSharingCommand
ECAssembly6=C:\Program Files (x86)\Autodesk\Worksharing Monitor for Revit 2009\WorkSharingCommand.dll
ECClassName7=FindReplace.Startup
ECName7="Find and Replace"
ECDescription1="Find and Replace in text notes"
ECAssembly7=C:\Program Files\Revit Architecture 2009\Program\FindReplace.dll
[ExternalApplications]
EACount=2
EAClassName1=REX.AREXRevitStart.AREXRevitStart
EAAssembly1=C:\Program Files (x86)\Autodesk\REX\Revit 2009\AREXRevitStart.dll
EAName1=AREXRevitStart
EADescription1=Add menu and toolbar dedicated to Revit Extensions
EAName2=Worksharing Monitor Lib for Revit 2009
EAClassName2=WorkSharingLib.ExternalApplication
EAAssembly2=C:\Program Files (x86)\Autodesk\Worksharing Monitor for Revit 2009\WorkSharingLib.dll
[API]
UnregisterOnExit=0
[Partitions]
Username=
[Colors]
CustomColor1=4040ff
CustomColor2=0000ff
CustomColor3=00ffff
CustomColor4=00ff00
CustomColor5=ffff00
CustomColor6=ff0000
CustomColor7=ff00ff
CustomColor8=ffffff
CustomColor9=ffffff
CustomColor10=ffffff
CustomColor11=ffffff
CustomColor12=ffffff
CustomColor13=ffffff
CustomColor14=ffffff
CustomColor15=ffffff
CustomColor16=ffffff
[AutoCam]
HasShownSteeringWheelFirstContact=1
[ChainOptions]
Lines=1

peterjegan
2009-10-01, 06:16 PM
Try changing the line

ECAssembly7=C:\Program Files\Revit Architecture 2009\Program\FindReplace.dll

to

ECAssembly7=C:\Program Files (x86)\Revit Architecture 2009\Program\FindReplace.dll
(probably critical)

and

ECDescription1="Find and Replace in text notes"

to

ECDescription7="Find and Replace in text notes"
(probably not critical)

frankb
2009-10-02, 12:46 PM
Still nothing

peterjegan
2009-10-02, 03:03 PM
Where is your FindReplace.dll located? The ECAssembly7= needs to point to that.

frankb
2009-10-02, 03:17 PM
I copied to both places and try it.
I am able to see the menu under tools , but after I clicked it, nothing happens

C:\Program Files\Revit Architecture 2009\Program\FindReplace.dll

C:\Program Files (x86)\Revit Architecture 2009\Program\FindReplace.dll

Thanks

rhester.195301
2010-01-07, 08:14 PM
This may sound dumb, but how do I install or set up this feature?

Danny Polkinhorn
2010-01-07, 10:23 PM
It's only dumb if you don't ask it. Instructions are in the first post (http://forums.augi.com/showthread.php?t=30343&p=238303).

grace_bert
2010-06-21, 08:22 AM
Ok, finally got around to looking at this. :Oops: rewrite in C# (just can't groke VB) and beginning of added functionality and is RAC2009 only.

This is a work in progress but is functional. I've only started to implement new features so the UI will change. It currently just works with Text Notes but this is going to be expanded in a future update.

Cheers,

Guy

where should i put this new command file to make this enable?

ashokkannan
2010-07-20, 01:48 PM
I have vb.net with autocad succesfully but am unable to start with revit.

In revit structure 2009, when i click on tools->external tools->find and replace, nothing happens even though the status bar shows the description as mentioned in the ini file so i presume it is reading it properly.I tried it in revit 2010 and i get the following error
"System.TypeLoadExtension while creating instance of 'Find and Replace' in "path"(where dll file is stored.
"Could not load type 'Find and Replace' from assembly 'FindReplace, Version=xxxx, Culture=neutral, PublicKeyToken=null".

I also tried the sample "Hello World" and i get the same error as above.

Thanks & Appreciate help in solving.

Ashok

travis.crisp
2010-07-29, 01:45 PM
Anyone Fixing this to work with Revit 2010 or 2011 preferably the latter.

Thanks

Danny Polkinhorn
2010-07-29, 07:10 PM
http://forums.augi.com/showpost.php?p=965856&postcount=77