Date   

Re: How to produce building outlines #HowTo

Russell Shilling
 

I uploaded a new version. I would be curious if it handles your roundhouse correctly, now. 
--
Russell Shilling
http://shilling-or.com


File //DxfToXtp - R Shilling/DxfToXtp.zip updated #file-notice

main@xtrackcad.groups.io Notification <noreply@...>
 

The following files have been updated in the Files area of the main@xtrackcad.groups.io group.

By: Russell Shilling <russellshilling@...>

Description:
New version of DxfToXtp will handle multiple tracks and create the path correctly.


Re: How to produce building outlines #HowTo

Bill Lugg
 

Russell,
Thanks for the clarification...and for the tool.  The fact it didn't do a great job with the track in the RH is small potatoes in my opinion.  The idea that I can layout my structure outlines full size in a real CAD application and pass it through your tool and get what I need to put into XTrkCAD just makes life so much easier.  As I said, the only thing that would make it better is if there was a version for Linux.  ;o)

Perhaps it would be worthwhile to add this clarification to your readme or the PDF.  Just a thought.

Bill Lugg

On 6/14/21 6:12 PM, Russell Shilling wrote:
The DxfToXtp tool attempts to find the track segments that would form a single path. It was written to make the creation of a bridge easier. The picture shows a bridge made with the tool, with the track and the structure both defined as an XTrackCAD "turnout". Because the DXF format doesn't have a great ability to form connected lines and curves, it just takes a guess at finding the (single) connected path, starting from lower-left and proceeding to upper-right. The code isn't sophisticated enough to tease out a 27-stall roundhouse from the individual tracks. Though that would be extra nifty!


--
Russell Shilling
http://shilling-or.com <http://shilling-or.com>


Re: How to produce building outlines #HowTo

Bill Lugg
 

Thanks Dwyane.  That work made all the difference.

Bill Lugg

On 6/14/21 3:48 PM, Dwyane Ward via groups.io wrote:
Bill,

I have rework you file (attached) to fix the errors you noted. You can compare to yours to see the differences.


--
Dwyane Ward


Re: Strange behaviour when Grouping a drawing using 5.22 beta 1 #Bug

Ian
 

I just checked, it is the version dated 17 February.



On Tue, 15 Jun 2021 at 00:45, Ian via groups.io <ilox11=gmail.com@groups.io> wrote:
5.22 beta 1.
If that helps. I have not done any code building for years so all I have is the public release. Sorry.


On Mon, 14 Jun 2021, 14:04 Adam Richards, <adamjmrichards@...> wrote:
There was a bug fix for Grouping objects that did not contain any track (aka all Draw objects) a little ago.  

What level of code are you at? 

Adam


On Sun, Jun 13, 2021 at 5:38 PM Ian <ilox11@...> wrote:
Trying to make an XTI for the Trix 4969 Remote Electric Uncoupler (I couldn't find one in the Param file) and suddenly get a message saying that it cannot do something with the piece of track. It worked OK when the image was straight and then I angled it and tried to make a new one. Is that what I have done wrong? Something else I have done wrong?

If you are trying to reproduce the problem, the piece is up in the open, towards the top center, just above the Top Station. 
--
-- Ian



--
Adam Richards



--
-- Ian


Re: How to produce building outlines #HowTo

Russell Shilling
 

The DxfToXtp tool attempts to find the track segments that would form a single path. It was written to make the creation of a bridge easier. The picture shows a bridge made with the tool, with the track and the structure both defined as an XTrackCAD "turnout". Because the DXF format doesn't have a great ability to form connected lines and curves, it just takes a guess at finding the (single) connected path, starting from lower-left and proceeding to upper-right. The code isn't sophisticated enough to tease out a 27-stall roundhouse from the individual tracks. Though that would be extra nifty! 


--
Russell Shilling
http://shilling-or.com


Re: Strange behaviour when Grouping a drawing using 5.22 beta 1 #Bug

Dwyane Ward
 

Ian,

Attached is the new minitrix file.
--
Dwyane Ward


Re: How to produce building outlines #HowTo

Dwyane Ward
 

Bill,

I have rework you file (attached) to fix the errors you noted. You can compare to yours to see the differences.


--
Dwyane Ward


Re: Strange behaviour when Grouping a drawing using 5.22 beta 1 #Bug

Ian
 

5.22 beta 1.
If that helps. I have not done any code building for years so all I have is the public release. Sorry.


On Mon, 14 Jun 2021, 14:04 Adam Richards, <adamjmrichards@...> wrote:
There was a bug fix for Grouping objects that did not contain any track (aka all Draw objects) a little ago.  

What level of code are you at? 

Adam


On Sun, Jun 13, 2021 at 5:38 PM Ian <ilox11@...> wrote:
Trying to make an XTI for the Trix 4969 Remote Electric Uncoupler (I couldn't find one in the Param file) and suddenly get a message saying that it cannot do something with the piece of track. It worked OK when the image was straight and then I angled it and tried to make a new one. Is that what I have done wrong? Something else I have done wrong?

If you are trying to reproduce the problem, the piece is up in the open, towards the top center, just above the Top Station. 
--
-- Ian



--
Adam Richards


Re: Strange behaviour when Grouping a drawing using 5.22 beta 1 #Bug

Ian
 

Many thanks, Dwayne.



On Mon, 14 Jun 2021 at 11:45, Dwyane Ward via groups.io <dwyaneward=yahoo.com@groups.io> wrote:
Ian,

Working on it. should have an update tomorrow.
--
Dwyane Ward



--
-- Ian


Re: Layer colours #HowTo

Tony Scott
 

Thanks for the explanation Adam. I fixed it with Rob's reply yesterday.

Cheers
Tony

------ Original Message ------
From: "Adam Richards" <adamjmrichards@gmail.com>
To: main@xtrackcad.groups.io
Sent: 14/06/2021 2:11:17 PM
Subject: Re: [xtrackcad] Layer colours

Colors work like this -

Either the layer provides the color, or the object (but not both) for each object.

There are two master settings in Options->Display that control which schemes are adopted. One for Tracks and one for Draw objects. The settings are "layer provides color" or "object provides color" for each type of object. If the setting is "layer provides color", the "Use Color" tickbox setting on each layer must also be on - this means that the color applies to THIS layer. (That is each layer can opt in or out of layer coloring). This allows some layers to do it and some not which is handy for some pre-colored structures, etc, as otherwise the color is a single color for that layer.

So, for your case, where you want the layers to provide color, you need to turn it on both in the master switch and in the layer switch for all affected layers. This is clearly not done for you yet, so you are in "object provides color"or "Use Color" is not set and so the object setting determines the color instead. Turn on the switch(es) in Settings and the layer(s) color tickbox(es) and all should be well.

Adam




On Sat, Jun 12, 2021 at 7:32 PM Tony Scott <tonyandlynne@bigpond.com> wrote:
I recently downloaded ver 5.2.1a onto a new laptop and then copied all
the layouts over to it from my old computer (which ran the same
version). However all the colours have gone on every layout and
everything is shown in black. If I go to Manage Layers it shows the
correct colour for each layer. But if I use the query button on any
object it shows it is in the correct layer but the selected colour is
black. If I then change the colour to the one I want (in the same query
dialogue) the queried object becomes the right colour. I don't
understand how the list of layers can show the correct colours but the
query dialogue shows them all black.

I have tried selecting the colours again in Manage Layers but it makes
no difference - everything stays black. Does anyone have any ideas?

Cheers
Tony Scott






--
Adam Richards


Re: How to produce building outlines #HowTo

Adam Richards
 

A Compound is the root object. It can either be a Structure (no tracks) or a Turnout (has tracks and can also have draw elements).  If a Turnout, it is expecting there to be Path elements that define how the track segments work to link endpts (like any track).  This is more than simply including track elements. 

So you can decide.

If you want to include tracks it may be easiest to define the pure structure and then add it to a layout, draw the tracks, and then Group it. The Group will create the Path and EndPt definitions dynamically and spit out a working Turnout definition. Note that the turnout will be defined with any switchable elements that go from one end pt to another (and will draw a switch in Train mode) this may not be what you want.  

Adam

On Sun, Jun 13, 2021 at 5:38 PM Bill Lugg <luggw1@...> wrote:
So, I've spent a little time fiddling with this tool (very handy, by the
way - too bad there's not a Linux version) and I ended up laying out a
couple of structures from the Laramie engine facility, the water plant,
consisting of a water storage tank and an Infilco water softener and the
27 stall roundhouse.  For the roundhouse, since the tool allows for the
inclusion of track elements, I decided to include the stall tracks. 
Much to my surprise, when I ran the tool on it, it defined the RH as a
turnout instead of a structure.  When I include it in XTrkCAD, I get a
"Not connected" error and it asks if I want to continue.  I answer yes
and the RH is there with all the tracks, but only two have connectable
ends...at the wrong end.

So, my question is can structures have tracks?  If not, is there a
better thing than a turnout that this could be called to prevent the
error and possibly make the tracks actually work correctly?

I'm putting the xtp file in the files section for the perusal of anyone
interested.

Thanks
Bill Lugg



On 6/2/21 5:42 AM, Dwyane Ward via groups.io wrote:
> Bill,
>
> Here a link to a dxf to xtp converter by Russell.
>
> https://xtrackcad.groups.io/g/main/files/DxfToXtp%20-%20R%20Shilling
>
>
> --
> Dwyane Ward
>







--
Adam Richards


Re: Strange behaviour when Grouping a drawing using 5.22 beta 1 #Bug

Adam Richards
 

There was a bug fix for Grouping objects that did not contain any track (aka all Draw objects) a little ago.  

What level of code are you at? 

Adam


On Sun, Jun 13, 2021 at 5:38 PM Ian <ilox11@...> wrote:
Trying to make an XTI for the Trix 4969 Remote Electric Uncoupler (I couldn't find one in the Param file) and suddenly get a message saying that it cannot do something with the piece of track. It worked OK when the image was straight and then I angled it and tried to make a new one. Is that what I have done wrong? Something else I have done wrong?

If you are trying to reproduce the problem, the piece is up in the open, towards the top center, just above the Top Station. 
--
-- Ian



--
Adam Richards


Re: Layer colours #HowTo

Adam Richards
 

Colors work like this - 

Either the layer provides the color, or the object (but not both) for each object. 

There are two master settings in Options->Display that control which schemes are adopted. One for Tracks and one for Draw objects. The settings are "layer provides color" or "object provides color" for each type of object.  If the setting is "layer provides color", the "Use Color" tickbox setting on each layer must also be on - this means that the color applies to THIS layer.  (That is each layer can opt in or out of layer coloring). This allows some layers to do it and some not which is handy for some pre-colored structures, etc, as otherwise the color is a single color for that layer. 

So, for your case, where you want the layers to provide color, you need to turn it on both in the master switch and in the layer switch for all affected layers. This is clearly not done for you yet, so you are in "object provides color"or "Use Color" is not set and so the object setting determines the color instead.  Turn on the switch(es) in Settings and the layer(s) color tickbox(es) and all should be well. 

Adam


 

On Sat, Jun 12, 2021 at 7:32 PM Tony Scott <tonyandlynne@...> wrote:
I recently downloaded ver 5.2.1a onto a new laptop and then copied all
the layouts over to it from my old computer (which ran the same
version). However all the colours have gone on every layout and
everything is shown in black. If I go to Manage Layers it shows the
correct colour for each layer. But if I use the query button on any
object it shows it is in the correct layer but the selected colour is
black. If I then change the colour to the one I want (in the same query
dialogue) the queried object becomes the right colour. I don't
understand how the list of layers can show the correct colours but the
query dialogue shows them all black.

I have tried selecting the colours again in Manage Layers but it makes
no difference - everything stays black. Does anyone have any ideas?

Cheers
Tony Scott








--
Adam Richards


Re: Strange behaviour when Grouping a drawing using 5.22 beta 1 #Bug

Dwyane Ward
 

Ian,

Working on it. should have an update tomorrow.
--
Dwyane Ward


Re: Strange behaviour when Grouping a drawing using 5.22 beta 1 #Bug

Ian
 

So this time, after a couple of crashes, I was able to get it loaded again. Made the change to the Labelling and Grouped it properly. All Good. Then Exported into the attached XTI. So that seems to be working OK again. Sigh.

Dwayne, if this is OK maybe it could be added to the Minitrix Param file? Which by the way is still in German if that could be translated would that be a good thing too?


On Mon, 14 Jun 2021 at 11:36, Ian via groups.io <ilox11=gmail.com@groups.io> wrote:
This just gets better and better. When I restarted I was asked if I wanted to Resume from the previous Plan. Saying "Yes" it crashed.
Log attached.

On Mon, 14 Jun 2021 at 11:16, Ian via groups.io <ilox11=gmail.com@groups.io> wrote:
And just got another strange crash with this model, and the rebuilt XTI was going well too. Sigh.
This time I started out with the actual Minitrix length of Track before adding the Decoupler bits.
Log and other files attached.


On Mon, 14 Jun 2021 at 10:08, Ian via groups.io <ilox11=gmail.com@groups.io> wrote:
Trying to make an XTI for the Trix 4969 Remote Electric Uncoupler (I couldn't find one in the Param file) and suddenly get a message saying that it cannot do something with the piece of track. It worked OK when the image was straight and then I angled it and tried to make a new one. Is that what I have done wrong? Something else I have done wrong?

If you are trying to reproduce the problem, the piece is up in the open, towards the top center, just above the Top Station. 
--
-- Ian



--
-- Ian



--
-- Ian



--
-- Ian


Re: Strange behaviour when Grouping a drawing using 5.22 beta 1 #Bug

Ian
 

This just gets better and better. When I restarted I was asked if I wanted to Resume from the previous Plan. Saying "Yes" it crashed.
Log attached.


On Mon, 14 Jun 2021 at 11:16, Ian via groups.io <ilox11=gmail.com@groups.io> wrote:
And just got another strange crash with this model, and the rebuilt XTI was going well too. Sigh.
This time I started out with the actual Minitrix length of Track before adding the Decoupler bits.
Log and other files attached.


On Mon, 14 Jun 2021 at 10:08, Ian via groups.io <ilox11=gmail.com@groups.io> wrote:
Trying to make an XTI for the Trix 4969 Remote Electric Uncoupler (I couldn't find one in the Param file) and suddenly get a message saying that it cannot do something with the piece of track. It worked OK when the image was straight and then I angled it and tried to make a new one. Is that what I have done wrong? Something else I have done wrong?

If you are trying to reproduce the problem, the piece is up in the open, towards the top center, just above the Top Station. 
--
-- Ian



--
-- Ian



--
-- Ian


Re: Strange behaviour when Grouping a drawing using 5.22 beta 1 #Bug

Ian
 

And just got another strange crash with this model, and the rebuilt XTI was going well too. Sigh.
This time I started out with the actual Minitrix length of Track before adding the Decoupler bits.
Log and other files attached.


On Mon, 14 Jun 2021 at 10:08, Ian via groups.io <ilox11=gmail.com@groups.io> wrote:
Trying to make an XTI for the Trix 4969 Remote Electric Uncoupler (I couldn't find one in the Param file) and suddenly get a message saying that it cannot do something with the piece of track. It worked OK when the image was straight and then I angled it and tried to make a new one. Is that what I have done wrong? Something else I have done wrong?

If you are trying to reproduce the problem, the piece is up in the open, towards the top center, just above the Top Station. 
--
-- Ian



--
-- Ian


Strange behaviour when Grouping a drawing using 5.22 beta 1 #Bug

Ian
 

Trying to make an XTI for the Trix 4969 Remote Electric Uncoupler (I couldn't find one in the Param file) and suddenly get a message saying that it cannot do something with the piece of track. It worked OK when the image was straight and then I angled it and tried to make a new one. Is that what I have done wrong? Something else I have done wrong?

If you are trying to reproduce the problem, the piece is up in the open, towards the top center, just above the Top Station. 
--
-- Ian


Re: How to produce building outlines #HowTo

Bill Lugg
 

So, I've spent a little time fiddling with this tool (very handy, by the way - too bad there's not a Linux version) and I ended up laying out a couple of structures from the Laramie engine facility, the water plant, consisting of a water storage tank and an Infilco water softener and the 27 stall roundhouse.  For the roundhouse, since the tool allows for the inclusion of track elements, I decided to include the stall tracks.  Much to my surprise, when I ran the tool on it, it defined the RH as a turnout instead of a structure.  When I include it in XTrkCAD, I get a "Not connected" error and it asks if I want to continue.  I answer yes and the RH is there with all the tracks, but only two have connectable ends...at the wrong end.

So, my question is can structures have tracks?  If not, is there a better thing than a turnout that this could be called to prevent the error and possibly make the tracks actually work correctly?

I'm putting the xtp file in the files section for the perusal of anyone interested.

Thanks
Bill Lugg

On 6/2/21 5:42 AM, Dwyane Ward via groups.io wrote:
Bill,

Here a link to a dxf to xtp converter by Russell.

https://xtrackcad.groups.io/g/main/files/DxfToXtp%20-%20R%20Shilling


--
Dwyane Ward

1 - 20 of 12614