Problem creating parameters in RiR

Dear guys,
I’m trying to add parameters to my Revit project through Rhino Inside Revit without any success.
I am aware of Revit API just creates shared parameters at the moment:

Image from my GH definition is attached.

Last release version either from Revit 2023 as well RiR are installed.

Thank you in advance


Hi Jelis, Hard to see what exactly is going here.

You should be able to use the Shared Definition to Add Parameter

Hi Japhy. Thank you for your prompt response.
I ‘m trying your approach. Add parameter component becomes red when shared parameter is not in use.
If I manually add the shared parameter in the correct category from Revit, Add parameter component will say ’ param is already in use’.
Image attach of the process:

Is there a way to create params from RiR as where possible with Define parameter before? Any clue of how to create those shared parameters from scratch through RiR?

By the way, could you please tell me the component name that is feeding the input Scope of Add Parameter component (value picker is not working in my case)?

Regards

Which version of Rhino.Inside.Revit are you working in? Value Picker by double clicking on the GH canvas to search should get you there.

image

If the parameter is already created you can use the Query Parameters

image

Can you explain a bit more? Define>Add Parameter adds to the current document. If you want that part of the shared parameter file you will need to export.

Note that you can set the categories like this…

Dear Japhy.
I’ve tried to replicate your definition but facing the same problem as before. It looks like my RiR Add Param component is not working for some reason (I’ve started a new document with the default arch template in meters from Revit):

My RiR is the last public release: 1.10.8390.5758

As you can see my value picker is not updated when connected to Scope input from Add Parameter as it does with Elefront components.

Sorry for being confusing, my question related to shared parameter creation is about its own creation from RiR, rather than export project params as shared params within Revit (tell me please if it exists some limitation in that aspect).

Thank you again

By the way, ultimately most of the time that I close Revit when RiR was in use, that crash report arises

That’s a Value List and will auto populate in Elefront if the Elefront Component has brackets [ ] in the input.

The Value Picker take list and gives you the ability to search.

Please send in your crash reports with the zip mentioned.

Thanks!

Tested in 1.10.8390.5758 as well. Can you provide your Rhino.Inside About info? Thanks

You can right click on the S input and expose picker to get a filled out Value List.

Hey Japhy. Thank you for the Expose picker trick.

I send you mi RiR info:

RiR About

It looks like Add Param is not working for some reason, I always have the same message: 1. System.Core: Value cannot be null. Parameter name: source , And the component becomes red.

I’ve updated my Revit to the 2023.1.10 version and the problem persists.

Could you please send me the link for sending you the Zip with the Revit crash reports?

Thanks

When crashing there will be a dialog with instructions to send to mcneel. The zip is created on the crash and is located on the desktop. Note that it’s purged after so will need to be added immediately.

example:
!!! Please drag and drop the ‘C:\Users\YOURUSERNAME\Desktop[RhinoInside-Revit-Report-20221228T112034Z.zip](http://rhinoinside-revit-report-20221228t112034z.zip/)’ file here to attach the error files !!!

What is your project environment? BIM 360? Worksets? or a local file?

We should start looking a plugin conflicts.

Japhy it’s a local file.
I see, I will have a look and install those software for both plugin conflict and for sending you the report files.
I will go to have a look and let you know.

Plugin Conflicts are typically on the install, so this would be a first, but we need to eliminate the variables since we are running the same essential Rhino / Revit setups.

Japhy, I have disabled most of plugins, Add Parameter says: 1. RevitAPI: A managed exception was thrown by Revit or by one of its external applications.
After reconected, same error appears: 1. System.Core: Value cannot be null. Parameter name: source.
When close, a Rhino Crash report was created on the desktop.
I send it to you
RhinoDotNetCrash.txt (3.1 KB)

Can you go to Add or Remove programs and remove the current Rhino.Inside.Revit install, reboot your machine and reinstall 1.10.8390.5758? Thanks.

Hi Japhy.
I have done it, but same Add Param message arises 1. RevitAPI: A managed exception was thrown by Revit or by one of its external applications.

I have noticed that Add Parameter is only working when Global parameter is selected, however, I need to add shared parameters for data management in orther to deal with Direct Shape from GH.

Hi Japhy.
Any news?

Still on 1.10.8390.5758? I recommend the current Release Candidate 1.12.8417.6530 or above.

Can you post a file? Thanks

Thanks for the files, I rolled back to your version and not able to replicate unfortunately.

Does this command sound familiar? That looks like the last one used before the crash.

  'Command: ID_BUTTON_SELECT
  'Category: 1
  'Bar list: 
  '	Dialog_Revit_DynamicLabelDBar
  '	Dialog_Essentials_FilterSelectionNew
  'Provider list: 
  '	PP_DirectShape_ModScope_RebarTools
  '	PP_Elements_Are_In_ModScope

Thank you for your answering Japhy.
Unfortunatellyu, I don’t remember what command is that related too.
Case of RiR, I could continue working with it but the params.
So I need to use Dynamo for that purpose in the meantime (the one that I am not able to open).
Looking at Dynamo log, those folders were missing after plugin disable with AddInManager tool:

The folder ‘C:\Program Files\Autodesk\Revit 2023\AddIns\DynamoForRevit\Built-In Packages\Packages’ does not exist
2023-01-22 10:22:53Z : Dynamo will use the package manager server at : https://www.dynamopackages.com
2023-01-22 10:22:53Z : The folder ‘C:\Program Files\Autodesk\Revit 2023\AddIns\DynamoForRevit\Built-In Packages\Packages’ does not exist
2023-01-22 10:22:53Z : The folder ‘C:\ProgramData\Autodesk\RVT 2023\Dynamo\2.16\packages\GenerativeDesign\dyf’ does not exist
2023-01-22 10:23:23Z : The folder ‘C:\ProgramData\Autodesk\RVT 2023\Dynamo\2.16\packages\GenerativeDesign.Extension\dyf’ does not exist
2023-01-22 10:23:53Z : Generative Design (id: DFBD9CC0-DB40-457A-939E-8C8555555A9D) extension is added
2023-01-22 10:24:24Z : The folder ‘C:\ProgramData\Autodesk\RVT 2023\Dynamo\2.16\packages\GenerativeDesign.Revit\dyf’ does not exist

After uninstall and reinstall again Revit, files are still missing, so Dynamo cannot initialise and Revit crashes.

Is there a way to bring back manually those Dynamo folders, or clear Windows registry keys, in order to perform a clean Revit installation from scratch?

I’ll reach out to some dynamo folks I know, hopefully someone with extensive dynamo experience can chime in.

I’ll install the latest and see if there’s something amiss. https://dynamobuilds.com/