Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66912

Re: InvalidOperationException during DefinitionGroups.Create(string)

$
0
0

Hi,

I have an idea what may cause the InvalidOperationException message.
I'm not sure what you mean by ..."if the default file is used".., but this could cause the error.
You have to create manually(or programmatically) C:\tmp folder and be certain you have checked step '4'.
You have to change your default location of your shared parameter file, i assume.

 

1. check you have created a folder like "C:\tmp"

step 1.png

2. create a txt document and save it as SharedParams.txt (keep the document blank) in the above directory.

3. in Revit UI go to manage tab select the 'Shared Parameters' icon
4. check the 'Shared parameter file' is referring to 'C:\tmp\SharedParams.txt', if not click 'Browse...' button to set the file

step 3+4.png

5. then run the external command or macro
6. click again the 'Shared Parameters' icon
7. this is the result if the command have run successfully

step 7.png


Viewing all articles
Browse latest Browse all 66912

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>