{"id":294,"date":"2017-11-21T15:01:47","date_gmt":"2017-11-21T15:01:47","guid":{"rendered":"http:\/\/cadsupport.ru\/en\/?p=294"},"modified":"2017-11-21T15:04:25","modified_gmt":"2017-11-21T15:04:25","slug":"tekla-api-work-drawing-list","status":"publish","type":"post","link":"http:\/\/cadsupport.ru\/en\/tekla-api-work-drawing-list\/","title":{"rendered":"Tekla Api how to work with Drawing List"},"content":{"rendered":"<p>If you need access to selected drawings in list of Tekla Drawings &#8211; next piece of code will be useful<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"csharpcode\" style=\"padding-left: 30px;\">{\r\n\r\n<span style=\"color: #0000ff;\">var<\/span> CurrentDrawingHandler = new TSD.DrawingHandler(); \/\/Get handler - seems easy.\r\n\r\n<span style=\"color: #0000ff;\">var<\/span> drawingsEnum = CurrentDrawingHandler.GetDrawingSelector().GetSelected(); \/\/Get a list of selected drawings\r\n\r\n<span style=\"color: #0000ff;\">while<\/span>(drawingsEnum.MoveNext()) \/\/goest through that list\r\n{\r\n<span style=\"color: #0000ff;\">var<\/span> _drawing = drawingsEnum.Current as TSD.Drawing;\u00a0 \/\/here is a particular drawing which we coudl work width\r\n<span style=\"color: #0000ff;\">string<\/span> some_string = <span style=\"color: #0000ff;\">string.<\/span>Empty;\r\n_drawing .GetUserProperty(<span style=\"color: #800000;\">\"Default\"<\/span>, ref some_string );\/\/let's do sometring, get some UDA for example.\r\n\r\nMessageBox.Show(some_string ); \/\/And show it\r\n}\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you need access to selected drawings in list of Tekla Drawings &#8211; next piece of code will be useful &nbsp; { var CurrentDrawingHandler = new TSD.DrawingHandler(); \/\/Get handler &#8211; seems easy. var drawingsEnum = CurrentDrawingHandler.GetDrawingSelector().GetSelected(); \/\/Get a list of selected drawings while(drawingsEnum.MoveNext()) \/\/goest through that list { var _drawing = drawingsEnum.Current as TSD.Drawing;\u00a0 \/\/here [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5],"tags":[],"class_list":["post-294","post","type-post","status-publish","format-standard","hentry","category-programing","category-tekla"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Tekla Api how to work with Drawing List - CadSupport<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/cadsupport.ru\/en\/tekla-api-work-drawing-list\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tekla Api how to work with Drawing List - CadSupport\" \/>\n<meta property=\"og:description\" content=\"If you need access to selected drawings in list of Tekla Drawings &#8211; next piece of code will be useful &nbsp; { var CurrentDrawingHandler = new TSD.DrawingHandler(); \/\/Get handler - seems easy. var drawingsEnum = CurrentDrawingHandler.GetDrawingSelector().GetSelected(); \/\/Get a list of selected drawings while(drawingsEnum.MoveNext()) \/\/goest through that list { var _drawing = drawingsEnum.Current as TSD.Drawing;\u00a0 \/\/here [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/cadsupport.ru\/en\/tekla-api-work-drawing-list\/\" \/>\n<meta property=\"og:site_name\" content=\"CadSupport\" \/>\n<meta property=\"article:published_time\" content=\"2017-11-21T15:01:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-11-21T15:04:25+00:00\" \/>\n<meta name=\"author\" content=\"DonJad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DonJad\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/cadsupport.ru\/en\/tekla-api-work-drawing-list\/\",\"url\":\"http:\/\/cadsupport.ru\/en\/tekla-api-work-drawing-list\/\",\"name\":\"Tekla Api how to work with Drawing List - CadSupport\",\"isPartOf\":{\"@id\":\"http:\/\/cadsupport.ru\/en\/#website\"},\"datePublished\":\"2017-11-21T15:01:47+00:00\",\"dateModified\":\"2017-11-21T15:04:25+00:00\",\"author\":{\"@id\":\"http:\/\/cadsupport.ru\/en\/#\/schema\/person\/b57bc479c7822ae8efbc5a5b624a3b8a\"},\"breadcrumb\":{\"@id\":\"http:\/\/cadsupport.ru\/en\/tekla-api-work-drawing-list\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/cadsupport.ru\/en\/tekla-api-work-drawing-list\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/cadsupport.ru\/en\/tekla-api-work-drawing-list\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/cadsupport.ru\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tekla Api how to work with Drawing List\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/cadsupport.ru\/en\/#website\",\"url\":\"http:\/\/cadsupport.ru\/en\/\",\"name\":\"CadSupport\",\"description\":\"smart solutions for engineering duties\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/cadsupport.ru\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/cadsupport.ru\/en\/#\/schema\/person\/b57bc479c7822ae8efbc5a5b624a3b8a\",\"name\":\"DonJad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/cadsupport.ru\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b22cdec01f0612764c8b311b89954151bfb042524440d622849757864e132a55?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b22cdec01f0612764c8b311b89954151bfb042524440d622849757864e132a55?s=96&d=mm&r=g\",\"caption\":\"DonJad\"},\"url\":\"http:\/\/cadsupport.ru\/en\/author\/donjad\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tekla Api how to work with Drawing List - CadSupport","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/cadsupport.ru\/en\/tekla-api-work-drawing-list\/","og_locale":"en_US","og_type":"article","og_title":"Tekla Api how to work with Drawing List - CadSupport","og_description":"If you need access to selected drawings in list of Tekla Drawings &#8211; next piece of code will be useful &nbsp; { var CurrentDrawingHandler = new TSD.DrawingHandler(); \/\/Get handler - seems easy. var drawingsEnum = CurrentDrawingHandler.GetDrawingSelector().GetSelected(); \/\/Get a list of selected drawings while(drawingsEnum.MoveNext()) \/\/goest through that list { var _drawing = drawingsEnum.Current as TSD.Drawing;\u00a0 \/\/here [&hellip;]","og_url":"http:\/\/cadsupport.ru\/en\/tekla-api-work-drawing-list\/","og_site_name":"CadSupport","article_published_time":"2017-11-21T15:01:47+00:00","article_modified_time":"2017-11-21T15:04:25+00:00","author":"DonJad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"DonJad"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/cadsupport.ru\/en\/tekla-api-work-drawing-list\/","url":"http:\/\/cadsupport.ru\/en\/tekla-api-work-drawing-list\/","name":"Tekla Api how to work with Drawing List - CadSupport","isPartOf":{"@id":"http:\/\/cadsupport.ru\/en\/#website"},"datePublished":"2017-11-21T15:01:47+00:00","dateModified":"2017-11-21T15:04:25+00:00","author":{"@id":"http:\/\/cadsupport.ru\/en\/#\/schema\/person\/b57bc479c7822ae8efbc5a5b624a3b8a"},"breadcrumb":{"@id":"http:\/\/cadsupport.ru\/en\/tekla-api-work-drawing-list\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/cadsupport.ru\/en\/tekla-api-work-drawing-list\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/cadsupport.ru\/en\/tekla-api-work-drawing-list\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/cadsupport.ru\/en\/"},{"@type":"ListItem","position":2,"name":"Tekla Api how to work with Drawing List"}]},{"@type":"WebSite","@id":"http:\/\/cadsupport.ru\/en\/#website","url":"http:\/\/cadsupport.ru\/en\/","name":"CadSupport","description":"smart solutions for engineering duties","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/cadsupport.ru\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/cadsupport.ru\/en\/#\/schema\/person\/b57bc479c7822ae8efbc5a5b624a3b8a","name":"DonJad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/cadsupport.ru\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b22cdec01f0612764c8b311b89954151bfb042524440d622849757864e132a55?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b22cdec01f0612764c8b311b89954151bfb042524440d622849757864e132a55?s=96&d=mm&r=g","caption":"DonJad"},"url":"http:\/\/cadsupport.ru\/en\/author\/donjad\/"}]}},"_links":{"self":[{"href":"http:\/\/cadsupport.ru\/en\/wp-json\/wp\/v2\/posts\/294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/cadsupport.ru\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/cadsupport.ru\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/cadsupport.ru\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/cadsupport.ru\/en\/wp-json\/wp\/v2\/comments?post=294"}],"version-history":[{"count":3,"href":"http:\/\/cadsupport.ru\/en\/wp-json\/wp\/v2\/posts\/294\/revisions"}],"predecessor-version":[{"id":298,"href":"http:\/\/cadsupport.ru\/en\/wp-json\/wp\/v2\/posts\/294\/revisions\/298"}],"wp:attachment":[{"href":"http:\/\/cadsupport.ru\/en\/wp-json\/wp\/v2\/media?parent=294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/cadsupport.ru\/en\/wp-json\/wp\/v2\/categories?post=294"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/cadsupport.ru\/en\/wp-json\/wp\/v2\/tags?post=294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}