CamBam
News:
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2018, 00:07:31 am


Login with username, password and session length


Pages: 1 2 3 [4] 5 6
  Print  
Author Topic: Dotted Lines reborn as "Dashed Lines"  (Read 22662 times)
EddyCurrent
CNC Jedi
*****
Offline Offline

Posts: 3666



View Profile
« Reply #45 on: November 06, 2015, 21:55:23 pm »

And I can't fix it  Huh
Logged
Bubba
CNC Jedi
*****
Offline Offline

Posts: 2503



View Profile
« Reply #46 on: November 07, 2015, 00:21:09 am »

And I can't fix it  Huh

Ah, it feels good to know that's one of local guru's is on the job!! Wink Cheesy Grin

Thanks Eddy.
Logged

My 2¢
onekk
Wookie
****
Offline Offline

Posts: 397


View Profile
« 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.


* DashedLines.csproj.zip (1.19 KB - downloaded 65 times.)
* dashed.cb (0.93 KB - downloaded 81 times.)
Logged

Carlo D. (onekk)

eShapeoko #343 750x1000 mm + GRBL + bCNC + CamBam
EddyCurrent
CNC Jedi
*****
Offline Offline

Posts: 3666



View Profile
« 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.




* Image2.jpg (34.22 KB, 800x488 - viewed 124 times.)

* Image3.jpg (29.67 KB, 800x384 - viewed 117 times.)
Logged
dave benson
CNC Jedi
*****
Offline Offline

Posts: 1013


View Profile
« 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


* dot polyline Capture.PNG (53.08 KB, 1299x607 - viewed 129 times.)
Logged
EddyCurrent
CNC Jedi
*****
Offline Offline

Posts: 3666



View Profile
« Reply #50 on: October 26, 2016, 12:03:41 pm »

Dave,

From Linux the cb file uses this;

Code:
<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;

Code:
<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
dave benson
CNC Jedi
*****
Offline Offline

Posts: 1013


View Profile
« Reply #51 on: October 26, 2016, 12:17:44 pm »

HI Eddy
Is this of any use http://www.w3.org/TR/xmlschema-1/#no-xsi
Dave
Logged
onekk
Wookie
****
Offline Offline

Posts: 397


View Profile
« 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
CNC Jedi
*****
Offline Offline

Posts: 3666



View Profile
« 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
dave benson
CNC Jedi
*****
Offline Offline

Posts: 1013


View Profile
« 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
CNC Jedi
*****
Offline Offline

Posts: 3666



View Profile
« 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  Cheesy
Logged
dave benson
CNC Jedi
*****
Offline Offline

Posts: 1013


View Profile
« Reply #56 on: October 26, 2016, 13:56:00 pm »

No Worries Eddy
thought of that after I posted Roll Eyes
I'll have a look at in the morning.
Dave
Logged
EddyCurrent
CNC Jedi
*****
Offline Offline

Posts: 3666



View Profile
« 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.

Code:
 [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
Bubba
CNC Jedi
*****
Offline Offline

Posts: 2503



View Profile
« 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.. Roll Eyes Roll Eyes Roll Eyes

Andy opposes dashed lines in CB.. Grin Grin Grin Grin
Logged

My 2¢
EddyCurrent
CNC Jedi
*****
Offline Offline

Posts: 3666



View Profile
« Reply #59 on: October 26, 2016, 16:35:03 pm »

I must have crossed the line  Wink
Logged
Pages: 1 2 3 [4] 5 6
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.14 seconds with 19 queries.

Copyright © 2018 HexRay Ltd. | Sitemap