Sign in to follow this  
Followers 0
nsaeidi

Need Help with AutoIT and Rhinoceros

8 posts in this topic

Hi everyone

I am trying to use AUTOIT to automate the process of producing 100s of cube models one after each other using Rhinoceros 4.0 . What I want to do is reading coordinates and dimensions of the cubes from an Excel file and then modeling and meshing them with Rhinoceros and eventually saving them as “.dxf” files individually.

My main problem is with the parts that Rhinoceros asks me to select the curve. For example when I want to set the mesh I need to click on the model and I don’t know how to code that in AutoIT.

Is there anyone who can help me????

Share this post


Link to post
Share on other sites



I am trying to Code all the procedures I follow in Rhinoceros 4.0 .

Upto now I can open the programm and start a new project! But I am totally disable to code File>Properties ... this is what I wrote:

Run(@ProgramFilesDir & "Rhinoceros 4.0SystemRhino4.exe")
WinWaitActive("Startup Template")
WinClose("Startup Template")
WinActivate("Untitled - Rhinoceros (Evaluación)")
MouseClick("left",232,9)  %I put this to activate the toolbar. I know it is inaccurate but I didnt now how to do it otherways.
Send("^n")
WinWaitActive("Open Template File")
Send("Large Objects - Meters.3dm")
Send("{Enter}")
MouseClick("left",232,9) %I put this to activate the toolbar. I know it is inaccurate but I didnt now how to do it otherways.
Send("{ALTDOWN}{ALTUP}{Enter}")

Up to now I could open the File menu in toolbar now I want to choose Properties so I wrote:

Send("{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{Enter}")

But it is not working!!!!!!!!!!!!!!

Share this post


Link to post
Share on other sites

WHY are you double posting?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I haven't used the application you're talking about personally, But i would assume what you're after can be achieved with the use of ControlGetPOS...

to do this first go to (assuming you used the default autoit directory when you installed) C:Program FilesAutoit3Au3Info.exe

What will pop up is arguable one of the most useful tools for automating windows applications:

EDIT: the wrong Class box is highlighted, It is meant to be the class box underneath the header 'Basic Control Info'! o:)

au3info.PNG

The Au3Info Tool!
This allows you to grab the class of a specific control: For this example I've used the main browser window in chrome.

Basically, You drag the Finder Tool onto the specific part of the application you wish to utilise (toolbar, Main window etc...), and in the Class box, you will see the required information for your script!
 

So for your script you could do something like:

Run(@ProgramFilesDir & "\Rhinoceros 4.0\System\Rhino4.exe")
WinWaitActive("Startup Template")
WinClose("Startup Template")

$RWnd = WinActivate("Untitled - Rhinoceros (Evaluación)")
$RPos = ControlGetPos($RWnd,"",[THE CLASS YOU FOUND VIA AU3INFO])
MouseClick("left",$RPos[0],$RPos[1])

MouseClick("left",232,9)  %I put this to activate the toolbar. I know it is inaccurate but I didnt now how to do it otherways.
Send("^n")
WinWaitActive("Open Template File")
Send("Large Objects - Meters.3dm")
Send("{Enter}")
MouseClick("left",232,9) %I put this to activate the toolbar. I know it is inaccurate but I didnt now how to do it otherways.
Send("{ALTDOWN}{ALTUP}{Enter}")

I haven't tested it, as I don't have the application personally, But hopefully this can get you on the right track :)

- Javi

Edited by javiwhite

give a man an application, and he'll be frustrated for the day, Teach him how to program applications and he'll be frustrated for a lifetime.

Share this post


Link to post
Share on other sites

Sorry I didn't notice I posted it two times! I deleted one!
NOW... do you have any idea which helps me with my problem?

Share this post


Link to post
Share on other sites

If you refer to your original post on the topic you will see someone has already answered. Also, realize that not everyone uses a product just because you do. You script may be the most important thing in the world to you, but it may require some patience to find someone familiar enough with it to help.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Thank you very much ... I tried to get information from window Info but the problem is I don't receive anything in Basic Control Info!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0