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

Re: InvalidOperationException during DefinitionGroups.Create(string)

$
0
0

Hi:

Any exception message?

 

see below:

2020-02-28_131558.png

 

Try this line:

var group = defFile.Groups.FirstOrDefault(g => g.Name.OrdinalEquals("some group name")) ?? defFile.Groups.Create(preDef.OwnerGroup);

Viewing all articles
Browse latest Browse all 66912

Trending Articles