{"id":264,"date":"2010-09-03T19:32:57","date_gmt":"2010-09-03T19:32:57","guid":{"rendered":"http:\/\/pycheung.com\/weblog\/?p=264"},"modified":"2012-12-10T17:16:32","modified_gmt":"2012-12-10T17:16:32","slug":"average-curve","status":"publish","type":"post","link":"https:\/\/www.pycheung.com\/weblog\/post\/264","title":{"rendered":"Average curve"},"content":{"rendered":"<p><img loading=\"lazy\" src=\"http:\/\/www.pycheung.com\/weblog\/wp-content\/uploads\/zrtn_001p6fe84e6d_tn.jpg\" style=\"BORDER-BOTTOM: #000000 1px; BORDER-LEFT: #000000 1px; BORDER-TOP: #000000 1px; BORDER-RIGHT: #000000 1px\" height=\"352\" width=\"600\" alt=\"vbaCrvInterpol.jpg\" border=\"0\"\/><\/p>\n<p>Have been working on a curve\/line macro in microstation. <br \/>Here I tried to take Rhino average curve function into Microstation as an exercise to learn something about vba in microstation. <br \/>Vba is not necessary since similar could be achieved through lofting two curves and extracting its isocurves<\/p>\n<p>Some thoughts on vba in microstation: <br \/>1. array difficult to work with (appending requires redim) <br \/>2. geometry have specific types with different properties i.e. lines\/curves can be a complex chain with arc, bsplinecurve, line (line:3 polyline:4) or just one of the element types. Extra coding is required to determine if it is a complex chain and get its subelement, then the type of the subelement have to be checked.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have been working on a curve\/line macro in microstation. Here I tried to take Rhino average curve function into Microstation as an exercise to learn something about vba in microstation&#8230;.<\/p>\n<div class=\"royalwp-readmore-wrap\"><a href=\"https:\/\/www.pycheung.com\/weblog\/post\/264\" class=\"royalwp-readmore\">Explore more <i class=\"far fa-hand-point-right\"><\/i><\/a><\/div>\n","protected":false},"author":2,"featured_media":1099,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[159],"tags":[59,66,116],"_links":{"self":[{"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/posts\/264"}],"collection":[{"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/comments?post=264"}],"version-history":[{"count":1,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/posts\/264\/revisions"}],"predecessor-version":[{"id":955,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/posts\/264\/revisions\/955"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/media\/1099"}],"wp:attachment":[{"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/media?parent=264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/categories?post=264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pycheung.com\/weblog\/wp-json\/wp\/v2\/tags?post=264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}