Current File Path

This section is for general discussion about Gadgets
Post Reply
CNCDaveToo
Posts: 20
Joined: Mon Jan 22, 2018 3:47 am
Model of CNC Machine: ShopBot Desktop
Location: Leesburg, Virginia, USA

Current File Path

Post by CNCDaveToo »

My gadget can read the currently open .crv file name via

Code: Select all

job = VectricJob()
job.Name

-- what I'd _really_ like is the full path to the open file so that I can write a text file into that directory and write out a bit of related text based on my gadget's action.
Be kind.

AlanRobbo
Vectric Apprentice
Posts: 1
Joined: Mon Oct 19, 2015 6:09 pm
Model of CNC Machine: http://www.omiocnc.com/products/x6-1500c

Re: Current File Path

Post by AlanRobbo »

f_Dir = pp.TP_DIR:GetString() .. "\\"

f_Nane = pp.TP_FILENAME:GetString()

there is much info you can get, lool into this file, However DO NOT change any of it, under the Pain of DEATH.

C:\Program Files\Aspire 10.0\Lua\ppVariables.lua

if you need more help, please contact me.

CNCDaveToo
Posts: 20
Joined: Mon Jan 22, 2018 3:47 am
Model of CNC Machine: ShopBot Desktop
Location: Leesburg, Virginia, USA

Re: Current File Path

Post by CNCDaveToo »

Thank you kindly!!!
Be kind.

Post Reply