unable to export parameter to a shared parameter file (even in a simplest way from scracth)

unable to export parameter to a shared parameter file (even in a simplest way from scracth)

heichan88
Collaborator Collaborator
1,031 Views
4 Replies
Message 1 of 5

unable to export parameter to a shared parameter file (even in a simplest way from scracth)

heichan88
Collaborator
Collaborator

Hello,

I made a blank new family, and create a blank shared parameter txt file, then create two parameter A and B (=A*2)

Even simple like this, these two simple parameters are unable to be exported.

Please see attached these 2 simplest rfa file and txt file, 

i am now using revit 2023 student version

photo_2024-05-11_20-45-08.jpg

Thanks

0 Likes
1,032 Views
4 Replies
Replies (4)
Message 2 of 5

David_W_Koch
Mentor
Mentor

You will not be able to export parameter B, because it is a family parameter, not a shared parameter.

 

2024-05-11_12-02-41.PNG

 

Parameter A is a shared parameter.  If the Export button is grayed out (inactive), there are two possibilities:

  1. Parameter A is already a shared parameter in your currently selected shared parameter file.  You will not be able to export it, because it is already in that file.
  2. You do not have a shared parameter file selected.

Possibility 1 is the most likely since you would have had to have added it from a shared parameter file initially.  Unless you changed your current shared parameter file, or moved the file to a different location such that Revit cannot find it, that parameter is already in that file.

 

To test, open your family.  Open the Family Types dialog and edit parameter A.  You should see something similar to this:

 

2024-05-11_12-11-15.PNG

 

Click on the Select button.  If you are prompted to select or create a shared parameters file, then you do not have one set current.  If you get the Shared Parameters dialog asking you to choose a parameter group and a parameter, then you have a current file and parameter A is in there under the parameter group in which you created it. 

 

2024-05-11_12-16-42.PNG

 

If you want to text exporting, choose the Edit button.

 

2024-05-11_12-19-13.PNG

 

Then choose either the Browse button (to change to a different shared parameters file) or the Create button (to create a new shared parameters file).  Assuming you do not select another shared parameters file that already has parameter A in it, you should be able to export parameter A.

 

I created a new shared parameters file and was able to export parameter A from your family.  I have attached that file.


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

Message 3 of 5

heichan88
Collaborator
Collaborator

hello @David_W_Koch 

My purpose is to "export parameter WITH FORMULA (eg. B=A*2)",

because i have many parameters (with Fomula), but txt file should not be editted to add formula manually, so there seems to be a logic loop:

A, B has to be imported, then if with fomula then unable to be exported....

 

Or May I ask two simple questions:

Q1. how to make the shared txt file to have a parameter C=A*2, which can be used by other family to be shared?

Q2. In a family, "add a parameter with formula C= A*3"--- then how to export it to share parameter txt file?

Please advice

Thanks

 

0 Likes
Message 4 of 5

David_W_Koch
Mentor
Mentor

@heichan88 

 

Unfortunately, there is no way to include a formula in a shared parameter file, no matter how it is edited.

 

The closest you could come would be to include the text of the formula in the Tooltip description.  Unfortunately, you cannot edit the Tooltip description to copy the formula to the clipboard so that you can later paste it into the Family Types dialog.  The Tooltip could serve as a reminder of what the formula should be, but the user would still have to manually enter the formula.


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

Message 5 of 5

heichan88
Collaborator
Collaborator

@David_W_Koch yes, I recall: 3 years ago there was a thread about directly edit the shared txt file, but seems that I  also finally use tooltip.... memory not so clear, but any one can get this old passage?

and if like the passage above, then how a company shared parameter txt file been created (many fomula?), my purpose is the hundreds of "fomula"...any experience for that to share?

 

0 Likes