ページの作成

ページの作成

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

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

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

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

11. 【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)
        {
            TaskDialog taskDialog = new TaskDialog("Revit");

            taskDialog.MainContent =
                ("Click Yes to return Succeeded. \t\n" +
                "Click No to return Failed. \t\n" +
                "Click Cancel to return Cancelled.  \t\n");

            TaskDialogCommonButtons buttons = TaskDialogCommonButtons.Yes |
                TaskDialogCommonButtons.No | TaskDialogCommonButtons.Cancel;

            taskDialog.CommonButtons = buttons;

            TaskDialogResult taskDialogResult = taskDialog.Show();

            if (taskDialogResult == TaskDialogResult.Yes)
            {
                return Autodesk.Revit.UI.Result.Succeeded;
            }
           
else if (taskDialogResult == TaskDialogResult.No)
            {
                message = "Failed";
                return Autodesk.Revit.UI.Result.Failed;
            }
           
else if (taskDialogResult == TaskDialogResult.Cancel)
            {
                message = "Cancelled";
                return Autodesk.Revit.UI.Result.Cancelled;
            }
            else
            {
                message = "Unexpected";
                return Autodesk.Revit.UI.Result.Failed;
            }
        }
    }
}

 

 

ツールを起動すると以下のダイアログが表示されるのでいずれかのボタンを押す。

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

    online dissertation help in malaysia <a href=https://helpon-doctoral-dissertations.net>need help with dissertation</a> writing acknowledgements for dissertation

    No.132 | guest | 2022-05-15 16:46:07

    dissertation help service proposal <a href=https://dissertationwriting-service.com>dissertation acknowledgement sample</a> uk dissertation writing service

    No.131 | guest | 2022-05-14 21:45:01

    dissertation help india review <a href=https://dissertations-writing.org>dissertation abstracts</a> dissertation help in dubai

    No.130 | guest | 2022-05-02 12:09:10

    viagra cost <a href="https://viagrahom.com/">viagra 100mg</a> generic viagra online

    No.129 | guest | 2022-03-09 23:13:06

    【Revit API】「はい」、「いいえ」、「キャンセル」ボタンの設置と処理分岐 - IT技術総合Wiki | CWiki <a href="http://www.g6v3ib51h9t2545wp78n221vd35qegtbs.org/">afvsyqefit</a> fvsyqefit http://www.g6v3ib51h9t2545wp78n221vd35qegtbs.org/ [url=http://www.g6v3ib51h9t2545wp78n221vd35qegtbs.org/]ufvsyqefit[/url]

    No.128 | guest | 2022-02-19 08:15:27

    sat essay <a href=https://yoursuperessay.com/>title generator for essay</a> rhetorical essay

    No.127 | guest | 2022-02-18 09:29:40

    best vpn in the world <a href=https://windowsvpns.com/>best lifetime vpn</a> spotflux vpn

    No.126 | guest | 2022-02-17 09:42:48

    spotflux vpn <a href=https://vpnsrank.com/>browser vpn free</a> best us vpn service

    No.125 | guest | 2022-02-16 09:27:51

    free vpn mac <a href=https://vpnshroud.com/>using vpn to buy steam games</a> vpn services

    No.124 | guest | 2022-02-15 11:43:08

    the best vpn service <a href=https://vpn4torrents.com/>hola vpn free</a> best mobile vpn

    No.123 | guest | 2022-02-14 13:40:40

    critical thinking involves quizlet <a href=https://uncriticalthinking.com/>benefits of critical thinking</a> critical thinking exercises

    No.122 | guest | 2022-02-13 14:49:27

    free youtube vpn <a href=https://topvpndeals.net/>free vpn canada</a> best vpn for torrenting free

    No.121 | guest | 2022-02-12 15:16:54

    college essay help <a href=https://topessayswriter.com/>community service essay</a> what is an argument essay

    No.120 | guest | 2022-02-11 16:43:28

    browser vpn free <a href=https://tjvpn.net/>free vpn for ubuntu</a> vpn pc free

    No.119 | guest | 2022-02-10 17:56:26

    best vpn windows <a href=https://thebestvpnpro.com/>best vpn protocol</a> best free vpn for utorrent

    No.118 | guest | 2022-02-09 18:54:59

    dating a bipilar gay guy <a href=https://speedgaydate.com/>popular gay dating apps for android</a> dating gay bear

    No.117 | guest | 2022-02-08 23:40:58

    best online casinos for real money <a href=https://onlinecasinohero.com/>no deposit casino online</a> win money online

    No.116 | guest | 2022-02-04 09:35:10

    keto diet pills amazon <a href=https://ketogenicdiets.net/>keto diet and acne</a> diet pop on keto

    No.115 | guest | 2022-02-03 12:18:03

    keto diet macros <a href=https://ketogenicdietinfo.com/>keto tone diet reviews</a> keto diet calories

    No.114 | guest | 2022-02-02 15:07:01

    keto pure diet <a href=https://ketogendiets.com/>keto diet psoriasis</a> carbs on keto diet

    No.113 | guest | 2022-02-01 17:09:08

    keto diet coke <a href=https://ketogendiet.net/>fruit on keto diet</a> 28 day keto diet

    No.112 | guest | 2022-01-31 19:48:41

    reflective essay <a href=https://howtowriteessaytips.com/>essay help</a> buy cheap essay

    No.111 | guest | 2022-01-30 22:45:57

    gay chat led roulette <a href=https://gaytgpost.com/>ffree gay chat</a> free gay radom ewb chat

    No.110 | guest | 2022-01-30 01:22:56

    how much is membership for gay dating sites <a href=https://gaysugardaddydatingsites.com/>free dating gay site</a> free gay dating in phoenix

    No.109 | guest | 2022-01-29 08:08:33

    gay macho dating <a href=https://gayprideusa.com/>gay dating apps for pc</a> black gay men dating sites

    No.108 | guest | 2022-01-29 00:13:34

    Doxycycline Amoxicillin Sinus Australia Klrllk <a href=http://abuyplaquenilcv.com/>Plaquenil</a> Chemotherapy BLOOD SYSTEM IN PERSON This is a rstperson account of a woman undergoing an autologous stem cell transplant. Lfprgv

    No.107 | guest | 2022-01-28 15:43:23

    senior gay women dating <a href=https://gaypridee.com/>gay men vs women dating</a> gay college humor dating girlfriend

    No.106 | guest | 2022-01-27 23:10:54

    gay men web dating sites <a href=https://gayfade.com/>bear gay dating site</a> where can a hungry gay bottom find a top dating

    No.105 | guest | 2022-01-27 06:23:18

    free phx gay chat <a href=https://gay-buddies.com>reddit gay sex chat room</a> b - gay chat

    No.104 | guest | 2022-01-26 08:07:17

    how many sentences are in a essay [url="https://essaysitesreviews.com"]write a essay for me[/url] how do you start an essay

    No.103 | guest | 2022-01-25 09:43:04

    how to write a descriptive essay <a href=https://essayscratch.com>how to format an essay</a> research essay example

    No.102 | guest | 2022-01-24 13:40:13

    <a href=http://aprednisonen.com/>buy prednisone withou prescription</a> Qayorl

    No.101 | guest | 2022-01-24 11:07:00

    critical-thinking <a href=https://criticalthinkinginstitute.com>critical thinking sample questions</a> critical thinking is the process of

    No.100 | guest | 2022-01-23 13:14:48

    quotes about critical thinking <a href=https://criticalthinkingbasics.com>critical thinking comic</a> the arts and critical thinking

    No.99 | guest | 2022-01-23 12:50:09

    http://www.alevitrasp.com roaree The job of the antibodies is to detect and help destroy substances that cause disease and sickness.

    No.98 | guest | 2022-01-22 14:54:14

    are you a critical thinking questions <a href=https://criticalthinking2020.net>hesi a2 critical thinking</a> components of critical thinking

    No.97 | guest | 2022-01-21 17:02:56

    free web vpn <a href=https://choosevpn.net>vpn master</a> trust zone vpn

    No.96 | guest | 2022-01-20 17:47:05

    zoom cams gay sex chat <a href=https://bjsgaychatroom.info>ierracial gay chat rooms</a> gay webcam chat sites

    No.95 | guest | 2022-01-20 11:46:58

    Buy Xenical Online New Zealand QueellPame http://www.apriligyn.com

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

    good argumentative essay examples <a href=https://anenglishessay.com>essay com</a> how to write a critical analysis essay

    No.93 | guest | 2022-01-18 21:12:06

    buy express vpn <a href=https://addonsvpn.com>free vpn into china</a> google vpn free

    No.92 | guest | 2022-01-03 04:07:40

    kamagra venta <a href="https://vskamagran.com ">dosis kamagra jelly</a> venta kamagra farmacia

    No.91 | guest | 2022-01-01 23:43:12

    act essay time <a href=https://essaytodo.com/?>essay editor free</a> what to write an essay on

    No.90 | guest | 2021-12-30 20:48:19

    persuasive essay <a href=https://dollaressays.com/?>writing a good college essay</a> overcoming essay

    No.89 | guest | 2021-12-28 18:28:17

    type my essay <a href=https://essayprepworkshop.com/?>write opinion essay</a> 1500 word essay

    No.88 | guest | 2021-12-27 16:26:31

    reflective essay on writing <a href=https://checkyouressay.com/?>what are the essay types</a> college essay format example

    No.87 | guest | 2021-12-22 16:46:30

    writing a literature essay <a href=https://casinoonlinek.com/?>writing an argumentative essay</a> help with essay writing

    No.86 | guest | 2021-12-21 15:55:40

    write essays for money <a href=https://onlinecasinoad.com/?>paid to write essays</a> writing essay for college

    No.85 | guest | 2021-12-21 01:54:51

    Amoxil Dosing

    No.84 | guest | 2021-12-20 23:05:46

    Propecia Over The Counter

    No.83 | guest | 2021-12-20 18:51:54

    help writing an essay <a href=https://casinoonlinet.com/?>reflective essay on writing</a> writing an opinion essay

    No.82 | guest | 2021-12-19 20:06:03

    writing college essay <a href=https://multiessay.com/?>writing an admissions essay</a> pay essay writing

    No.81 | guest | 2021-12-19 11:40:37

    levitra shipping

    No.80 | guest | 2021-12-17 23:51:58

    writing descriptive essays <a href=https://student-essay.com/?>argumentative essay writing</a> custom writing essays

    No.79 | guest | 2021-12-16 17:21:31

    write an essay introduction <a href=https://buy1essay.com/?>website that writes essays</a> write good essay

    No.78 | guest | 2021-12-15 15:58:25

    hot sex games online <a href=https://sexygamess.com/?>free no sign ul sex games</a> sex games on app store

    No.77 | guest | 2021-12-14 18:50:50

    great sex games <a href=https://sexgameszone.com/?>sex games for married couples</a> 3d horse sex games

    No.76 | guest | 2021-12-13 21:23:09

    strangers pool sex games <a href=https://sex4games.com/?>real people sex games</a> school girl sex games

    No.75 | guest | 2021-12-12 11:30:34

    simpson sex games <a href=https://winsexgames.com/?>sex games with cards</a> cousins sex games

    No.74 | guest | 2021-12-11 12:09:21

    sex games vegas feature 04 <a href=https://sexygamess.com/?>free mobile sex games</a> ben 10 sex games

    No.73 | guest | 2021-12-10 15:05:42

    <a href="http://buyneurontinis.com/ ">600mg gabapentin</a>

    No.72 | guest | 2021-12-08 04:08:14

    Cheap Generic Bentyl Need In Internet

    No.71 | guest | 2021-12-06 18:50:36

    Levitra Kaufen 10mg

    No.70 | guest | 2021-12-06 14:56:20

    keto cabbage rolls <a href=https://ketogenicdiets.net/?>alkaline keto diet</a> keto diet timeline

    No.69 | guest | 2021-12-06 12:08:08

    <a href="http://abuyzithromaxi.com/ ">zithromax alcohol</a>

    No.68 | guest | 2021-12-06 07:30:31

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

    No.67 | guest | 2021-12-05 21:49:53

    【Revit API】「はい」、「いいえ」、「キャンセル」ボタンの設置と処理分岐 - IT技術総合Wiki | CWiki iectgediyx http://www.gd3dhpy18t51vx4p7c86hv68w9j0q179s.org/ [url=http://www.gd3dhpy18t51vx4p7c86hv68w9j0q179s.org/]uiectgediyx[/url] <a href="http://www.gd3dhpy18t51vx4p7c86hv68w9j0q179s.org/">aiectgediyx</a>

    No.66 | guest | 2021-12-05 17:12:48

    keto cinnamon rolls <a href=https://ketogendiet.net/?>keto salmon</a> keto soups

    No.65 | guest | 2021-12-05 00:50:28

    Amoxicilline Clavulanate De Potassium

    No.64 | guest | 2021-12-04 15:43:20

    free sex games no registration <a href=https://sexgamesx.net/?>vidos games sex</a> virtual sex games

    No.63 | guest | 2021-11-30 18:27:56

    blowjob sex games <a href=https://sex4games.com/?>mario sex games</a> games of thrones sex scene

    No.62 | guest | 2021-11-29 22:21:21

    sex games japanese <a href=https://sex4games.com/?>japanese sex video games</a> dowlode sex games free

    No.61 | guest | 2021-11-26 21:40:40

    gay sex games college <a href=https://cybersexgames.net/?>ladies sex games</a> halo sex games

    No.60 | guest | 2021-11-16 20:26:25

    Viagra Pour Libido

    No.59 | guest | 2021-11-16 02:29:50

    where to order isotretinoin

    No.58 | guest | 2021-11-14 14:03:25

    <a href=https://aprednisonen.com/>side effects of prednisone in dogs</a>

    No.57 | guest | 2021-11-13 06:02:55

    <a href=http://abuypriligyhop.com/>Priligy</a>

    No.56 | guest | 2021-11-10 23:46:08

    example of an essay <a href=https://student-essay.com/?>ap lang synthesis essay rubric</a> writing essays for money

    No.55 | guest | 2021-11-10 01:50:16

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

    No.54 | guest | 2021-11-09 21:43:20

    Achat Pilule Viagra En Antibes

    No.53 | guest | 2021-11-09 11:21:46

    Cialis 20 Mg Paypal

    No.52 | guest | 2021-11-09 07:55:53

    Stromectol Online Brighter Tomorrow

    No.51 | guest | 2021-11-09 07:21:46

    <a href=http://atadalafishop.com/>tadalafil cialis from india</a>

    No.50 | guest | 2021-11-08 06:46:47

    <a href=http://vsildenshop.com/>viagra online original</a>

    No.49 | guest | 2021-11-07 15:45:08

    Don'T Take Amoxicillin With Milk

    No.48 | guest | 2021-11-06 10:00:43

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

    No.47 | guest | 2021-11-05 22:44:12

    how to write a college application essay <a href=https://dollaressays.com/?>community service essay</a> how to cite sources in an essay

    No.46 | guest | 2021-11-02 16:26:46

    <a href=https://astromectoli.com/>medication ivermectin 3mg</a>

    No.45 | guest | 2021-11-02 13:06:03

    Viagra Prezzo Migliore

    No.44 | guest | 2021-11-02 04:50:51

    <a href=http://abuypropecian.com/>will propecia work on hairline</a>

    No.43 | guest | 2021-11-01 10:27:14

    Trouver Levitra Generique

    No.42 | guest | 2021-11-01 08:40:41

    <a href=http://asildenshop.com/>viagra generic sales online</a>

    No.41 | guest | 2021-10-31 04:02:00

    viagra super force

    No.40 | guest | 2021-10-15 18:22:38

    christian editing services <a href=https://essaysnet.com/?>college essay help</a>

    No.39 | guest | 2021-10-12 14:44:11

    https://buyneurontine.com/ - gabapentin benefits

    No.38 | guest | 2021-10-11 11:18:17

    paper editing services <a href=https://essayghostwriter.com/?>write my paper org</a>

    No.37 | guest | 2021-10-10 12:37:50

    <a href=https://buyneurontine.com/>Neurontine</a>

    No.36 | guest | 2021-10-05 01:35:06

    http://prednisonebuyon.com/ - Prednisone

    No.35 | guest | 2021-10-04 08:50:09

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

    No.34 | guest | 2021-10-03 11:22:02

    Viagra Soft Generika

    No.33 | guest | 2021-10-02 05:34:35

    Cvs Propecia Online Pharmacy

    No.32 | guest | 2021-09-26 04:35:47

    http://buylasixshop.com/ - Lasix

    No.31 | guest | 2021-09-25 22:38:24

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

    No.30 | guest | 2021-09-25 20:39:23

    Ivermectin Online

    No.29 | guest | 2021-09-24 19:59:29

    <a href=https://buylasixshop.com/>generic lasix names</a>

    No.28 | guest | 2021-09-23 11:12:07

    Cytotec Prix Senegal

    No.27 | guest | 2021-09-22 21:55:52

    https://buyplaquenilcv.com/ - buy hydroxychloroquine amazon

    No.26 | guest | 2021-09-20 00:05:58

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

    No.25 | guest | 2021-09-18 20:16:27

    http://buypriligyhop.com/ - Priligy

    No.24 | guest | 2021-09-18 19:26:07

    https://buyzithromaxinf.com/ - Zithromax

    No.23 | guest | 2021-09-18 09:27:01

    <a href=http://buyzithromaxinf.com/>Zithromax</a>

    No.22 | guest | 2021-09-17 17:51:02

    Viagra Kaufen Ausland

    No.21 | guest | 2021-09-16 22:13:19

    "gay" speed dating singapore gay dating website <a href=http://gaydatinglosangeles.com/?>any free gay dating site</a>

    No.20 | guest | 2021-09-16 08:27:11

    Using Levitra Everyday

    No.19 | guest | 2021-09-14 00:17:20

    chicago dating gay gay dating site for educators <a href=http://datinggayservices.com/?>fake gay dating profile</a>

    No.18 | guest | 2021-09-12 10:19:40

    how long does levitra last

    No.17 | guest | 2021-09-12 10:10:33

    <a href=https://buytadalafshop.com/>cheapest place to buy cialis</a>

    No.16 | guest | 2021-09-10 05:56:49

    Zithromax Tablets

    No.15 | guest | 2021-09-09 20:22:49

    http://buysildenshop.com/ - Viagra

    No.14 | guest | 2021-09-09 05:15:09

    https://buytadalafshop.com/ - Cialis

    No.13 | guest | 2021-09-09 04:54:54

    gay men and online dating ppt tirana gay dating <a href=http://dating-gaym.com?>gay older men dating</a>

    No.12 | guest | 2021-09-07 07:31:46

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

    No.11 | guest | 2021-09-05 00:47:30

    <a href=https://buystromectolon.com/>purchase ivermectin 3mg</a>

    No.10 | guest | 2021-09-04 04:59:58

    gay dating sites usa gay bear portland dating <a href=http://freegaychatnew.com?>free gay men dating site</a>

    No.9 | guest | 2021-09-01 12:06:03

    http://buypropeciaon.com/ - propecia viagra combined

    No.8 | guest | 2021-08-31 20:28:03

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

    No.7 | guest | 2021-08-31 12:27:34

    https://buystromectolon.com/ - can i buy stromectol without rx

    No.6 | guest | 2021-08-29 05:56:57

    Cailis

    No.5 | guest | 2021-08-29 01:37:40

    Cialis Comprime

    No.4 | guest | 2021-08-16 00:57:05

    jacked gay dating bisexual guy dating a gay guy <a href=http://gaychatgay.com?>nsfw gay dating simulator</a>

    No.3 | guest | 2021-08-13 02:57:53

    gay dating in michigan free gay dating sites and sites <a href=http://gaychatrooms.org?>gay dating average looks</a>

    No.2 | guest | 2021-08-09 01:08:45

    gay dating sites for iphone dating a southern gay man <a href=http://gaychatgay.com?>disco gay dating site reviews</a>

    No.1 | guest | 2021-07-28 14:36:58

    free datingwebsites <a href=http://datingsitesfirst.com/?>best dating sites 2021</a>