Author Topic: Script language question  (Read 130 times)

Offline frankwille26@gmail.com

  • Ewok
  • *
  • Posts: 1
    • View Profile
Script language question
« on: January 03, 2023, 16:14:27 pm »
Hi,
I am looking for a way to automate some simple tasks in cambam. I am struggling with the coding. I tried the MOP Automate script in python , but that is only partly doing what I need. I want to do the following:
- check directory for files if there is a file
- open first dxf file
- add profile  (to the polyline (only 1) in file
- use camstyle (which I added in the library)
- create holding tabs
- create toolpath
- create ccode and save it
- get next DXF file and repeat steps.

I can't figure out to get the following:
- add profile  (to the polyline (only 1) in file
- use camstyle (which I added in the library)
- create holding tabs
- create toolpath


I hope someone can help me. I alsready spend 4 evenings on this without result . :D

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7099
    • View Profile
    • Cambam V1.0 French Doc
Re: Script language question
« Reply #1 on: January 03, 2023, 22:58:43 pm »
Hello

There is no manual unfortunately ; the best way is to explore existing scripts done by users.

A snippet page exist but almost all examples are in Basic Script and are not easy to translate to python. (I am totally ignorant in python)

https://cambamcnc.com/forum/index.php?topic=3878.0

++
David