ページの作成

ページの作成

親となるページを選択してください。

ページは必ず何かしらの親ページに紐づきます。
親ページに紐づくページを子ページといいます。
例: 親=スポーツ, 子1=サッカー, 子2=野球

子ページを親ページとして更に子ページを作成することも可能です。
例: 親=サッカー, 子=サッカーのルール

親ページはいつでも変更することが可能なのでとりあえず作ってみましょう!
テンプレートを更新

15. 【Revit API】特定の要素のパラメータ一覧の取得

前提

C#(他言語の場合は適宜読み替えてください。)

 

実装

選んだ要素のパラメータ一覧を表示するプログラムを実装する。

using System;
using System.Text;
using Autodesk.Revit;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;
using Autodesk.Revit.UI;
using Autodesk.Revit.Attributes;
using System.Collections.Generic;

namespace TestTool
{
    [Autodesk.Revit.Attributes.Transaction(Autodesk.Revit.Attributes.TransactionMode.Manual)]
    public class TestTool : IExternalCommand
    {
        public Autodesk.Revit.UI.Result Execute(ExternalCommandData commandData,
            ref string message, ElementSet elements)
        {

            UIDocument uidoc = commandData.Application.ActiveUIDocument;
            Document document = uidoc.Document;

            ICollection<ElementId> selectedIds = uidoc.Selection.GetElementIds();

            foreach (ElementId id in selectedIds)
            {
                Element element = document.GetElement(id);
                GetElementParameterInformation(document, element);
            }

            return Autodesk.Revit.UI.Result.Succeeded;

        }

        void GetElementParameterInformation(Document document, Element element)
        {
            String prompt = "■Show parameters in selected Element \r\n";

            StringBuilder st = new StringBuilder();

            foreach (Parameter para in element.Parameters)
            {
                st.AppendLine(GetParameterInformation(para, document));
            }

            TaskDialog.Show("Revit", prompt + st.ToString());
        }

        String GetParameterInformation(Parameter para, Document document)
        {
            string defName = para.Definition.Name + "\t : ";
            string defValue = string.Empty;

            switch (para.StorageType)
            {
                case StorageType.Double:
                    //covert the number into Metric
                    defValue = para.AsValueString();
                    break;

                case StorageType.ElementId:
                    //find out the name of the element
                    Autodesk.Revit.DB.ElementId id = para.AsElementId();
                    if (id.IntegerValue >= 0)
                    {
                        defValue = document.GetElement(id).Name;
                    }
                    else
                    {
                        defValue = id.IntegerValue.ToString();
                    }
                    break;
                case StorageType.Integer:
                    if (ParameterType.YesNo == para.Definition.ParameterType)
                    {
                        if (para.AsInteger() == 0)
                        {
                            defValue = "False";
                        }
                        else
                        {
                            defValue = "True";
                        }
                    }
                    else
                    {
                        defValue = para.AsInteger().ToString();
                    }
                    break;
                case StorageType.String:
                    defValue = para.AsString();
                    break;
                default:
                    defValue = "Unexposed parameter.";
                    break;
            }

            return defName + defValue;
        }
    }
}

 

 

以下、実行例。

子ページ
子ページはありません
同階層のページ
  1. RevitAPI.dll と RevitAPIUI.dll の参照
  2. マニフェストファイルの書き方
  3. アドインの追加/設置方法
  4. アドインの作成サンプル(外部ツール編)
  5. アドインの作成サンプル(外部アプリケーション編)
  6. 要素の取得と情報の表示
  7. 要素のカテゴリとマテリアルの取得と表示
  8. よく使うBuiltInCategoryの一覧
  9. 外部ツールでAutodesk.Revit.Documentを取得する方法
  10. エラーメッセージの設定方法
  11. 「はい」、「いいえ」、「キャンセル」ボタンの設置と処理分岐
  12. 要素(カテゴリ、ファミリ、タイプ)とは
  13. ElementId とUniqueId の違い
  14. 要素フィルターの使い方
  15. 要素のパラメータ一覧の取得
  16. pyRevitの導入と簡単なアプリケーションの作成
  17. Revit SDKのサンプルの場所とビルド方法
  18. FamilySymbol(タイプ)の取得とパラメータの変更
  19. 相対パスでdllにアイコン画像を埋め込む方法

最近の質問

コメント一覧

    No.97 | guest | 2022-01-18 15:21:11

    free vpn uk <a href=https://addonsvpn.com>best vpn for mac</a> best vpn for firefox

    No.96 | guest | 2022-01-18 05:24:43

    donde comprar cialis por internet <a href=https://www.alevitrasp.com>levitra online espana</a>

    No.95 | guest | 2022-01-02 17:41:33

    kamagra dosis diaria <a href="https://vskamagran.com ">kamagra 100mg oral</a> kamagra alicante

    No.94 | guest | 2022-01-01 17:39:17

    writing college essays <a href=https://essaytodo.com/?>website to write essays</a> narrative essay topics

    No.93 | guest | 2021-12-30 15:03:54

    essay writing companies <a href=https://dollaressays.com/?>writing experience essay</a> anti islamophobia essay

    No.92 | guest | 2021-12-30 09:42:50

    Viagra Vs Kamagra

    No.91 | guest | 2021-12-27 10:27:21

    college admission essay <a href=https://checkyouressay.com/?>writing an introduction to an essay</a> writing essays services

    No.90 | guest | 2021-12-22 11:34:47

    write an expository essay <a href=https://casinoonlinek.com/?>write college essays</a> writing a good college essay

    No.89 | guest | 2021-12-21 10:40:43

    how write an essay <a href=https://onlinecasinoad.com/?>essay writing services australia</a> write my essay.com

    No.88 | guest | 2021-12-20 19:19:40

    Baclofene Mal De Tete

    No.87 | guest | 2021-12-20 13:37:33

    write essay for money <a href=https://casinoonlinet.com/?>admission essay writing services</a> mba essay writing service

    No.86 | guest | 2021-12-19 14:54:11

    writing essays online <a href=https://multiessay.com/?>write descriptive essay</a> narrative essay writing

    No.85 | guest | 2021-12-19 03:19:47

    <a href="https://osildenafilop.com ">viagra results forum</a>

    No.84 | guest | 2021-12-17 18:27:54

    writing college admission essays <a href=https://student-essay.com/?>i hate writing essays</a> writing essay service

    No.83 | guest | 2021-12-16 11:54:41

    help write essay <a href=https://buy1essay.com/?>help writing college essay</a> write essay for you

    No.82 | guest | 2021-12-15 10:38:37

    naked sex anima games <a href=https://sexygamess.com/?>sex games on pc</a> erotic pleasure sex games

    No.81 | guest | 2021-12-14 13:32:23

    deathclaw sex games <a href=https://sexgameszone.com/?>erotic sex games</a> sex games for ps3

    No.80 | guest | 2021-12-13 16:06:49

    babysitter sex games <a href=https://sex4games.com/?>lois griffin sex games</a> 3d sex porn games

    No.79 | guest | 2021-12-12 06:19:26

    sex games steam <a href=https://winsexgames.com/?>frozen sex games</a> kinky sex games

    No.78 | guest | 2021-12-11 08:17:05

    sex games group roulette <a href=https://sexygamess.com/?>sex games cdg</a> rpg maker sex games

    No.77 | guest | 2021-12-09 04:40:17

    <a href="https://ocialisshop.com/ ">buying cialis online reviews</a>

    No.76 | guest | 2021-12-07 22:17:05

    <a href="http://abuyneurontins.com/ ">gabapentin doses</a>

    No.75 | guest | 2021-12-07 00:51:48

    <a href="https://buyplaquenicv.com/ ">plaquenil and alcohol</a>

    No.74 | guest | 2021-12-06 10:55:45

    keto pancake <a href=https://ketogenicdiets.net/?>beans on keto diet</a> keto diet food

    No.73 | guest | 2021-12-06 03:32:34

    <a href="https://abuyzithromaxi.com/ ">azithromycin tablets</a>

    No.72 | guest | 2021-12-05 13:15:02

    keto cheat sheet <a href=https://ketogenicdietinfo.com/?>keto tacos</a> keto desserts easy

    No.71 | guest | 2021-12-04 11:47:37

    asian sex games <a href=https://sexgamesx.net/?>sex games nude</a> browser sex games

    No.70 | guest | 2021-12-04 10:53:57

    Amoxicillin Vre

    No.69 | guest | 2021-12-04 08:04:40

    <a href="http://atadalafiloop.com/ ">purchase cialis online cheap</a>

    No.68 | guest | 2021-11-30 14:50:04

    hentai sex games <a href=https://sex4games.com/?>adult games sex porn xxx flash</a> eroge! - sex and games make sexy games

    No.67 | guest | 2021-11-29 18:53:19

    sex pokemon games <a href=https://sex4games.com/?>3d games sex</a> samus sex games

    No.66 | guest | 2021-11-26 17:59:02

    free simpsons sex games <a href=https://sexgameszone.com/?>my little pony sex games apple quest</a> patreon adult sex games

    No.65 | guest | 2021-11-14 01:43:16

    <a href=https://aprednisonen.com/>Prednisone</a>

    No.64 | guest | 2021-11-13 05:37:01

    Chlamydia Amoxicillin

    No.63 | guest | 2021-11-10 22:19:01

    <a href=https://abuypriligyhop.com/>buy priligy online safe</a>

    No.62 | guest | 2021-11-10 21:06:18

    cover page for essay <a href=https://checkyouressay.com/?>writing a narrative essay</a> personal essay writing

    No.61 | guest | 2021-11-10 19:12:24

    Cvs Pharmacy Propecia

    No.60 | guest | 2021-11-10 14:27:42

    Gpc Health Canada Pharmacy

    No.59 | guest | 2021-11-10 08:45:21

    Discount Online Asthma Inhalers

    No.58 | guest | 2021-11-07 18:23:03

    Naltrexone

    No.57 | guest | 2021-11-06 13:38:23

    cialis canadian pharmacy overnight shipping

    No.56 | guest | 2021-11-05 16:46:24

    writing an essay introduction <a href=https://multiessay.com/?>writing literary analysis essay</a> essay writing websites

    No.55 | guest | 2021-11-05 12:11:04

    <a href=http://stadalafilop.com />buy cialis online safely</a>

    No.54 | guest | 2021-11-05 05:44:04

    <a href=https://asildenshop.com/>viagra iowa</a>

    No.53 | guest | 2021-11-05 00:29:37

    <a href=http://vsildenshop.com/>Viagra</a>

    No.52 | guest | 2021-11-04 19:53:35

    Buying Prednisolone Uk

    No.51 | guest | 2021-11-04 00:53:10

    Dangers Of Amoxicillin

    No.50 | guest | 2021-11-03 20:54:44

    <a href=http://atadalafishop.com/>generic cialis online pharmacy</a>

    No.49 | guest | 2021-11-02 23:43:11

    <a href=https://abuypropecian.com/>finpecia from india online</a>

    No.48 | guest | 2021-11-01 23:14:24

    <a href=http://astromectoli.com/>Stromectol</a>

    No.47 | guest | 2021-11-01 04:23:50

    <a href=http://abuylasixshop.com/>what is furosemide for</a>

    No.46 | guest | 2021-10-30 12:30:44

    Urolosin O Propecia

    No.45 | guest | 2021-10-15 12:38:36

    custom essay writing services <a href=https://essaytag.com/?>term paper help</a>

    No.44 | guest | 2021-10-11 06:35:18

    best professional resume writing services <a href=https://essaywritercentral.com/?>research papers for sale</a>

    No.43 | guest | 2021-10-09 19:49:31

    https://prednisonebuyon.com/ - how to get rid of prednisone water weight

    No.42 | guest | 2021-10-07 13:55:59

    The Canadian Med Store

    No.41 | guest | 2021-10-07 07:32:44

    <a href=https://buyneurontine.com/>gabapentin side effects for dogs</a>

    No.40 | guest | 2021-10-06 06:50:52

    Celadrin Singapore

    No.39 | guest | 2021-10-05 08:50:02

    <a href=https://prednisonebuyon.com/>Prednisone</a>

    No.38 | guest | 2021-10-01 14:18:11

    https://buyneurontine.com/ - Neurontine

    No.37 | guest | 2021-09-24 07:19:15

    https://buypriligyhop.com/ - Priligy

    No.36 | guest | 2021-09-24 04:08:19

    https://buyzithromaxinf.com/ - Zithromax

    No.35 | guest | 2021-09-23 04:54:11

    Prix Levitra Casablanca

    No.34 | guest | 2021-09-21 22:35:56

    http://buyplaquenilcv.com/ - Plaquenil

    No.33 | guest | 2021-09-21 20:01:25

    Usa Pharmacy Pills

    No.32 | guest | 2021-09-21 14:17:01

    <a href=https://buylasixshop.com/>Lasix</a>

    No.31 | guest | 2021-09-21 06:00:02

    Canadian Health And Care Mall

    No.30 | guest | 2021-09-20 09:53:42

    <a href=https://buyplaquenilcv.com/>Plaquenil</a>

    No.29 | guest | 2021-09-20 04:36:44

    Kamagra Cialis Levitra

    No.28 | guest | 2021-09-19 06:55:28

    <a href=https://buypriligyhop.com/>buy priligy cheap</a>

    No.27 | guest | 2021-09-19 01:36:38

    <a href=https://buyzithromaxinf.com/>zithromax online</a>

    No.26 | guest | 2021-09-15 18:27:09

    teen dating site gay only gay dating tennessee <a href=http://datinggayservices.com/?>gay asian dating horror</a>

    No.25 | guest | 2021-09-15 16:05:59

    https://buylasixshop.com/ - what does furosemide do

    No.24 | guest | 2021-09-12 20:32:30

    the best gay dating site hairy gay dating <a href=http://dating-gaym.com/?>closet gay dating site</a>

    No.23 | guest | 2021-09-11 01:17:07

    http://buystromectolon.com/ - ivermectin for dogs dosage

    No.22 | guest | 2021-09-09 15:03:27

    http://buypropeciaon.com/ - Propecia

    No.21 | guest | 2021-09-09 07:44:01

    Viagra Original Pas Cher En La Seyne

    No.20 | guest | 2021-09-07 22:10:39

    gay old men dating sites bodybuilder gay dating <a href=gay-singles-dating.com?>review gay bear dating</a>

    No.19 | guest | 2021-09-07 20:57:18

    http://buytadalafshop.com/ - cialis order online

    No.18 | guest | 2021-09-06 16:39:40

    Viagra Tesco

    No.17 | guest | 2021-09-06 05:31:12

    <a href=http://buytadalafshop.com/>Cialis</a>

    No.16 | guest | 2021-09-06 01:31:28

    fake gay dating profile manhunt gay dating website <a href=http://freegaychatnew.com?>dating for gay daddies</a>

    No.15 | guest | 2021-09-05 21:37:34

    Free Viagra Samples In Canada

    No.14 | guest | 2021-09-02 23:44:54

    best gay dating site android is dating a transwoman gay <a href=http://gaychatgay.com?>badoo gay dating</a>

    No.13 | guest | 2021-09-01 17:11:51

    <a href=http://buypropeciaon.com/>Propecia</a>

    No.12 | guest | 2021-09-01 08:05:33

    Kamagra Creditcard

    No.11 | guest | 2021-09-01 03:54:46

    <a href=http://buysildenshop.com/>Viagra</a>

    No.10 | guest | 2021-08-31 23:19:19

    <a href=http://buystromectolon.com/>ivermectin for cats</a>

    No.9 | guest | 2021-08-27 13:43:43

    http://buysildenshop.com/ - Viagra

    No.8 | guest | 2021-08-18 19:50:04

    【Revit API】特定の要素のパラメータ一覧の取得 - IT技術総合Wiki | CWiki [url=http://www.gxi84lkyr91764z04161lmx99o5qrkj5s.org/]uqjgmltfizk[/url] <a href="http://www.gxi84lkyr91764z04161lmx99o5qrkj5s.org/">aqjgmltfizk</a> qjgmltfizk http://www.gxi84lkyr91764z04161lmx99o5qrkj5s.org/

    No.7 | guest | 2021-08-17 19:08:25

    gay dating simulators android gay age gap dating sites <a href=http://gaychatrooms.org?>gay dating sim18+</a>

    No.6 | guest | 2021-08-14 21:22:02

    how to do gay online dating gay dating website free <a href=http://gaychatgay.com?>recon gay dating sites</a>

    No.5 | guest | 2021-08-11 23:00:01

    gay dating melbourne florida gay black men dating other <a href=http://freegaychatnew.com?>gay dating magazines</a>

    No.4 | guest | 2021-08-07 19:44:02

    local gay dating hoboken , n.j. what is a p top gay dating <a href=http://gaychatrooms.org?>does zoosk have gay dating</a>

    No.3 | guest | 2021-07-28 05:57:40

    free online dating <a href=http://onlinedatinglook.com/?>michelle rodriguez dating</a>

    No.2 | guest | 2021-06-15 17:08:01

    <a href=https://vslasixv.com>lasix without a script

    No.1 | guest | 2021-05-29 00:33:31

    <a href=https://vslevitrav.com/>vardenafil india bay