Will set model to a reference to the active model. VALUE model = rb_funcall(sketchup, rb_intern("active_model"), 0) This means in your Ruby extension you can call all of the Ruby functions you normally have. The key thing for dealing with Ruby in SU, is that Ruby has been bolted-in (in a good way) to the underlying C++ SU application. It deliberately starts with just doing some simple math to get your confidence. Ruby is itself written in C so even if you choose to use C++, you need to do C calls into Ruby. (BTW C is a procedural language, a functional language is something else entirely)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |