Current File Path

This section is for general discussion about Gadgets

Current File Path

Postby CNCDaveToo » Fri Dec 07, 2018 6:01 am

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.
CNCDaveToo
 
Posts: 17
Joined: Mon Jan 22, 2018 3:47 am
Location: Leesburg, Virginia, USA
Model of CNC Machine: ShopBot Desktop

Re: Current File Path

Postby AlanRobbo » Thu Sep 26, 2019 3:41 pm

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


Return to Gadgets - General

Who is online

Users browsing this forum: No registered users and 2 guests