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 / 5286
5285  |  5287
Special: 
[DAT] (requires LDraw-compatible viewer)
Subject: 
Re: Parts authoring with sub parts
Newsgroups: 
lugnet.cad.dev
Date: 
Mon, 25 Sep 2000 20:08:37 GMT
Viewed: 
498 times
  
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



Message has 1 Reply:
  Re: Parts authoring with sub parts
 
(...) is (...) parts. (...) 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 (24 years ago, 26-Sep-00, to lugnet.cad.dev)

Message is in Reply To:
  Parts authoring with sub parts
 
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 (...) (24 years ago, 24-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