hmm .typename works fine for me. Have'nt got much expierence with the other suggested methods though
Posts
-
RE: What is the best way to find the type of an entity
-
RE: Ending a tool
@chris fullmer said:
Excellent, glad you got it working. It sounded like you were looking for something much complicated than activating the selection tool.
Chris
Well at first I wanted it to be more complex indeed. But i found out that i could do what i wanted by ending the tool with that commando.
I had tried the pop tool but didnt get it working. But since you have to select something in order to use my tool selectSelectionTool gives the same result
Thanks for your thoughts though!regards,
Quintus -
RE: Ending a tool
Solved it with a Sketchup.send_action("selectSelectionTool:").
-
Ending a tool
Hello there ruby scripters,
Im having difficulties in ending a selfmade tool.
I would like that the tool returns to the last selected tool after finishing a list of methods.
It is not really an option for me to rescript the tool to a method.Another problem for me is getting to start the list of methods only when 1 component instance (or 1 selection even) is selected, when no of multiple instances are selected it should prompt you to select one instance.
my code is something like this:if $selectie.single_object? == false
UI.beep
UI.messagebox("please select only 1 ")
Sketchup.active_model.selection.clear
else
method1
method2
endBut now if not 1 instance is selected it keeps hanging in the tool. How do i fix it to wait untill one thing is clicked and then execute the methods?
Kind regards,
Quintus -
RE: DC Exploration 2 - Movement! (rotation, linear)
Hmm this is strange,
I found this door example of Remus and in there a mix of positive and negative rotations works just fine!
Maybe its a nesting problem.
-
RE: DC Exploration 2 - Movement! (rotation, linear)
Thanks for helping finding the answer to my question here Jim!
I had this problem a couple of times allready. mainly with opening windows and sortalike.
Im happy with the workaround of Jim but I guess it shouldnt be necessary.I have some troubles with another DC of mine too. Will post it soon so you pro's can give it a look
Regards
Quintus