EddyCurrent
|
 |
« Reply #45 on: November 06, 2015, 21:55:23 pm » |
|
And I can't fix it 
|
|
|
Logged
|
Made in England
|
|
|
Bubba
|
 |
« Reply #46 on: November 07, 2015, 00:21:09 am » |
|
And I can't fix it  Ah, it feels good to know that's one of local guru's is on the job!!  Thanks Eddy.
|
|
|
Logged
|
My 2¢
|
|
|
onekk
|
 |
« Reply #47 on: October 26, 2016, 08:42:30 am » |
|
Today I've checked some forum and found this thread,
After having played a little, maybe thi caould help.
This is the test file I've generated by the v6 version of this plugin compiled with the latest Mono on Linux.
The only thing I've done is cleaning the csproj file deleting all the things that are not strictly needed to compile it on Linux.
Hope it will help.
|
|
|
Logged
|
Carlo D. (onekk)
eShapeoko #343 750x1000 mm + GRBL + bCNC + CamBam
|
|
|
EddyCurrent
|
 |
« Reply #48 on: October 26, 2016, 10:12:15 am » |
|
Carlo,
This plugin used to work with CamBam version P before the latest update, version P ( 22 Sept 2015 ) Since then it does what it should with the exception of loading a cb file with dashed lines in it. 'Unknown Entity' error.
To say this is annoying would be an understatement, if only Andy could say what changes he made to the new version and what I need to change to make this work again.
I don't know if it still works with the Linux version.
When I opened your file today, dashed.cb, I got the 'Error in XML document' error.
|
|
|
Logged
|
Made in England
|
|
|
dave benson
|
 |
« Reply #49 on: October 26, 2016, 11:52:39 am » |
|
HI Eddy I removed to refs to DotPolyline and the file loaded so it's not parsing the entity (line 7) IIRC you had some code to load the entities. other than that "I got nothin". Dave
|
|
|
Logged
|
|
|
|
EddyCurrent
|
 |
« Reply #50 on: October 26, 2016, 12:03:41 pm » |
|
Dave, From Linux the cb file uses this; <pline xsi:type="DotPolyline" id="1"> <ModificationCount>1</ModificationCount> <mat m="Identity" /> <pts> <p>28,67,0</p> <p>118,69,0</p> <p>122,54,0</p> <p>68,12,0</p> </pts> <Spacing>1</Spacing> <DotLineStyle>1</DotLineStyle> </pline>
But from Windows it's this; <DotPolyline id="1"> <ModificationCount>1</ModificationCount> <mat m="Identity" /> <pts> <p>28,67,0</p> <p>118,69,0</p> <p>122,54,0</p> <p>68,12,0</p> </pts> <Spacing>1</Spacing> <DotLineStyle>1</DotLineStyle> </DotPolyline>
|
|
|
Logged
|
Made in England
|
|
|
dave benson
|
 |
« Reply #51 on: October 26, 2016, 12:17:44 pm » |
|
|
|
|
Logged
|
|
|
|
onekk
|
 |
« Reply #52 on: October 26, 2016, 13:33:26 pm » |
|
Ok Eddy asap I try to edit the file by hand and remove the xsi instance in front of the XDotPolyline.
I suspect that something is changed in the way the code process the fcreation of new entities of type different from those defined by Andy, but I don't have access to the sources.
I let you know if something useful appear, even an error code in CamBam .
Sorry for the inconvenience.
|
|
|
Logged
|
Carlo D. (onekk)
eShapeoko #343 750x1000 mm + GRBL + bCNC + CamBam
|
|
|
EddyCurrent
|
 |
« Reply #53 on: October 26, 2016, 13:34:53 pm » |
|
Dave,
I'ts Andy who has made those XML files the way they are, my problem is when the file is opened again in CamBam, some internal checks beyond our control are flagging up an 'Unknown Entity' error, but in the previous CamBam version they did not do that and this plugin worked fine.
David said this in another thread about another issue; "Ah ! ok ... it's a known bug ... there is a compatibility problem between xml files created with linux and Win version."
|
|
« Last Edit: October 26, 2016, 13:43:48 pm by EddyCurrent »
|
Logged
|
Made in England
|
|
|
dave benson
|
 |
« Reply #54 on: October 26, 2016, 13:43:29 pm » |
|
Ok Eddy How did you define the DotPolyine as an entity and save it in the file in the first place. Dave
|
|
|
Logged
|
|
|
|
EddyCurrent
|
 |
« Reply #55 on: October 26, 2016, 13:45:27 pm » |
|
Dave, the source files are in my first post of this thread, probably better to look there, or to put it another way, I can't remember myself without looking at it all again 
|
|
|
Logged
|
Made in England
|
|
|
dave benson
|
 |
« Reply #56 on: October 26, 2016, 13:56:00 pm » |
|
No Worries Eddy thought of that after I posted  I'll have a look at in the morning. Dave
|
|
|
Logged
|
|
|
|
EddyCurrent
|
 |
« Reply #57 on: October 26, 2016, 13:58:22 pm » |
|
Dave, This is some of it, the top line along with other xml code makes it save the cb file correctly. [XmlType("DotPolyline"), Serializable] public class DotPolyline : Polyline { // default constructor with default value of Spacing public DotPolyline() : base() { Spacing = 1; DotLineStyle = 1; } public double Spacing { get; set; } public int DotLineStyle { get; set; } private double StepSize; private int dotlinestyle; public override void Paint(Display3D d3d) {
As I say, it used to work until the latest CamBam version so logically Andy changed something. It's only a guess but he might have been experimenting with some new entity types for the next version and as a consequence but some extra error checking into his code. Edit: I've just tried loading the dashed.cb file from Carlo with the previous version of CamBam; CamBam plus [0.9] Rel 8P (beta-2) Copyright © 2013 HexRay Ltd and it worked, but it can't open the dashed line files saved by the latest version because the XML format is different.
|
|
« Last Edit: October 26, 2016, 14:38:21 pm by EddyCurrent »
|
Logged
|
Made in England
|
|
|
Bubba
|
 |
« Reply #58 on: October 26, 2016, 16:23:42 pm » |
|
As I say, it used to work until the latest CamBam version so logically Andy changed something. ********************* Yep! It still works , but it won't save..  Andy opposes dashed lines in CB..
|
|
|
Logged
|
My 2¢
|
|
|
EddyCurrent
|
 |
« Reply #59 on: October 26, 2016, 16:35:03 pm » |
|
I must have crossed the line 
|
|
|
Logged
|
Made in England
|
|
|
|