Inline part ???


Inline part ???
#1
Question 
Hi
Maybe a silly question, but I often read "inline a part".
What does this mean exactly?
And always remember, I'm a bloody beginner.
If nothing goes right, go left.
Reply
RE: Inline part ???
#2
(2019-01-23, 20:39)Johann Eisner Wrote: Hi
Maybe a silly question, but I often read "inline a part".
What does this mean exactly?
And always remember, I'm a bloody beginner.

Basically it means take all the lines in the file referenced by the type 1 line and insert them into the current file, adjusted for the rotation and position specified by the referring type 1 line.
Reply
RE: Inline part ???
#3
(2019-01-23, 20:39)Johann Eisner Wrote: Hi
Maybe a silly question, but I often read "inline a part".
What does this mean exactly?
And always remember, I'm a bloody beginner.

Inlining a part in a model means that you don't reference the file containing the geometry but you add the geometry directly to the model. In OMR models it is a requirement for unofficial part since you cannot be certain that the origin, orientation, geometry of lines, triangles, quads remain as they do in the very moment when you add them to your model. There are sometimes heavy changes (think of subfiling) to unofficial parts and it would totaly mess up your model if the geometry isn't inlined into the model itself.

This would be the code with no inline:


Code:
1 1 -90 -16 0 0 0 1 0 1 0 -1 0 0 3710.DAT
1 15 -70 -16 0 0 0 1 0 1 0 -1 0 0 2412B.DAT
0 STEP
1 71 0 -32 0 1 0 0 0 1 0 0 0 1 2456.DAT


This is the same code with 2412B.dat inlined.


Code:
1 1 -90 -16 0 0 0 1 0 1 0 -1 0 0 3710.DAT
0 // Inlined: 1 15 -70 -16 0 0 0 1 0 1 0 -1 0 0 2412B.DAT
0 Tile 1 x 2 Grille with Groove
0 Name: 2412b.dat
0 Author: Guy Vivan [guyvivan]
0 !LDRAW_ORG Part UPDATE 2009-01
0 !LICENSE Redistributable under CCAL version 2.0 : see CAreadme.txt

0 // 0 BFC CERTIFY CCW

0 !HISTORY 2009-05-02 [PTadmin] Official Update 2009-01

2 24 -68 -12 16 -68 -12 -16
2 24 -72 -12 16 -72 -12 -16
2 24 -64 -12 16 -76 -12 16
2 24 -76 -12 -16 -64 -12 -16
2 24 -64 -8 -16 -64 -8 16
2 24 -64 -8 16 -76 -8 16
2 24 -76 -8 16 -76 -8 -16
2 24 -76 -8 -16 -64 -8 -16
2 24 -64 -8 -16 -64 -12 -16
2 24 -64 -8 16 -64 -12 16
2 24 -76 -8 -16 -76 -12 -16
2 24 -76 -8 16 -76 -12 16
4 15 -64 -8 -16 -64 -12 -16 -64 -12 16 -64 -8 16
4 15 -64 -8 16 -64 -12 16 -76 -12 16 -76 -8 16
4 15 -76 -8 16 -76 -12 16 -76 -12 -16 -76 -8 -16
...


w.
LEGO ergo sum
Reply
RE: Inline part ???
#4
Already used x times, but did not know that it is.
Thanks for the answers.
If nothing goes right, go left.
Reply
RE: Inline part ???
#5
(2019-01-23, 20:39)Johann Eisner Wrote: Hi
Maybe a silly question, but I often read "inline a part".
What does this mean exactly?
And always remember, I'm a bloody beginner.

I'm a bit confused by both Orion's and Willy's answers. Particularly with respect to the OMR, parts should not be inlined as described, but instead included as files inside the MPD file (using the 0 FILE meta-command). They would then be referenced as normal. The following comes right from the OMR spec:

Quote:Unofficial parts are allowed to be used, but must be included in the MPD as referenced subfiles. The filename of the unofficial part is subject to the following naming rules:

Technically speaking, this isn't "inlining", but if someone asks for a part to be inlined, I would think that this is what they really mean.
Reply
RE: Inline part ???
#6
(2019-01-24, 2:29)Travis Cobbs Wrote: I'm a bit confused by both Orion's and Willy's answers.
Same thing here. What Orion describes is what I call inlining. In a model, this occurs mainly when a user "inlines" a composite part (shortcut) to move or recolor one of the components (eg. to flex a 61903 universal joint). What Willy describes perfectly is embedding. I think "embedding" is what Johann meant.
Reply
RE: Inline part ???
#7
(2019-01-24, 7:02)Philippe Hurbain Wrote:
(2019-01-24, 2:29)Travis Cobbs Wrote: I'm a bit confused by both Orion's and Willy's answers.
Same thing here. What Orion describes is what I call inlining. In a model, this occurs mainly when a user "inlines" a composite part (shortcut) to move or recolor one of the components (eg. to flex a 61903 universal joint). What Willy describes perfectly is embedding. I think "embedding" is what Johann meant.

Yes. In this case, I meant that I have already used x times "embedding".
If nothing goes right, go left.
Reply
RE: Inline part ???
#8
LDDP has a dedicated button for doing that.
You can select 1 or more lines in a file and then hit that button.
What will happen then is that the line 1 referencing another file
will be used to apply to the whole contents of the referenced file,
and the resulting computation results will be put directly into the parent file.

*Example:*

before inlining:
file x.dat references file s\somefile.dat by line 1 16 x y z a b c d e f g h i s\somefile.dat

after inlining:
file x.dat will directly contain the lines that previously were found in s\somefile.dat, with the numbers x,y,z,a,b,c,d,e,f,g,h,i applied to it
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 4 Guest(s)