Special:
|
[DAT] (requires LDraw-compatible viewer)
|
Subject:
|
Re: Summary of LPub4 Meta commands?
|
Newsgroups:
|
lugnet.cad
|
Date:
|
Tue, 2 Dec 2008 21:42:54 GMT
|
Viewed:
|
7352 times
|
| |
| |
In lugnet.cad, Jim DeVona wrote:
> In lugnet.cad, Mike Walsh wrote:
>
> > I still couldn't figure out to to make one callout for a sub model which is used
> > 4 times and add "x4" to the callout. Is that possible?
>
> It is. LPub should do so automatically when you create a callout of a submodel
> used multiple times in one step. The callout begin/end meta commands surround
> both references. For example:
>
> 0 !LPUB CALLOUT BEGIN
> 1 71 30 -70 -50 0.66913 -0.743145 0 0.743145 0.669131 0 0 0 1 Strut
> 1 71 -30 -70 -50 0.66913 0.743145 0 -0.743145 0.66913 0 0 0 1 Strut
> 0 !LPUB CALLOUT END
But if you have something besides Strut between the two Strut, it doesn't work.
1 71 30 -70 -50 0.66913 -0.743145 0 0.743145 0.669131 0 0 0 1 Strut
1 0 0 0 0 1 0 0 0 1 0 0 0 1 foo.dat
1 71 -30 -70 -50 0.66913 0.743145 0 -0.743145 0.66913 0 0 0 1 Strut
ends up as:
0 !LPUB CALLOUT BEGIN
1 71 30 -70 -50 0.66913 -0.743145 0 0.743145 0.669131 0 0 0 1 Strut
0 !LPUB CALLOUT END
1 0 0 0 0 1 0 0 0 1 0 0 0 1 foo.dat
1 71 -30 -70 -50 0.66913 0.743145 0 -0.743145 0.66913 0 0 0 1 Strut
This has been changed so that if foo.dat is not a submodel, it is ignored.
So "Convert to Callout" looks forward and backward in the file to find
a) more Struts that are not mirrored
increment instance count
b) Struts that are mirrored
These stop LPub from searching current direction
c) new submodel not of type Strut
These stop LPub from searching current direction
d) non-submodel (e.g. library parts)
These are ignored.
>
> Those struts are from step 15 of this page:
>
> http://flickr.com/photos/anoved/2767921167/
>
> I think there may be some circumstances where it doesn't work - if the submodels
> are mirrored, perhaps?
>
> I made a crude tutorial for LPub that may or may not be informative:
>
> http://www.viddler.com/explore/anoved/videos/22/
This is a great video.
>
> In any case, I hope this helps. Have fun!
>
> Jim
|
|
Message is in Reply To:
| | Re: Summary of LPub4 Meta commands?
|
| (...) It is. LPub should do so automatically when you create a callout of a submodel used multiple times in one step. The callout begin/end meta commands surround both references. For example: 0 !LPUB CALLOUT BEGIN 1 71 30 -70 -50 0.66913 -0.743145 (...) (16 years ago, 29-Nov-08, to lugnet.cad)
|
7 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|