Hoffman Amplifiers Tube Amplifier Forum

Amp Stuff => DIY Layout Creator and Custom Boards => Topic started by: vampwizzard on June 29, 2020, 08:42:13 pm

Title: Problems with board length in DIYLC
Post by: vampwizzard on June 29, 2020, 08:42:13 pm
Sorry, had this on the wrong board i think.

hey folks.

Trying to mod the AB763 one channel DIYLC file to remove the trem. Ive accomplished this and the file imports to the board import tool on the Hoffman site, but i cant seem to change the length of the board to match whats in DIYLC. Attached is the file. Ive changed the length of the board in the board layer, and ive tried to reduce the overall project length (x direction) and neither seem to translate to the importer.

Any advice?
Title: Re: Problems with board length in DIYLC
Post by: EL34 on June 30, 2020, 06:36:01 am

EDI: How to fix the board length problem in my DIYLC file analyzer program

Opposing points is the original way to set your board length in DIYLC
If you use Explicit Dimensions, the program will not be able to get your correct board length
Unless both of those lengths match, then you will be ok

See the two screen shots further down this page for an explanation of how to set those two lengths in DIYLC



Looks like there is a bug in the latest DIYLC
You have set the correct length of 11.5 but the .xml file still shows it as 12.97 inches

I'll report this bug

In the mean time you can edit the .xml manually
Just change the 12.97 to 11.5 in a text editor

It appears two places right at the top of the file as shown in my screen shot

The lower set of draw coords are why it displays right in DILYC, but the top set of coords are not being saved.
It should be fixed in a newer version
I'll report back when I know more
Title: Re: Problems with board length in DIYLC
Post by: vampwizzard on June 30, 2020, 06:54:41 am
Shew at least im not THAT crazy.

For the bug report: it didnt overwrite the information when I changed it from opposing points to explicit dimensions.

and thank you!
Title: Re: Problems with board length in DIYLC
Post by: EL34 on June 30, 2020, 08:24:56 am
Shew at least im not THAT crazy.
For the bug report: it didnt overwrite the information when I changed it from opposing points to explicit dimensions.
and thank you!

Ok, the DIYLC author seems to think this behavior is ok
I am not having any luck so far convincing him that it makes no sense to store two different board dimensions
Boards are only one size, not two


Opposing points is where you grab the edges and pull to set the shape
This is the original board size method  and this is what my DIYLC analyzer program looks for in your board file



Explicit dimensions is where you enter the exact length and width into the boxes.
This is the new way you can set the board size in DIYLC
My program does not look for this set of dimensions




Here are a couple screen shots showing that in DIYLC

It make no sense to me to store two different board dimensions
Boards are only one size, not two different sizes
Title: Re: Problems with board length in DIYLC
Post by: EL34 on June 30, 2020, 08:26:07 am
To edit the .xml manually, you have to not have the file open in DIYLC

Close DIYLC first and then edit the .xml file in a text editor
Title: Re: Problems with board length in DIYLC
Post by: EL34 on June 30, 2020, 08:28:25 am
I will add a link to the DIYLC file analyzer program and send them here to review this info

If you are having the same problem of your board length showing up incorrectly in my DIYLC file analyzer program, edit your DIYLC file manually as I have shown up above
Title: Re: Problems with board length in DIYLC
Post by: vampwizzard on June 30, 2020, 08:42:48 am
Technically he's correct... you can always use the last instance of board dimensions and get the intended answer. The idea would be that when you switch between the two options for board dimensions it would retain that data.. but F#% that.

It appears that the source file I edited is composed differently in a significant way and maybe the files created on earlier versions of DIYLC are struggling under the editing in the newer versions.

That being said, it should be easy for him to determine the part settings on the board and check for the bug in the file. I dont understand the opposition to that fix from his end.

Thank you for addressing this!
Title: Re: Problems with board length in DIYLC
Post by: EL34 on June 30, 2020, 09:15:08 am

The old files should update once you open and save them
The coord origin in the new code below was not present in the old code

This was added

Code: [Select]
      <length value="13.0" unit="in"/>
      <width value="3.125" unit="in"/>


Old board code

Code: [Select]

    <diylc.boards.BlankBoard>
      <name>Hoffman Board</name>
      <alpha>127</alpha>
      <value></value>
      <controlPoints>
        <point x="1.0" y="1.3"/>
        <point x="9.0" y="4.3"/>
      </controlPoints>
      <firstPoint x="1.0" y="1.3"/>
      <secondPoint x="9.0" y="4.3"/>
      <boardColor hex="cccccc"/>
      <borderColor hex="ada47d"/>
      <coordinateColor hex="b6b6b6"/>
      <drawCoordinates>true</drawCoordinates>
      <coordinateOrigin>Top_Left</coordinateOrigin>
      <mode>TwoPoints</mode>
      <type>SQUARE</type>
    </diylc.boards.BlankBoard>




New board code

Code: [Select]

    <diylc.boards.BlankBoard>
      <name>Board1</name>
      <alpha>127</alpha>
      <value></value>
      <controlPoints>
        <point x="0.0" y="0.0"/>
        <point x="11.5" y="3.125"/>
      </controlPoints>
      <firstPoint x="0.0" y="0.0"/>
      <secondPoint x="11.5" y="3.125"/>
      <boardColor hex="cccccc"/>
      <borderColor hex="ada47d"/>
      <coordinateColor hex="b6b6b6"/>
      <drawCoordinates>true</drawCoordinates>
      <coordinateOrigin>Top_Left</coordinateOrigin>
      <length value="13.0" unit="in"/>
      <width value="3.125" unit="in"/>
      <mode>Explicit</mode>
      <type>SQUARE</type>
    </diylc.boards.BlankBoard>
Title: Re: Problems with board length in DIYLC
Post by: EL34 on June 30, 2020, 09:23:50 am
2nd problem I just noticed
This board was drawn before the most recent DIYLC update

It is 9 inches long and that is what the .xml file shows
Here's the code for that board

In DIYLC it shows as 13 inches long
That is another problem that I just found



Code: [Select]
    <diylc.boards.BlankBoard>
      <name>Hoffman Board</name>
      <alpha>127</alpha>
      <value></value>
      <controlPoints>
        <point x="1.0" y="1.3"/>
        <point x="9.0" y="4.3"/>
      </controlPoints>
      <firstPoint x="1.0" y="1.3"/>
      <secondPoint x="9.0" y="4.3"/>
      <boardColor hex="cccccc"/>
      <borderColor hex="ada47d"/>
      <coordinateColor hex="b6b6b6"/>
      <drawCoordinates>true</drawCoordinates>
      <coordinateOrigin>Top_Left</coordinateOrigin>
      <mode>TwoPoints</mode>
      <type>SQUARE</type>
    </diylc.boards.BlankBoard>
Title: Re: Problems with board length in DIYLC
Post by: EL34 on June 30, 2020, 09:51:36 am
Here's one of my Pro Jr DIYLC files

The board was designed as is 10.06 inches long a long time ago in DIYLC

Now click back and forth between opposing points and Explicit dimensions in the board edit selection box

Which board do you think is the correct one?
Title: Re: Problems with board length in DIYLC
Post by: vampwizzard on June 30, 2020, 10:02:45 am
 :BangHead:

Well. On the one hand, glad we discovered this before massive problems arise in terms of CNC-ing boards. On the other, sorry to get your brain fired up on a Tuesday morning.

In terms of the board im trying to make.. downloaded the latest DIYLC and resaved my file. see attached. Is this a viable one for creation in your import program?
Title: Re: Problems with board length in DIYLC
Post by: EL34 on June 30, 2020, 10:11:58 am
:BangHead:

Well. On the one hand, glad we discovered this before massive problems arise in terms of CNC-ing boards. On the other, sorry to get your brain fired up on a Tuesday morning.

In terms of the board im trying to make.. downloaded the latest DIYLC and resaved my file. see attached. Is this a viable one for creation in your import program?

I am glad you found the bug
No one has reported it yet

Just don't expect explicit dimensions to match opposing points dimensions

Opposing points is the original method used in DIYLC
The analyzer program would not work at all if I switched it over the explicit dimensions
If you drag the board out to the length you want using opposing points, my program will use those dimensions

Hopefully we can get this corrected