zoukankan      html  css  js  c++  java
  • 【Revit API】创建共享参数

    话不多说,直接上代码

    var app = doc.Application;
    app.SharedParametersFilename = sharedParamFilePath;
    DefinitionFile definitionFile = app.OpenSharedParameterFile();
    var groups = definitionFile.Groups;
    var matchedGroup = groups.FirstOrDefault();
    var edco = new ExternalDefinitionCreationOptions("ParamName", ParameterType.Text);
    var definition = matchedGroup.Definitions.Create(edco) as ExternalDefinition;
    
    Binding binding = doc.Application.Create.NewTypeBinding(categorySet);
    doc.ParameterBindings.Insert(definition, binding, BuiltInParameterGroup.Text);
  • 相关阅读:
    Codeforces 385C
    Codeforces 496C
    HDU 6114 Chess
    Codeforces 839B
    Codeforces 483B
    Codeforces 352B
    Codeforces 768B
    Codeforces 38B
    Codeforces 735B
    Codeforces 534B
  • 原文地址:https://www.cnblogs.com/lovecsharp094/p/9224199.html
Copyright © 2011-2022 走看看