View unread Posts
View New Posts
View Today's Posts
Forum Search
Login
Register
Login at RoboDK
Welcome to RoboDK Forum
Not a member yet?
Join Us Now!
Remember me
Lost password
Search
Login
Register
Login at RoboDK
Welcome to RoboDK Forum
Not a member yet?
Join Us Now!
Remember me
Lost password
Forum
Portal
Members
Today's Posts
Calendar
Help
RoboDK Forum
>
RoboDK (EN)
>
RoboDK API
>
python program with in variables
RoboDK Forum
>
RoboDK (EN)
>
RoboDK API
>
python program with in variables
Thread Rating:
0 Vote(s) - 0 Average
1
2
3
4
5
python program with in variables
jeas
Junior Member
Posts: 1
Threads: 1
Joined: Jul 2020
Reputation:
0
#1
07-09-2020, 04:55 PM
how can i define a python program with variables.
like "Job_finished (10,2)"
Attached Files
Thumbnail(s)
Quick Edit
Full Edit
Albert
Moderator
Posts: 3,527
Threads: 2
Joined: Apr 2018
Reputation:
165
#2
07-09-2020, 06:02 PM
RoboDK passes arguments as command line arguments. Therefore, you can simply collect the parameters in your Python script using sys.argv. I attached a sample file that uses this concept.
Attached Files
SpindleOn.py
(Size: 6.09 KB / Downloads: 4,947)
Quick Edit
Full Edit
View a Printable Version
Subscribe to this thread
Users browsing this thread:
1 Guest(s)
Copyright © 2024
RoboDK Inc.
Powered by MyBB
Linear Mode
Threaded Mode