Hello. I am new to building plug ins for Sketchup. I have figured out how to draw a simple line, but I would then like to have the dimensions of that line show with it. This is what I have.
What version of SketchUp are you using? SketchUp 14 is the first version to support adding Linear Dimensions in the Ruby API. So this simply can not be accomplished in earlier versions of SketchUp.
Open the Ruby Console from the Window menu, then run your code. Are there any error messages? Post them here.
However I went ahead and tried your example. The code I tried first is:
Which looks correct but gives me this not terribly helpful error message: #<ArgumentError: Invalid arguments>
I’ll give you a hint. The 3rd argument [0,0,0] is a Vector representing a parallel offset from the Edge at which to place the LinearDimension. What is the magnitude and direction of this Vector?