PDA

View Full Version : Revit Structure 2



r.vetrano
2005-09-21, 12:40 PM
Hi
Loaded Revit Structure 2 and none of my external tools work. Copied Exteranl tools commands from Revit Structure 1 INI file to Revit Structure 2 INI file. Placed them in the exact location.

Thanks
bob v

FK
2005-09-21, 10:47 PM
Care to post what you copied? (Or PM me if it's sensitive.)

r.vetrano
2005-09-21, 11:45 PM
Fedor

This is my Revit Structure 2 INI file. I copied and pasted the external commands.

[Revit.ini]
[Directories]
AccuRenderRoot=C:\Documents and Settings\All Users.WINNT\Application Data\Autodesk\Revit Structure 2\Rendering\AccuRenderRedist
DefaultTemplate=C:\Documents and Settings\All Users.WINNT\Application Data\Autodesk\Revit Structure 2\Imperial Templates\Structural Analysis-default.rte
FamilyTemplatePath=C:\Documents and Settings\All Users.WINNT\Application Data\Autodesk\Revit Structure 2\Imperial Templates
DataLibraryLocations=Imperial Library=C:\Documents and Settings\All Users.WINNT\Application Data\Autodesk\Revit Structure 2\Imperial Library,Training Files=C:\Documents and Settings\All Users.WINNT\Application Data\Autodesk\Revit Structure 2\Training
MaterialLibraryLocations=C:\Program Files\Autodesk Revit Structure 2\Data\Materials,C:\Documents and Settings\All Users.WINNT\Application Data\Autodesk\Revit Structure 2\Rendering\AccuRenderRedist
ProjectPath=
ImportLineweightsNameDWG=C:\Program Files\Autodesk Revit Structure 2\Data\importlineweights-dwg-default.txt
[DesignPane]
Basics=1
View=1
Modeling=0
Drafting=1
Rendering=0
Site=1
Massing=0
AreaAnalysis=0
Structural=1
Construction=0
Mechanical=0
Electrical=0
[Language]
Select=ENU
[Applications]
Structural=1

[ExternalCommands]
ECCount=15

ECClassName1=CSIxRevit.Class1
ECName1=Send Model to ETABS...
ECDescription1=Export to ETABS...
ECAssembly1=c:\program files\computers and structures\csixrevit\CSIxRevit.dll

ECClassName2=CSIxRevit.Class2
ECName2=Update Model from ETABS...
ECDescription2=Import from ETABS...
ECAssembly2=c:\program files\computers and structures\csixrevit\CSIxRevit.dll

ECClassName3=RevitComponent.RevitAPIExport
ECName3=Send Model to RISA...
ECDescription3=Export to RISA...

ECClassName4=RevitComponent.RevitAPIImport
ECName4=Update Model from RISA...
ECDescription4=Import from RISA...

ECName5="Load Family"
ECDescription5="Loads all Types defined for Family 'Metric Library\Structural\Framing\Steel\M_C-Channel.rfa'"
ECClassName5=RevitCommands.RvtCmd_LoadFamily
ECAssembly5="D:\Revit API\BasePlate\bin\RevitCommands.dll"

ECName6="BasePlate"
ECDescription6="Loads Generic Type Base Plate'"
ECClassName6=BasePlate.RvtCmd_LoadFamilySymbol
ECAssembly6="D:\Revit API\BasePlate\bin\BasePlate.dll"

ECName7="Selection"
ECDescription7="show how to use selection set"
ECClassName7=RevitCommands.RvtCmd_Selection
ECAssembly7="D:\Revit API\RevitCommands\bin\RevitCommands.dll"

ECName8="EditConnection"
ECDescription8="edits parameters of conn"
ECClassName8=EditConnection.EditConnections
ECAssembly8="D:\Revit API\EditConnection\bin\EditConnection.dll"

ECName9="Hello Revit!"
ECDescription9="Shows a message box with Hello Revit!"
ECClassName9=HelloRevit.Command
ECAssembly9="D:\Revit API\HelloRevit\bin\HelloRevit.dll"

ECName10="Export to Excel"
ECDescription10="Properties from elements exported to Excel, one workbook per each category"
ECClassName10=ArchSample1.Command
ECAssembly10="D:\Revit API\ArchSample1\bin\ArchSample1.dll"

ECName11="FireRating: Apply Parameter"
ECDescription11="FireRating sample step 1: Apply the shared parameter to doors"
ECClassName11=FireRating.ApplyParameter
ECAssembly11="D:\Revit API\FireRating\Bin\FireRating.dll"

ECName12="FireRating: Export to Excel"
ECDescription12="FireRating sample step 2: Export the doors and parameters to Excel"
ECClassName12=FireRating.ExportFireRating
ECAssembly12="D:\Revit API\FireRating\Bin\FireRating.dll"

ECName13="FireRating: Import from Excel"
ECDescription13="FireRating sample step 3: Import the revised parameters from Excel"
ECClassName13=FireRating.ImportFireRating
ECAssembly13="D:\Revit API\FireRating\Bin\FireRating.dll"

ECName14="Hello World EXE"
ECDescription14="Displays Hello World using a command defined in an exe file"
ECClassName14=HelloWorld.Command
ECAssembly14="D:\Revit API\OutOfProcessCommand\bin\HelloWorld.exe"

ECName15="Show Element Data"
ECDescription15="show parameters in selected entities"
ECClassName15=RevitCommands.RvtCmd_ShowElementData
ECAssembly15="D:\Revit API\RevitCommands\bin\RevitCommands.dll"

[Windows]
Maximized=0
[ToolBar]
TextLabels=1
Standard=1
View=1
Edit=1
Tools=1
Worksets=0
DesignOptions=0
Help=1
[Recent File List]
File1=D:\Revit Structures 1\editConn.rvt

This worked fine in Revit Structure 1.1.

Thanks
bob v

GuyR
2005-09-22, 01:07 AM
Would it be an ini parse error because of the missing assembly entries for ECClassName3 and ECClassName4?

Guy

r.vetrano
2005-09-23, 11:57 AM
Hi
There are only 2 commanads that I care about the rest are samples from Revit. Made this change and still no good.

[Applications]
Structural=1

[ExternalCommands]
ECCount=2

ECName6="BasePlate"
ECDescription6="Loads Generic Type Base Plate'"
ECClassName6=BasePlate.RvtCmd_LoadFamilySymbol
ECAssembly6="D:\Revit API\BasePlate\bin\BasePlate.dll"

ECName8="EditConnection"
ECDescription8="Lists all parameters for selected elements and geometry for any walls"
ECClassName8=EditConnection.EditConnections
ECAssembly8="D:\Revit API\EditConnection\bin\EditConnection.dll"

[Windows]
Maximized=0


Everything worked fine until I upgraded to Retit Structure 2.

thanks
bob v

GuyR
2005-09-23, 08:08 PM
Not sure if this is strictly necessary but have you recompiled your commands, linking against the structure 2 RevitAPI.dll?

Guy

r.vetrano
2005-09-23, 08:11 PM
Hi
After I posted I realized I didn't renumber changed them to 1 & 2 and still nothing happens.

bob v

r.vetrano
2005-09-23, 09:46 PM
HI

FYI
ECClassName2=EditConnection.EditConnections
ECName2=EditConnection...
ECDescription2=Lists all parameters for selected elements and geometry for any walls...
ECAssembly2="D:\Revit API\EditConnection\bin\EditConnection.dll"

Notice the difference. No quotes and it works.

ECName5="Load Family"
ECDescription5="load a family"
ECClassName5=RevitCommands.RvtCmd_LoadFamily
ECAssembly5="D:\Revit API\RevitCommands\bin\RevitCommands.dll"

thanks
bob v

Danny Polkinhorn
2005-09-24, 12:04 AM
Robert,

I don't see the exact difference you're referring to, there are too many differences.

This is what I have in Revit Building 8.1:
ECName, with quotes
ECDescription, with quotes
ECClassName, no quotes
ECAssembly, with quotes

like this:
ECName1="Hello Revit!"
ECDescription1="Shows a message box with Hello Revit!"
ECClassName1=HelloRevit.Command
ECAssembly1="C:\Revit API\Samples\HelloRevit\bin\HelloRevit.dll"

You're saying it's different in RS2?

Thanks,

r.vetrano
2005-09-24, 12:27 AM
Danny

ECClassName2=EditConnection.EditConnections
ECName2="EditConnection"
ECDescription2="Lists all parameters for selected elements and geometry for any walls"
ECAssembly2="D:\Revit API\EditConnection\bin\EditConnection.dll"

This did not work until I took the quotes out of ECName2 and ECDescription2. I installed the upgrade for Etabs and noticed that there were no quotes. So I tried that and it worked.
I am only an amature programer so I don't know why.

Thanks
bob v

Danny Polkinhorn
2005-09-24, 12:47 AM
Sounds like a bug to me. The functionality shouldn't have changed on something so trivial.

giles.gilbert
2005-09-26, 09:54 PM
Sounds like a bug to me. The functionality shouldn't have changed on something so trivial.

I can confirm that the reading of the .ini file has not changed in this release. Any components that have been built against Structure 1.1 need to be rebuilt again Structure 2.0 for them to work correctly but that will not effect their display in the menu.

Please just add one command to your .ini file and set the ECCount=1 and let us know what happens.

Thanks,
Giles Gilbert
Autodesk Revit Development