I guess you have to download the file to local disk,then apply it in your model, of course, you can use ruby to do it automaticly
Latest posts made by bigcatln
-
RE: How download and apply material from html page?
-
Overlapping detection
I want to know if there is any easy way to decide whether a group(or componentinstance) overloap with other group?
I find a way using trim function of Group to decide if two group is overlapping, but if there are a lots of group, I have to iterate every group, it is not so efficient.
so I am looking for more elegant solution. -
RE: Need openssl.so
Thanks , TIG and Dan, I have decided to install Ruby, though it seem a little complex to me
-
Need openssl.so
Can anyone drop me openssl.so which is a necessary part of https.rb, used in win32 platform?
I searched the install dir of ruby1.86,but didn't find this file, and I googled it without finding it
thanks -
RE: How to find loops edges from selection
thanks TIG, I worked it out by classify_point and raytest
-
RE: How to find loops edges from selection
Thank you very much,TIG
It works just like what I want,I don't find any problem up to now in my application
The "temp grouping " method is very useful trick which avoiding unwanted face being created.I pull each face a height, and group it, then I run into another problem, I try to delete the overlap face of each group,but failed.
I try to use raytest method, but it only work when then two loops don't connect to each othergrps.each{|grp| killfaces=[] grp.entities.each{|fa| if fa.is_a? Sketchup;;Face basept=fa.bounds.center.transform! grp.transformation ray = [basept, fa.normal] item = model.raytest ray if item!=nil dist=basept.distance item[0] if dist < mingap killfaces.push fa item[1][1].parent.entities. erase_entities item[1][1] if item[1][1].is_a? Sketchup;;Face end end end } grp.entities.erase_entities killfaces }
any good idea?
-
How to find loops edges from selection
Hi, everyone
I got a problem in trying to get loops edges from a set of selection which may have more than one loops
, and the loops may share common edge.My target is adding a face for each loops,it is a challenge for me,I worked for some time without no progress.
Can anyone give some advice?Thanks in advance
-
RE: Question about order in selection
I am also in the same trouble
My solution is: select firt, then press the tool button to active my tool then use the pickhelper do another select operation,press return key to finishIt is not a nice solution,because I found it is hard to do a box crossing selection by ruby
-
RE: How to do a crossing box select by ruby?
@tig said:
Thereafter your troubles will only increase... then you need to find everything inside that 'box' [or perhaps intersecting the box] depending on whether or not the picking is left-right or right-left - just like the Select tool... Why not get the user to 'preselect' the required objects and then run your code on that selection ?
In fact I did preselect object!
I am making a trim tool which use a number of groups trimmed by another number of groups
So I need select a number of groups first then select my tool ,and then select another number of groups, put return key to do the trim at last.
that need select groups while my tool is still active. and I want the select operation just like what the select tool do. -
How to do a crossing box select by ruby?
I want to make a script that do crossing box select just like what select tool in Sketchup do ,but I can't find a good method to do it.
I did it by PickHelper firstly,but it only can pick from a point,while now I need pick from a retangle ,how can I do that?
any idea?thanx in advance