News:

Be sure your post is relevant to the current discussion.  Create a new topic within the appropriate board if you are unsure.

Main Menu

support is needed

Started by ibruethsch, April 30, 2012, 02:52:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ibruethsch

Hello IMSIDesign
you implemented RUBY in TC with version 18.
Up to now, no useful thread has been coming up.
I don´t think that is why we users are unable to create useful code. It is cause the lack of documentation.

I assume that the ruby engine is needed to adapt TC-Objectmodel to the sketchup-Objectmodel - am I right?
If so - the last 16 month nobody was interested in that.
Please give us access to the turbocad-objectmodel!!

Please give us access to the com-objects

something like
---------------------------------------
  require 'win32ole'
def testexcel
  excel = WIN32OLE.connect('Excel.Application')
  excel.visible = true
  workbook = excel.Workbooks.Add();
  worksheet = workbook.Worksheets(1);
  worksheet.Range("A1:D1").value = ["North","South","East","West"];
  worksheet.Range("A2:B2").value = [5.2, 10];
  worksheet.Range("C2").value = 8;
  worksheet.Range("D2").value = 20;

  range = worksheet.Range("A1:D2");
  range.select
  chart = workbook.Charts.Add;

  workbook.saved = true;

  excel.ActiveWorkbook.Close(0);
  excel.Quit();
end
-------------------------------------------
should work - but it doesn't

Please make the .rb in the folder \Program\RubyScripts  in TC19 accessible like in TC18 (as a dropdown menu). Then it is possible to  start them with a shortkey.

Please tell us wihich version of Ruby is implemented? 1.8 or 1.9 or 2.0?

best regards
Bernd

kchapman

With version 19, we made the TurboCAD .NET API available via IronRuby. The old "SketchUp-like" API is also (mostly) still available, but deprecated -- it just wasn't a good fit for TurboCAD's API. Documentation will be forthcoming as time permits. I'll be jumping back into the SDK waters starting in June, so you can expect to start seeing new information across all aspects of the SDK around then.


ibruethsch

Hi Kevan
thanks for the news.
>>..you can expect to start seeing new information across all aspects of the SDK around then.<<
that sound good.
Loocking forward to that
Bernd

Michael2011

well, me too!

It´s about time to get the hands on a few functions to make Turbocad the workhorse for architects that it could be :)