dear mates ...I havn't poblished the process yet...so if you are interested to do a co-work plz email me at : majid - ye ga negi (at) yah... com so that i could share you the process
Hi Rob,
All we can go by is the API docs - which say nothing about being able to specify options on exporting. It just doesn't appear to be supported.
http://code.google.com/apis/sketchup/docs/ourdoc/model.html#export
@jim said:
One technique I have used is to pass the name of the Ruby callback to the Javascript. In many cases, you can use a single Javascript function to call any number of Ruby callbacks.
Neat trick, and that tells me exactly what I wanted to know. Now where to we go to get the docs to say "add one or more callbacks ..."?
@chris fullmer said:
It has to be put into a class and you have to instantiate the class as a tool. And you also have to attach an observer to the Sketchup object.
Check out the full example in the introduction paragraph on that page. It shows better how to use it in context.
Chris
Apart from onQuit is broken on Mac OSX which is annoying.
Also be aware that these "stuff has finished / been deleted" generally get invoked after the fact so don't expect to get useful info from the objects in question.
Adam
@rickw said:
If you give all your form fields an ID, you can reference them in ruby without relying on the info passed in the callback. In fact, there are times I don't pass any data in the callback itself, instead using
dialog.get_element_value("myfield")
to access the information I need. I only pass the info through the callback if the info is limited to one data set, and then only occasionally.
Excellent tip. Thanks.
Ok, Thanks Chris.
Of course that is not the answer I wanted to see, considering all of the possibilities that have arisen in this forum. But, you never know...
@tig said:
Sorry - I made a typo, try this... there was loose ) after entities !
Sketchup.active_model.active_entities.each{|e|e.explode if e.class==Sketchup::ComponentInstance}
wewt! thanks man that worked a dream. ive spent so long on this thanks
@chris fullmer said:
So if you ever hit sort by color, it will be on that next time you open SU.
Beautiful! No more confusion here, I was sorted by color (whatever that means). Now I'm sorted by name, as everyone has been saying.
Well, Pilou:
My version of this plugin just sits there and I have tried all combos of group, no group, select all, select some, select none and right click select operation. No results.
Just for your info.
mitcorb