{"id":5593,"date":"2023-01-15T17:37:34","date_gmt":"2023-01-15T08:37:34","guid":{"rendered":"https:\/\/caddiary.com\/?p=5593"},"modified":"2023-01-21T16:17:34","modified_gmt":"2023-01-21T07:17:34","slug":"teigha-extension%ef%bc%88%e7%95%a5%e3%81%97%e3%81%a6tx%ef%bc%89%e3%81%8c%e3%83%87%e3%82%ad%e3%82%bf%e3%83%bc%ef%bc%81","status":"publish","type":"post","link":"https:\/\/caddiary.com\/?p=5593","title":{"rendered":"Teigha eXtension\uff08\u7565\u3057\u3066TX\uff09\u304c\u30c7\u30ad\u30bf\u30fc\uff01"},"content":{"rendered":"<p>BricsCAD\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u624b\u6cd5\u3068\u3057\u3066\u306f\u3068\u3063\u3066\u3082\u30ec\u30a2\u306aTX\uff08Teigha eXtension\uff09\u306e\u4f5c\u308a\u65b9\u304c\u3084\u3063\u3068\u308f\u304b\u3063\u305f\u306e\u3067\u3001\u4ee5\u4e0b\u3067\u8a73\u7d30\u3092\u8a18\u3059\u3002\u8a18\u4e8b\u7684\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u7d9a\u304d\u3068\u306a\u308b\u3002<br \/>\n<a href=\"https:\/\/caddiary.com\/?p=5554\" target=\"_blank\" rel=\"noopener noreferrer\">\u307e\u305a\u306fObjectARX\u3092\u5b66\u3093\u3067\u307f\u305f<\/a><br \/>\n<a href=\"https:\/\/caddiary.com\/?p=5586\" target=\"_blank\" rel=\"noopener noreferrer\">ARX\u3092BRX\u306b\u79fb\u690d\u3059\u308b<\/a><\/p>\n<p>\u958b\u767a\u74b0\u5883\u306fVisualStudio 2019\uff08C++\uff09\u3067\u3001BricsCAD V23\u3092\u52d5\u304b\u3059\u524d\u63d0\u3002<br \/>\nSDK\u3068\u3057\u3066TxSdk_Bcad_V23_1_05.zip\u304c\u5fc5\u8981\u306a\u306e\u3067\u3001Bricsys\u3067\u958b\u767a\u8005\u767b\u9332\u3057\u3066\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304a\u304f\u3002<\/p>\n<p>1\uff0eVisual Studio\u3067\u65b0\u898f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4f5c\u6210<br \/>\nMFC\u30c0\u30a4\u30ca\u30df\u30c3\u30af\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3001MFC\u62e1\u5f35DLL\u3068\u3059\u308c\u3070\u3088\u3044\u3002VS2019\u3067\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u304cx86\u306a\u306e\u3067\u3001x64\u306b\u5207\u308a\u66ff\u3048\u3066\u304a\u304f\u3002<\/p>\n<p>2\uff0ecpp\u306b\u51e6\u7406\u3092\u66f8\u304d\u8fbc\u3080<br \/>\n\u307e\u305a\u306f\u3001\u4f55\u3082\u8003\u3048\u305a\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u304a\u3051\u3070\u3088\u3044\u3002<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\n\/\/ TxTest.cpp : DLL \u306e\u521d\u671f\u5316\u30eb\u30fc\u30c1\u30f3\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\r\n\/\/\r\n\r\n#include &quot;pch.h&quot;\r\n#include &quot;framework.h&quot;\r\n\r\n\/\/#ifdef _DEBUG\r\n\/\/#define new DEBUG_NEW\r\n\/\/#endif\r\n\r\n#include &quot;OdaCommon.h&quot;\r\n#include &quot;RxDynamicModule.h&quot;\r\n#include &quot;DbCommandContext.h&quot;\r\n#include &quot;Ed\/EdCommandStack.h&quot;\r\n\r\n#include &quot;DbBlockTableRecord.h&quot;\r\n#include &quot;DbText.h&quot;\r\n\r\nvoid cmdInsertTableToDatabase(OdEdCommandContext* pCmdCtx)\r\n{\r\n    OdDbCommandContextPtr pDbCmdCtx(pCmdCtx);\r\n    OdDbUserIO* pIO = pDbCmdCtx-&gt;dbUserIO();\r\n    OdDbDatabase* pDb = pDbCmdCtx-&gt;database();\r\n    OdDbBlockTableRecordPtr pModel(pDb-&gt;getModelSpaceId().safeOpenObject(OdDb::kForWrite));\r\n\r\n    OdDbTextPtr pText = OdDbText::createObject();\r\n    pText-&gt;setDatabaseDefaults(pDb);\r\n    pText-&gt;setPosition(OdGePoint3d(100, 100, 0));\r\n    pText-&gt;setTextString(_T(&quot;Hello World!!&quot;));\r\n    pModel-&gt;appendOdDbEntity(pText);\r\n}\r\n\r\n\/\/To register a command class\r\n\r\nclass CDrxTestModule : public OdRxModule\r\n{\r\npublic:\r\n    void initApp()\r\n    {\r\n        odedRegCmds()-&gt;addCommand(&quot;TXSAMPLE&quot;, &quot;InsertText&quot;, &quot;InsertText&quot;, OdEdCommand::kTransparent, (OdEdCommandFunction*)cmdInsertTableToDatabase, this);\r\n    }\r\n\r\n    void uninitApp()\r\n    {\r\n        odedRegCmds()-&gt;removeGroup(&quot;TXSAMPLE&quot;);\r\n    }\r\n};\r\nODRX_DEFINE_DYNAMIC_MODULE(CDrxTestModule);\r\n<\/pre>\n<p>\u3053\u306e\u4e2d\u306e\u51e6\u7406\u3053\u305d\u304c\u91cd\u8981\u3067\u3042\u308a\u3001\u3053\u308c\u304c\u7406\u89e3\u3067\u304d\u306a\u3044\u3068\u4f55\u3082\u3067\u304d\u3093\u306e\u3060\u304c\u3001ARX\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u3060\u3063\u305f\u3089\u89e3\u8aac\u306a\u3057\u3067\u3082\u308f\u304b\u308b\u3063\u3057\u3087\u3002<\/p>\n<p>3\uff0e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u3044\u3058\u308b<br \/>\n\u300e\u8a73\u7d30\u30d7\u30ed\u30d1\u30c6\u30a3\u21d2\u30bf\u30fc\u30b2\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u62e1\u5f35\u5b50\u300f<br \/>\n.dll \u21d2 .tx<br \/>\n\u300eC\/C++\u21d2\u5168\u822c\u21d2\u8ffd\u52a0\u306e\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u300f<br \/>\n..\\..\\BricsCAD\\TxSdk_Bcad_V23_1_05\\Include \u203bSDK\u306e\u4f4d\u7f6e\u3092\u76f8\u5bfe\u53c2\u7167<br \/>\n\u300eC\/C++\u21d2\u30d7\u30ea\u30d7\u30ed\u30bb\u30c3\u30b5\u21d2\u30d7\u30ea\u30d7\u30ed\u30bb\u30c3\u30b5\u306e\u5b9a\u7fa9\u300f<br \/>\n_TOOLKIT_IN_DLL_<br \/>\n\u300eC\/C++\u21d2\u8a73\u7d30\u8a2d\u5b9a\u21d2\u6307\u5b9a\u306e\u8b66\u544a\u3092\u7121\u52b9\u306b\u3059\u308b\u300f<br \/>\n4819<br \/>\n\u300e\u30ea\u30f3\u30ab\u30fc\u21d2\u5168\u822c\u21d2\u8ffd\u52a0\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u300f<br \/>\n..\\..\\BricsCAD\\TxSdk_Bcad_V23_1_05\\vc142x64 \u203bSDK\u306e\u4f4d\u7f6e\u3092\u76f8\u5bfe\u53c2\u7167<br \/>\n\u300e\u30ea\u30f3\u30ab\u30fc\u21d2\u5165\u529b\u21d2\u8ffd\u52a0\u306e\u4f9d\u5b58\u30d5\u30a1\u30a4\u30eb\u300f<br \/>\nTD_Alloc.lib<br \/>\nTD_Db.lib<br \/>\nTD_Ge.lib<br \/>\nTD_Root.lib<br \/>\nTD_DbRoot.lib<br \/>\nTD_DbCore.lib<br \/>\nTD_DbEntities.lib<br \/>\n\u203b\u521d\u671f\u72b6\u614b\u3067\u306f\u3053\u3093\u306a\u306b\u3044\u3089\u3044\u306a\u3044\u304b\u3082\u3057\u308c\u3093\u304c\u3001\u30ea\u30f3\u30af\u30a8\u30e9\u30fc\u304c\u51fa\u306a\u3044\u30ec\u30d9\u30eb\u3067\u3044\u308d\u3044\u308d\u7d44\u307f\u8fbc\u3093\u3060<\/p>\n<p>4\uff0e\u30d3\u30eb\u30c9\u3059\u308b<br \/>\n\u30d3\u30eb\u30c9\u7d50\u679c\u306f\u3001\\x64\\Debug\u306e\u4e2d\u306bTxTest.tx\u306e\u3088\u3046\u306a\u540d\u524d\u3067\u51fa\u6765\u4e0a\u304c\u308b\u3002<\/p>\n<p>5\uff0eBricsCAD\u3067\u52d5\u4f5c\u3055\u305b\u308b<br \/>\nAPPLOAD\u3057\u3066\u30b3\u30de\u30f3\u30c9InsertText\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u306f\u3044\u3053\u306e\u901a\u308a\u3002<br \/>\n<a href=\"https:\/\/caddiary.com\/wp-content\/uploads\/2023\/01\/hellow2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/caddiary.com\/wp-content\/uploads\/2023\/01\/hellow2.png\" alt=\"\" width=\"1125\" height=\"758\" class=\"alignnone size-full wp-image-5595\" srcset=\"https:\/\/caddiary.com\/wp-content\/uploads\/2023\/01\/hellow2.png 1125w, https:\/\/caddiary.com\/wp-content\/uploads\/2023\/01\/hellow2-300x202.png 300w, https:\/\/caddiary.com\/wp-content\/uploads\/2023\/01\/hellow2-1024x690.png 1024w, https:\/\/caddiary.com\/wp-content\/uploads\/2023\/01\/hellow2-768x517.png 768w, https:\/\/caddiary.com\/wp-content\/uploads\/2023\/01\/hellow2-980x660.png 980w\" sizes=\"auto, (max-width: 1125px) 100vw, 1125px\" \/><\/a><\/p>\n<p>\u3053\u306e\u3078\u3093\u306e\u60c5\u5831\u306f\u3001\u65e5\u672c\u8a9e\u30b5\u30a4\u30c8\u306b\u306f\u5168\u304f\u898b\u3064\u304b\u3089\u306a\u304b\u3063\u305f\u3002Bricsys\u306e\u82f1\u8a9e\u554f\u5408\u305b\u3057\u305f\u7d50\u679c\u3068\u3001\u4ee5\u4e0b\u306e\u82f1\u8a9e\u30b5\u30a4\u30c8\u304b\u3089\u60c5\u5831\u53ce\u96c6\u3057\u305f\u306e\u3068\u3001\u304a\u3044\u3089\u306eTeigha\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b9f\u7e3e\u3092\u7d50\u96c6\u3055\u305b\u3066\u3001\u3084\u3063\u3068\u3053\u3055\u3067\u304d\u305f\u3068\u3044\u3046\u4ee3\u7269\u3002<br \/>\n<a href=\"https:\/\/www.graebert.com\/blog\/white-paper\/how-to-migrate-code-from-arx-to-c-tx-with-ares-commanders-api-method-1\/\" target=\"_blank\" rel=\"noopener noreferrer\">How to migrate code from ARX to C++ Tx with ARES Commander\u2019s API \u2013 Method # 1<\/a><\/p>\n<p>APPLOAD\u3055\u3048\u3059\u308c\u3070\u4efb\u610f\u306e\u30b3\u30de\u30f3\u30c9\u304c\u52d5\u304f\u3088\u3046\u306b\u306a\u3063\u3066\u3001\u305d\u306e\u30b3\u30de\u30f3\u30c9\u306f\u30ab\u30ec\u30f3\u30c8\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff08\u3064\u307e\u308adwg\u305d\u306e\u3082\u306e\uff09\u64cd\u4f5c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3093\u3067\u3001\u3042\u3068\u306f\u305d\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5bfe\u3057\u3066\u3001jww\u304b\u3089\u8aad\u307f\u8fbc\u3093\u3060\u60c5\u5831\u3092\u66f8\u304d\u8fbc\u3081\u3070\u3044\u3044\u3068\u3044\u3046\u3053\u3068\u3002\u3059\u3067\u306bTeigha\u30ec\u30d9\u30eb\u3067\u306ejww\u21d2dwg\u30b3\u30f3\u30d0\u30fc\u30bf\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u304c8\u5272\u578b\u3067\u304d\u3066\u3044\u308b\u3093\u3067\u3001\u307b\u307c\u305d\u306e\u307e\u307e\u79fb\u690d\u3059\u308c\u3070\u3088\u3044\u3002Teigha\u3092BRX\u306b\u79fb\u690d\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u3051\u3063\u3053\u3046\u306a\u4f5c\u696d\u91cf\u306b\u306a\u308b\u3068\u3053\u308d\u3001Teigha\u3092TX\u306b\u3059\u308b\u3060\u3051\u3060\u304b\u3089\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u90e8\u5206\u3060\u3051\u76f4\u305b\u3070\u3088\u3044\u3002TX\u3092\u4f53\u5f97\u3067\u304d\u305f\u306e\u3067\u3001\u3044\u3088\u3044\u3088\u672c\u683c\u7684\u306a\u958b\u767a\u306b\u5165\u308c\u308b\u305e\u3088\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>BricsCAD\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u624b\u6cd5\u3068\u3057\u3066\u306f\u3068\u3063\u3066\u3082\u30ec\u30a2\u306aTX\uff08Teigha eXtension\uff09\u306e\u4f5c\u308a\u65b9\u304c\u3084\u3063\u3068\u308f\u304b\u3063\u305f\u306e\u3067\u3001\u4ee5\u4e0b\u3067\u8a73\u7d30\u3092\u8a18\u3059\u3002\u8a18\u4e8b\u7684\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u7d9a\u304d\u3068\u306a\u308b\u3002 \u307e\u305a\u306fObjectARX &#8230; <\/p>\n","protected":false},"author":1,"featured_media":5542,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1131],"tags":[],"class_list":["post-5593","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bricscad"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/caddiary.com\/wp-content\/uploads\/2022\/12\/bricsCAD.png","jetpack_shortlink":"https:\/\/wp.me\/p8RkjM-1sd","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/caddiary.com\/index.php?rest_route=\/wp\/v2\/posts\/5593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/caddiary.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/caddiary.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/caddiary.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/caddiary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5593"}],"version-history":[{"count":4,"href":"https:\/\/caddiary.com\/index.php?rest_route=\/wp\/v2\/posts\/5593\/revisions"}],"predecessor-version":[{"id":5599,"href":"https:\/\/caddiary.com\/index.php?rest_route=\/wp\/v2\/posts\/5593\/revisions\/5599"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/caddiary.com\/index.php?rest_route=\/wp\/v2\/media\/5542"}],"wp:attachment":[{"href":"https:\/\/caddiary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/caddiary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/caddiary.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}