To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 5302
5301  |  5303
Subject: 
Re: Parts authoring with sub parts
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 26 Sep 2000 17:37:58 GMT
Viewed: 
511 times
  
In lugnet.cad.dev, Steve Bliss writes:
In lugnet.cad.dev, ludo soete wrote:

Hi,

I post this question to the specialists.

If i write a part, and would use sub parts in it, how do you do this?

I wrote (& posted it to lugnet) the 9V straight track (2865.dat) and its
possible that i write some more 9V track parts. The track 'click' mechanism • is
a repeated part in all tracks (points, straight, curved,..) so it could be
usefull to keep this apart from the 'main' file for reuse in other track • parts.

Any idee if its worth to use a sub part?

I'd say that yes, it's worth it to use it as a subpart.

To do this, take the code for the 'click' mechanism, copy it to another
file.  Subpart files are distributed in the parts\s\ directory.  To refer
to these files, you have to include the subdirectory on the reference.  So
if you put the click-mechanism in s\2865s01.dat, you would refer to as:

1 16 0 0 0 1 0 0 0 1 0 0 0 1 s\2865s01.dat

in any of the track part-files.

Steve

O.K. Steve,

I'll break it in sub parts for reuse in other track parts as curved track,
points and cross.

When reddy, i'll repost it.

regards and thanks for the answer.
Ludo



Message has 1 Reply:
  Re: Parts authoring with sub parts (HELP NEEDED !!)  [DAT]
 
(...) Hi, I'm trying to re-order my 2865.dat file with subparts, but it's not working. I'll placed the s\14S01.dat in the main file for test purpose. i do have following into the main file (Parts directory): 0 9V straight train track 0 Name: (...) (24 years ago, 26-Sep-00, to lugnet.cad.dev)

Message is in Reply To:
  Re: Parts authoring with sub parts  [DAT]
 
(...) I'd say that yes, it's worth it to use it as a subpart. To do this, take the code for the 'click' mechanism, copy it to another file. Subpart files are distributed in the parts\s\ directory. To refer to these files, you have to include the (...) (24 years ago, 25-Sep-00, to lugnet.cad.dev)

5 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR