@unknownuser said:
Very powerfull tool, this very very usefully for construction with sketchup, Thanks Tak2hata, your creative brough the good things come to other
@unknownuser said:
Very powerfull tool, this very very usefully for construction with sketchup, Thanks Tak2hata, your creative brough the good things come to other
@dan rathbun said:
I actually have the bridge files installed in a common dir:
%(#000000)[C:\Program Files\Google\TBD\SU_Bridge]
.. and then I put a bridge_ext.rb file in each Plugin dir of the SU versions, that loads the files from the common dir.
That way SUB.EXE is always in the same place, and you do not need to change the path to it within Notepad++ regardless of whatever version of Sketchup is loaded.
[attachment=0:1pazsmqa]<!-- ia0 -->bridge_ext.rb<!-- ia0 -->[/attachment:1pazsmqa]
This is excellent way, and it 's greatness solution ,thanks for your kindly help
@thomthom said:
I split these posts off to a separate thread - just to untangle the conversation.
Thanks very much thom ,you lead me to solving
@unknownuser said:
@heven7_floor said:
I am looking for method to bridge SU8 with notepad++, and I see this article , might I ask anyone that how notepad++ can run code by TBD 's bridge, because I use well as ever in SU7(free) ,but it can't work in SU8(free)
Thank youIs possible, check this post: http://forums.sketchucation.com/viewtopic.php?f=169&t=6903#p137855
thanks dereeei
but I am already use TBD's bridge on SU8 as link by the same method like to SU7, but it 's not happen on SU8 , I doubt which I might missed something that should be adapte from this way to SU8
I am looking for method to bridge SU8 with notepad++, and I see this article , might I ask anyone that how notepad++ can run code by TBD 's bridge, because I use well as ever in SU7(free) ,but it can't work in SU8(free)
Thank you
I have used Notepad++ with TBD 's bridge to learn with ruby plugin, it worked well with SU7 , but after I d/l SU8 and try to setup bridge, I found problem that bridge can't run, I doubt that I missed something or SU8 can't bridge with Notepad++,Please suggest how I can do this..
thanks in advance.
@tig said:
If all of your circles are 'flat' then use
normal=Z_AXIS.clone
and it'll work just fine...
:+1: Thanks for you suggestion TIG, I would try as your comment :smile:
@heven7_floor said:
@tig said:
Line#210
normal=@inputpoints[0].normal
- will give an error as a 'point' doesn't have a 'normal' - that's a 'face'/'arc' method ??Also to tidy things up, replace
@GetPoint
- an instance constant - with@getPoint
- an instance variable...Thom and TIG have tried to help me find any error in code, you both warm me up there :+1: , this help is much to me , btw I can't find this cause :unamused: ,however this fill me persistency :tada: and I must solve this error in finally Thanks very much
After I re-thing about Thom & TIG 's commnet , I decide convert last entity to group, before repeat drawing ,it solve error when I draw new object again to last face , but I still don't know why I can't define method else on new face which close in other face
by the way I thanks you Thom & TIG for suggestion
@tig said:
Line#210
normal=@inputpoints[0].normal
- will give an error as a 'point' doesn't have a 'normal' - that's a 'face'/'arc' method ??Also to tidy things up, replace
@GetPoint
- an instance constant - with@getPoint
- an instance variable...
Thom and TIG have tried to help me find any error in code, you both warm me up there :+1: , this help is much to me , btw I can't find this cause :unamused: ,however this fill me persistency :tada: and I must solve this error in finally
Thanks very much
@thomthom said:
@heven7_floor said:
@cir_face = entities.add_face edges ----------> drawing it on existing face
if not(@cir_face.normal.samedirection? @dir_vec) ---------> get error "undefine method 'normal' on
nil
"This, "undefine method 'normal' on nil means that
@cir_face
is nil - which means your add_face method failed. When you get such errors it's worth inspecting the values of the variables you use in case they do not contain the data your expect.Could it be that the variable
edges
which you feedadd_face
does not have valid content to create a face?
Hi Gaieus
You just helpfully to support my post for looking , I appreciate and thanks for your kindly helpfulness , it was seem very easy to reading
Hi thom
Thanks very much , you explain that cause to me clearly , but I still doubt some time this code is functionally, when I draw this face in empty space and error in very time , when I try repeat drawing new face to existing faces
In my idea for coding, I attempt to coding a plug-in to help me to draw piping on desirous direction , I use "notepad++" to code plug-in to draw initial circle face in any direction and pull face long to cylinder as desire.
I got success it to draw in empty space , but fail in repeat with some condition as picture below
I just learning ruby code in SU, and found problem about draw a face onto existing face, I can identify any method in new face further , such as
<span class="syntaxdefault"><br /></span><span class="syntaxkeyword">@</span><span class="syntaxdefault">cir_face </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> entities</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">add_face edges </span><span class="syntaxkeyword">----------></span><span class="syntaxdefault"> drawing it on existing face<br /><br />if not</span><span class="syntaxkeyword">(@</span><span class="syntaxdefault">cir_face</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">normal</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">samedirection</span><span class="syntaxkeyword">?</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">@</span><span class="syntaxdefault">dir_vec</span><span class="syntaxkeyword">)</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">---------></span><span class="syntaxdefault"> get error </span><span class="syntaxstring">"undefine method 'normal' on nil "</span><span class="syntaxdefault"> <br /> puts </span><span class="syntaxstring">"change to initial direction"<br /></span><span class="syntaxdefault"> </span><span class="syntaxkeyword">@</span><span class="syntaxdefault">cir_face</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">reverse</span><span class="syntaxkeyword">!<br /></span><span class="syntaxdefault">end<br /></span>
any one please help me to explain why cause of this error , I don't understand why I can't undentify this method
thanks everyone in advance
Thanks , it is great script for mechanic model favour, this plug-in shall mostly advance to project 3d model in STD plan,
but I found some error happen, when I test by simple cylinder ,which was rotated a bit from origin , there are 1 error time of total 4 time
I love this script , and hope it could been tune-up ,but I am begin to learn for SU plugin codding , shame to less helping
Great Plug-in, thank your gift to make SU plugin to display the thing happen
@heven7_floor said:
@unclex said:
I'm Chinese
shame that rubbish BBSsound be true , I am try to read through its link, many people can't do anything with this script,
as previously with my reckless post , after I unzip that file in SU6 , and try as they claim again, it work !!
I apologize and regret for my reckless at previously posted
so I just use my dict. and read all words in chinese,
so it can translate that right status text is
"请选泽一条边线 或者 拖选两条边线后输入尺寸"
mean
"Please select one edge side line or drag select to both line to input dimension back"
and left status text for input first method select is
"长度“ mean "Length"
and left status text for second method is
"距离" mean "Distant for apart to be"
sorry for my bad
@unclex said:
I'm Chinese
shame that rubbish BBS
sound be true , I am try to read through its link, many people can't do anything with this script,
Thanks for tool icon manage plug-in, I am away face trouble, and long waiting for plug-in like this, THANK MUCH
Thanks for your wonderful created things
and kindly sharing for helpfully used in SU
Cheer
Thanks very much Thom
I doubt and wait the script like this for a long time, it is usefully for specific mat. what need edit/remove
Thanks chris this script is usefullness for user interface , and I though that it is good way for learning to develop SU more efficiency