ページの作成

ページの作成

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

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

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

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

7. 【Revit API】要素のカテゴリとマテリアルの取得と表示

前提

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

 

実装

今回は選択した要素の情報をダイアログに表示するプログラムを作成する。

プログラムは以下の通り。

using System;
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 doc = uidoc.Document;

            Element selectedElement = null;
            foreach (ElementId id in uidoc.Selection.GetElementIds())
            {
               
selectedElement = doc.GetElement(id);
                break;  // just get one selected element
            }

            // Get the category instance from the Category property
           
Category category = selectedElement.Category;

            BuiltInCategory builtInCategory = (BuiltInCategory)category.Id.IntegerValue;

            String info = "builtInCategory.ToString(): " + builtInCategory.ToString() + "\r\n";
            info += "category.Id: " + category.Id + "\r\n";
            info += "category.Name: " + category.Name + "\r\n";
            info += "category.Material.Id: " + category.Material.Id + "\r\n";
            info += "category.Material.Name: " + category.Material.Name + "\r\n";

            TaskDialog.Show("Revit", info);
            return Autodesk.Revit.UI.Result.Succeeded;
        }
    }
}

 

以下のように、Revit上で定義されている壁を選択する。

あとは外部ツールからツールを選択すれば、以下のダイアログが表示される。

 

子ページ
子ページはありません
同階層のページ
  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.135 | guest | 2022-05-16 09:53:36

    help on writing a dissertation [url="https://helpon-doctoral-dissertations.net"]writing a rationale for dissertation[/url] writing dissertation tips

    No.134 | guest | 2022-05-15 10:54:30

    dissertation writing fellowship [url="https://dissertationwriting-service.com"]atlanta georgia dissertation help[/url] how to cite dissertation apa

    No.133 | guest | 2022-05-14 15:07:12

    event management dissertation help [url="https://dissertations-writing.org"]phd thesis vs dissertation[/url] define dissertation

    No.132 | guest | 2022-05-02 12:19:11

    online viagra prescription <a href="https://viagrahom.com/">women viagra pills</a> sildenafil 20 mg

    No.131 | guest | 2022-03-27 08:25:38

    In school sensual massage women will hold erotic 4hands massage. Similar swedish massage, as in principle, and relaxation, influences on some area human body, this give a chance male gain strength. Systematically visiting the four hands massage for clients, you guarantee himself excellent sexual relaxation. Dear gentlemen! Sensitive touch rasprekrasnoy girls will flow through your body, dipping in depth boundless the ocean pleasure. In the quiet slip, donating your skin kisses, prelestress envelops the warmth of one&apos;s body. You will be surprised at, which sea bliss today it is possible to feel fromnude massage in Midtown. And while, french massage and not violates practically any prohibitions, for the reason it&apos;s not about sexual contact. [url=https://outcall.widezone.net/]Топ 50 ру рейтинг постов в блогах рунета[/url]

    No.130 | guest | 2022-02-19 01:37:21

    what is a personal essay [url="https://yoursuperessay.com/"]mla format essay[/url] reword essay

    No.129 | guest | 2022-02-18 00:50:24

    best vpn for xbox [url="https://windowsvpns.com/"]business vpn provider[/url] best chrome vpn free

    No.128 | guest | 2022-02-17 01:52:57

    hola vpn chrome [url="https://vpnsrank.com/"]vpn service[/url] buy vpn canada

    No.127 | guest | 2022-02-16 02:15:53

    best vpn for crypto trading [url="https://vpnshroud.com/"]best kodi vpn[/url] best vpn proxy

    No.126 | guest | 2022-02-15 04:51:42

    buy vpn now [url="https://vpn4torrents.com/"]vpn proxy[/url] best vpn reddit 2022

    No.125 | guest | 2022-02-14 06:37:56

    implicit premise examples of critical thinking [url="https://uncriticalthinking.com/"]critical thinking definition nursing[/url] critical thinking most clearly involves

    No.124 | guest | 2022-02-13 07:16:07

    best windows vpn 2018 [url="https://topvpndeals.net/"]best us vpn service[/url] best vpn services 2019

    No.123 | guest | 2022-02-12 08:02:14

    argumentative essay thesis [url="https://topessayswriter.com/"]double spaced essay example[/url] whats an essay

    No.122 | guest | 2022-02-11 09:19:26

    best vpn multiple devices [url="https://tjvpn.net/"]best free vpn for netflix[/url] free vpn for ios

    No.121 | guest | 2022-02-10 10:48:19

    vpn review [url="https://thebestvpnpro.com/"]what is vpn connection[/url] setup vpn

    No.120 | guest | 2022-02-09 11:24:50

    best dating apps 2018 gay men [url="https://speedgaydate.com/"]chubby gay mens dating sites[/url] gay senior dating free no e mail needed

    No.119 | guest | 2022-02-06 23:24:27

    The explanation is that hypoxia drives breathing so when the patient is no longer hypoxic hypoventilation can result and hypercapnia worsens causing a respira tory acidosis. Svyyjl <a href=http://abuyplaquenilcv.com/>Plaquenil</a>

    No.118 | guest | 2022-02-04 23:51:21

    no deposit sign up bonus [url="https://onlinecasinohero.com/"]win money online[/url] online casino game real money

    No.117 | guest | 2022-02-04 02:41:54

    shakra keto diet [url="https://ketogenicdiets.net/"]keto diet program[/url] keto diet for men

    No.116 | guest | 2022-02-03 05:27:41

    keto diet migraines [url="https://ketogenicdietinfo.com/"]keto diet free plan[/url] whats the keto diet

    No.115 | guest | 2022-02-02 07:57:33

    how to do a keto diet [url="https://ketogendiets.com/"]keto diet bread[/url] keto diet snack ideas

    No.114 | guest | 2022-02-01 10:11:10

    keto diet and coffee [url="https://ketogendiet.net/"]keto vegetarian diet[/url] best keto diet recipes

    No.113 | guest | 2022-02-01 03:43:44

    <a href=https://aprednisonen.com/>Prednisone</a> Cialis Online Canada Paypal Xzijih

    No.112 | guest | 2022-01-31 12:54:09

    write my essay [url="https://howtowriteessaytips.com/"]interesting essay topics[/url] argumentative essay layout

    No.111 | guest | 2022-01-30 15:40:32

    gay chat video [url="https://gaytgpost.com/"]gay chat recorded[/url] gay chat avenue

    No.110 | guest | 2022-01-29 18:34:07

    joomla gay dating theme [url="https://gaysugardaddydatingsites.com/"]popular gay dating apps for android[/url] naked gay dating

    No.109 | guest | 2022-01-29 02:53:24

    gay senior dating [url="https://gayprideusa.com/"]dad dating simulator gay[/url] gay farmers dating sites

    No.108 | guest | 2022-01-28 10:28:29

    gay christian dating [url="https://gaypridee.com/"]senior gay hiv dating sites[/url] gay dating simulator tumblr

    No.107 | guest | 2022-01-27 17:45:37

    dating gay bear [url="https://gayfade.com/"]gay macho dating[/url] best gay dating

    No.106 | guest | 2022-01-26 23:03:09

    gay chat now [url="https://gay-buddies.com"]gay masturbation chat[/url] gay chat avenue

    No.105 | guest | 2022-01-26 00:46:15

    word choice in an argumentative essay should be [url="https://essaysitesreviews.com"]where does the thesis go in an essay[/url] outline essay example

    No.104 | guest | 2022-01-25 23:06:47

    https://www.alevitrasp.com Cytotec Vaginal

    No.103 | guest | 2022-01-25 14:35:01

    Avdjtw Genes are composed of an arrangement of units called nucleotides containing a sugar phosphate and a base such as adenine guanine thymine or cytosine. <a href=https://abuyplaquenilcv.com/>plaquenil and alcohol</a> Viagra Pour Rire Pfyter

    No.102 | guest | 2022-01-25 02:20:02

    free compare and contrast essay examples [url="https://essayscratch.com"]how long is the sat with essay[/url] good essay starters

    No.101 | guest | 2022-01-24 04:03:48

    critical thinking workbooks [url="https://criticalthinkinginstitute.com"]critical thinking lesson plans[/url] critical thinking in writing

    No.100 | guest | 2022-01-23 06:07:17

    critical thinking example [url="https://criticalthinkingbasics.com"]steps of critical thinking[/url] critical thinking definition psychology

    No.99 | guest | 2022-01-22 07:49:20

    critical thinking in the classroom [url="https://criticalthinking2020.net"]critical thinking examples[/url] critical thinking book

    No.98 | guest | 2022-01-21 09:53:04

    best vpn for streaming [url="https://choosevpn.net"]best free vpn service[/url] free vpn for netflix reddit

    No.97 | guest | 2022-01-20 10:20:39

    nc gay free chat room [url="https://bjsgaychatroom.info"]321 gay chat[/url] naked gay chat rooms

    No.96 | guest | 2022-01-19 12:01:45

    mla citation in essay [url="https://anenglishessay.com"]title generator for essay[/url] how to write an analytical essay

    No.95 | guest | 2022-01-18 16:27:41

    abilia Viagra E Cialis Online https://apriligyn.com Z Velfiffjef

    No.94 | guest | 2022-01-18 14:02:45

    best vpn trial [url="https://addonsvpn.com"]best vpn for xbox one[/url] how to create a vpn

    No.93 | guest | 2022-01-01 16:18:11

    essay on current events [url="https://essaytodo.com/?"]essay writing sites[/url] write and essay

    No.92 | guest | 2021-12-30 13:50:10

    "beauty" east of eden" essay [url="https://dollaressays.com/?"]show me a sample essay[/url] argument essay

    No.91 | guest | 2021-12-28 13:21:47

    uva favorite word essay [url="https://essayprepworkshop.com/?"]essay writing sites[/url] essay introduction examples

    No.90 | guest | 2021-12-27 09:09:02

    essay on fahrenheit 451 [url="https://checkyouressay.com/?"]200 persuasive essay words[/url] arkansas bar essay answers

    No.89 | guest | 2021-12-23 09:28:44

    writing an autobiography essay [url="https://casinogamesmachines.com/?"]cheap custom essay writing services[/url] writing analytical essay

    No.88 | guest | 2021-12-22 10:26:45

    writing essay service [url="https://casinoonlinek.com/?"]essay writing services australia[/url] custom writing essays

    No.87 | guest | 2021-12-21 09:31:35

    cheap custom essay writing services [url="https://onlinecasinoad.com/?"]writing a response essay[/url] college writing essay

    No.86 | guest | 2021-12-21 04:07:38

    Zithromax Elixir

    No.85 | guest | 2021-12-20 12:26:19

    write a personal essay [url="https://casinoonlinet.com/?"]write essay online[/url] write an essay online

    No.84 | guest | 2021-12-20 10:23:36

    <a href="https://vpropecian.com ">order propecia online mastercard</a>

    No.83 | guest | 2021-12-19 13:44:06

    write a essay about yourself [url="https://multiessay.com/?"]legit essay writing services[/url] writing compare and contrast essays

    No.82 | guest | 2021-12-17 17:16:29

    writing a biography essay [url="https://student-essay.com/?"]writing good essay[/url] what to write an essay on

    No.81 | guest | 2021-12-16 10:43:17

    writing an essay online [url="https://buy1essay.com/?"]writing argumentative essays[/url] what to write about in college essay

    No.80 | guest | 2021-12-14 12:22:26

    body paint sex games [url="https://sexgameszone.com/?"]survival sex games with forced incest[/url] sex games free no sign up

    No.79 | guest | 2021-12-13 14:57:01

    free rpg sex games [url="https://sex4games.com/?"]reality sex games[/url] my little pony games sex

    No.78 | guest | 2021-12-12 05:05:37

    social sex games [url="https://winsexgames.com/?"]free sex games for kids[/url] mobil sex games

    No.77 | guest | 2021-12-11 07:25:03

    sex adventure games [url="https://sexygamess.com/?"]first date sex games[/url] dsm sex games

    No.76 | guest | 2021-12-10 06:10:02

    cialis chew or swallow

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

    Fluoxetine Overnight Shipping Medicine

    No.74 | guest | 2021-12-06 04:27:55

    keto vegan [url="https://ketogendiets.com/?"]keto pork chops[/url] keto os nat

    No.73 | guest | 2021-12-05 20:32:55

    Amoxicillin Dosage Amounts

    No.72 | guest | 2021-12-05 06:51:17

    keto cucumber salad [url="https://ketogenicdietinfo.com/?"]keto diet mistakes[/url] keto cranberry sauce

    No.71 | guest | 2021-12-05 06:48:28

    Compresse Cialis

    No.70 | guest | 2021-12-04 21:03:13

    <a href="http://buyplaquenicv.com/ ">plaquenil eye exam</a>

    No.69 | guest | 2021-12-04 05:28:02

    sex text based games [url="https://sexgamesx.net/?"]sex games for grown ups[/url] personal trainer sex games

    No.68 | guest | 2021-12-04 04:59:18

    <a href="https://abuyneurontins.com/ ">gabapentin side effects weight gain</a>

    No.67 | guest | 2021-11-28 20:08:10

    sex games online [url="https://sex4games.com/?"]family strip poker sex games[/url] sex games for adults

    No.66 | guest | 2021-11-28 06:32:46

    sex mods for games [url="https://sex4games.com/?"]free vr sex games[/url] 3d sex games free download

    No.65 | guest | 2021-11-25 18:45:53

    japanese sex games [url="https://cybersexgames.net/?"]interactive porn sex games[/url] on line 3d sex games

    No.64 | guest | 2021-11-15 18:12:27

    Average Wholesale Price Viagra

    No.63 | guest | 2021-11-14 05:21:33

    <a href=http://aprednisonen.com/>prednisolone 5mg tab</a>

    No.62 | guest | 2021-11-13 06:40:09

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

    No.61 | guest | 2021-11-12 01:45:40

    Mail Order Doryx

    No.60 | guest | 2021-11-10 03:01:14

    Contraindicaciones Del Cialis

    No.59 | guest | 2021-11-10 00:38:53

    colege essay [url="https://essaytodo.com/?"]professional essay writing service[/url] writing narrative essay

    No.58 | guest | 2021-11-09 21:47:33

    <a href=https://astromectoli.com/>ivermectin for humans online</a>

    No.57 | guest | 2021-11-09 02:50:53

    Priligy Time

    No.56 | guest | 2021-11-07 00:39:11

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

    No.55 | guest | 2021-11-06 19:16:57

    Canadain Phamacry

    No.54 | guest | 2021-11-06 14:11:13

    Prezzo Cialis Farmacia Svizzera

    No.53 | guest | 2021-11-06 09:28:27

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

    No.52 | guest | 2021-11-06 05:02:01

    Worldwide Generic Dutasteride 0.5mg Canada Amex No Prescription Needed

    No.51 | guest | 2021-11-05 18:49:22

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

    No.50 | guest | 2021-11-05 18:48:05

    <a href=http://abuypriligyhop.com/>cheapest priligy uk</a>

    No.49 | guest | 2021-11-04 02:42:08

    write college essays for money [url="https://student-essay.com/?"]write an essay about yourself[/url] writing analysis essay

    No.48 | guest | 2021-11-03 14:50:06

    Farmaco Kamagra

    No.47 | guest | 2021-11-01 08:26:39

    Comprar Cialis Por Internet Foro

    No.46 | guest | 2021-10-30 23:53:58

    <a href=http://abuypropecian.com/>finasteride 1 mg online pharmacy</a>

    No.45 | guest | 2021-10-29 21:44:22

    <a href=https://atadalafishop.com/>Cialis</a>

    No.44 | guest | 2021-10-14 00:36:22

    write my term paper [url="https://essaypoints.com/?"]do my paper[/url]

    No.43 | guest | 2021-10-11 18:41:26

    https://buyneurontine.com/ - Neurontine

    No.42 | guest | 2021-10-09 23:28:44

    cheap essay writers [url="https://essaywritercentral.com/?"]college essay writing service[/url]

    No.41 | guest | 2021-10-09 07:21:58

    <a href=http://buyneurontine.com/>gabapentin 300 mg capsule</a>

    No.40 | guest | 2021-10-08 18:41:38

    Viagra Best Price

    No.39 | guest | 2021-10-08 10:47:27

    Amoxicillin Red

    No.38 | guest | 2021-10-08 05:47:24

    http://prednisonebuyon.com/ - prednisone for asthma

    No.37 | guest | 2021-10-02 00:57:40

    <a href=https://prednisonebuyon.com/>what is prednisone used for</a>

    No.36 | guest | 2021-09-25 10:52:09

    https://buylasixshop.com/ - Lasix

    No.35 | guest | 2021-09-23 17:31:16

    <a href=http://buylasixshop.com/>furosemide warnings</a>

    No.34 | guest | 2021-09-23 14:48:34

    <a href=http://buypriligyhop.com/>dapoxetine for premature</a>

    No.33 | guest | 2021-09-23 02:07:25

    Priligy Directions

    No.32 | guest | 2021-09-22 23:03:08

    Buy Periactin Pills

    No.31 | guest | 2021-09-22 10:53:11

    http://buyzithromaxinf.com/ - azithromycin for ear infection

    No.30 | guest | 2021-09-22 05:50:59

    http://buyplaquenilcv.com/ - Plaquenil

    No.29 | guest | 2021-09-22 05:30:54

    Buy Amoxicillin 250 Mg Uk

    No.28 | guest | 2021-09-20 00:26:07

    Levitra Conditionnement

    No.27 | guest | 2021-09-18 18:30:43

    https://buypriligyhop.com/ - Priligy

    No.26 | guest | 2021-09-16 03:09:58

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

    No.25 | guest | 2021-09-14 23:14:41

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

    No.24 | guest | 2021-09-14 11:51:03

    gay military dating site gay phone dating site [url="http://dating-gaym.com/?"]gay dating agencies uk[/url]

    No.23 | guest | 2021-09-10 09:05:22

    <a href=https://buystromectolon.com/>ivermectin for humans</a>

    No.22 | guest | 2021-09-09 19:13:30

    gay dating in japan gay mexican dating site [url="http://gay-singles-dating.com?"]older gay men friends dating[/url]

    No.21 | guest | 2021-09-09 01:16:31

    https://buysildenshop.com/ - viagra super online

    No.20 | guest | 2021-09-08 11:08:17

    http://buytadalafshop.com/ - Cialis

    No.19 | guest | 2021-09-08 07:34:23

    Secure Ordering Isotretinoin With Free Shipping Direct

    No.18 | guest | 2021-09-07 20:47:38

    https://buypropeciaon.com/ - propecia alternative

    No.17 | guest | 2021-09-07 20:46:16

    Provera Website With Free Shipping

    No.16 | guest | 2021-09-06 05:58:01

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

    No.15 | guest | 2021-09-05 17:44:11

    Finasteride Isotrex

    No.14 | guest | 2021-09-05 13:49:41

    Cialis Efectos En La Mujer

    No.13 | guest | 2021-09-04 17:10:57

    chubby gay males dating sites houston dating gay <a href=http://gaychatgay.com?>gay andl dating</a>

    No.12 | guest | 2021-08-31 11:00:32

    https://buystromectolon.com/ - Stromectol

    No.11 | guest | 2021-08-29 00:47:54

    <a href=https://buypropeciaon.com/>buy cheap propecia uk</a>

    No.10 | guest | 2021-08-27 19:38:43

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

    No.9 | guest | 2021-08-16 12:26:16

    gay dating india bahrain meetup.com gay men dating <a href=http://freegaychatnew.com?>my partner gay dating</a>

    No.8 | guest | 2021-08-13 14:36:45

    gay dating philadelphia gay men dating new york <a href=http://gaychatgay.com?>mateen gay dating</a>

    No.7 | guest | 2021-08-09 12:33:16

    free gay dating websites uk 100percent free gay dating <a href=http://gaychatgay.com?>south africa gay online dating</a>

    No.6 | guest | 2021-07-28 05:48:46

    free dating <a href=http://datingsitesover.com/?>bradley cooper dating history</a>

    No.5 | guest | 2021-07-22 16:20:09

    <a href=http://cialiswwshop.com/>brand cialis online</a>

    No.4 | guest | 2021-06-17 05:34:51

    <a href=http://vskamagrav.com>kamagra

    No.3 | guest | 2021-06-10 21:38:03

    <a href=https://vslevitrav.com>levitra order

    No.2 | guest | 2021-06-07 17:22:38

    <a href=https://fcialisj.com/>buy cialis online forum

    No.1 | guest | 2021-05-11 18:34:26

    <a href=http://fcialisj.com/>cialis 20 mg