Editing Setup Sheet in Cut2D Pro
Editing Setup Sheet in Cut2D Pro
Hi, I'm just trying to edit the gagdet for the setup sheet in order to remove the header and footer from the sheet as all I want to print out is the job layout. When you just choose the job layout option in Cut2D the setup sheet still has a big header and footer which make the actual job layout image quite small when you try to print it. I want the whole A4 page to be filled with the job layout image. I was wondering if anyone had any luck in editing the lua code? When I have done this it seems to have no affect and to just be using the default code and completely bypassing my edits.
Any suggestions would be welcome, thank you.
Any suggestions would be welcome, thank you.
Re: Editing Setup Sheet in Cut2D Pro
I emailed someone at Vectric support and they gave me this information which I was able to use to easily edit the code once I found out which file to edit.
This is what they said to me if anyone wants to know:
'If you have used the "Gadgets > Setup Sheet Editor" this will have placed a copy of
the script to "C:\Users\Public\Documents\Vectric Files\Gadgets\Cut2D Pro V8.5__Setup_Sheet"
(If the software was installed with default settings on most versions of Windows).
The file will be named "Setup_Sheet.lua"
It is our recommendation that the "Public Documents" copy of the script be edited,
so that the main script can be restored at a later date, if required.'
This is what they said to me if anyone wants to know:
'If you have used the "Gadgets > Setup Sheet Editor" this will have placed a copy of
the script to "C:\Users\Public\Documents\Vectric Files\Gadgets\Cut2D Pro V8.5__Setup_Sheet"
(If the software was installed with default settings on most versions of Windows).
The file will be named "Setup_Sheet.lua"
It is our recommendation that the "Public Documents" copy of the script be edited,
so that the main script can be restored at a later date, if required.'
- Rcnewcomb
- Vectric Archimage
- Posts: 5920
- Joined: Fri Nov 04, 2005 5:54 am
- Model of CNC Machine: 24x36 GCnC/WinCNC with ATC
- Location: San Jose, California, USA
- Contact:
Re: Editing Setup Sheet in Cut2D Pro
Thanks for posting the follow-up information.
- Randall Newcomb
10 fingers in, 10 fingers out, another good day in the shop
10 fingers in, 10 fingers out, another good day in the shop
Re: Editing Setup Sheet in Cut2D Pro
I would like to have exactly what is posted above but don't understand programing code. Can someone walk me throught the changes? or help in any way
-
- Vectric Apprentice
- Posts: 77
- Joined: Wed Feb 15, 2017 5:29 pm
- Model of CNC Machine: CNC Shark
Re: Editing Setup Sheet in Cut2D Pro
KMD, have a crack at it first. Save off a copy of the files, then try editing them. You'd be surprised how easy some of it is to follow with a few minutes of reading. From there, deleting lines is easy (it's not like you need to compose new code). And if you mess up, it's easy to restore the backups you created.
If you're still stuck after that, we can walk you through which segments to modify.
If you're still stuck after that, we can walk you through which segments to modify.
Re: Editing Setup Sheet in Cut2D Pro
Kayvon wrote:KMD, have a crack at it first. Save off a copy of the files, then try editing them. You'd be surprised how easy some of it is to follow with a few minutes of reading. From there, deleting lines is easy (it's not like you need to compose new code). And if you mess up, it's easy to restore the backups you created.
If you're still stuck after that, we can walk you through which segments to modify.
Thanks I have been Trying I have got the photo to move around left right and deleted the foot and header. But still end up with the same size photo. its like there is a box around it and it won't resize. Im sure Its some thing simple that Im not doing or doing wrong.
I think Im followwing the text right Im removeing the header in the bottom of code. the upper portion of it seems to collect the data
any help would be nice Thanks
- adze_cnc
- Vectric Wizard
- Posts: 4374
- Joined: Sat Jul 27, 2013 10:08 pm
- Model of CNC Machine: AXYZ 4008
- Location: Vancouver, BC, Canada
Re: Editing Setup Sheet in Cut2D Pro
Go to (approximately) line 263 in the Setup_Sheet.lua file and find:KMD wrote:But still end up with the same size photo. its like there is a box around it and it won't resize.
Code: Select all
--search for width attributes in svg and replace with fixed width for setup sheet
svg = svg:gsub([[width="(.-)"]],[[width="8cm"]])
--search for height attributes in svg and replace with fixed height for setup sheet
svg = svg:gsub([[height="(.-)"]],[[height="4cm"]])
Steven
-
- Vectric Apprentice
- Posts: 77
- Joined: Wed Feb 15, 2017 5:29 pm
- Model of CNC Machine: CNC Shark
Re: Editing Setup Sheet in Cut2D Pro
That's a solid start! If Adze's suggestion doesn't fix it for you, post back here and I'll try to duplicate what you've done.KMD wrote:I have got the photo to move around left right and deleted the foot and header.
Re: Editing Setup Sheet in Cut2D Pro
Can anyone point out the errors in my ways
-
- Vectric Apprentice
- Posts: 77
- Joined: Wed Feb 15, 2017 5:29 pm
- Model of CNC Machine: CNC Shark
Re: Editing Setup Sheet in Cut2D Pro
Would you mind posting the gadget files you have so far? I'll take a look at them this evening.
Re: Editing Setup Sheet in Cut2D Pro
it wont allow me to attach the .lua file.Kayvon wrote:Would you mind posting the gadget files you have so far? I'll take a look at them this evening.
- Rcnewcomb
- Vectric Archimage
- Posts: 5920
- Joined: Fri Nov 04, 2005 5:54 am
- Model of CNC Machine: 24x36 GCnC/WinCNC with ATC
- Location: San Jose, California, USA
- Contact:
Re: Editing Setup Sheet in Cut2D Pro
In Windows right-click on the .lua file and choose Send To/Compressed (zipped) folderit won't allow me to attach the .lua file.
You can then upload the .zip file
- Randall Newcomb
10 fingers in, 10 fingers out, another good day in the shop
10 fingers in, 10 fingers out, another good day in the shop
Re: Editing Setup Sheet in Cut2D Pro
There was a time in my life I could make a computer do stuff. as I age Im struggling with it all.
I really appreciate everyone's help here is the file
If its possible I would like to get the sheet to fill the whole page. those little letters you see are the part numbers I need. But can't read.
I really appreciate everyone's help here is the file
If its possible I would like to get the sheet to fill the whole page. those little letters you see are the part numbers I need. But can't read.
- Attachments
-
- Setup_Sheet.zip
- (34.9 KiB) Downloaded 327 times
-
- Vectric Apprentice
- Posts: 77
- Joined: Wed Feb 15, 2017 5:29 pm
- Model of CNC Machine: CNC Shark
Re: Editing Setup Sheet in Cut2D Pro
I just saw the upload this morning. Give me some time and I'll get back to you.
Re: Editing Setup Sheet in Cut2D Pro
Thanks I forgot to link it to your post. The help is great !!!!!!!!!!Kayvon wrote:I just saw the upload this morning. Give me some time and I'll get back to you.