@wawmsey7 said:
> edge1.transform!(tr)
>
again the edge draws fine but my rotation code throws up an error!
Matt, have the Ruby Console open when testing code, and paste the error message in the post, if your asking about Ruby errors.
The first error message line in the backtrace will contain a sub-string like:
“filename:lineNo: inmethod'”or “filename:lineNo.”`
which tells you exactly what ruby script, it's line number, and possibly the method that it occurred within.
The message tells you (usually) exactly what went wrong.
For example,
Error: #<NoMethodError: undefined methodtransform!' for #Sketchup::Edge:0x00000009e8e690>... tells you that the Sketchup::Edge class has no instance method named " transform!`".
So at that point your quickest way to resolve your dilemma, is to go to the API's Method index, and find methods in the "T" category that have to do with transformations.
See Exception class, backtrace() method.
And more generally dealing with exceptions.