To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 16720
16719  |  16721
Subject: 
Re: LPub 4 Callouts (and other questions)
Newsgroups: 
lugnet.cad
Date: 
Mon, 7 Dec 2009 18:39:33 GMT
Viewed: 
14781 times
  
In lugnet.cad, Kevin L. Clague wrote:

<snip>
When an assembly is too large to fit on the page, LPub crops the image.
When one drags the assembly image to another position LPub does not redraw
the image.
See:
http://www.binarybricks.nl/test/redraw.html

Thanks, that's exactly what I meant.  I do instructions for multi thousand
part models, so it is quite common for the assembly not to fit on the page.
The workaround I have used so far is to make my own custom assembly images
from LView and them manually put them in the final PDF file.  That's what I
did <http://www.brickshelf.com/cgi-bin/gallery.cgi?f=381742 here>.

LPub knows what parts are added at each step.  LPub could find the min/max
locations of all parts added and have the look at coordinate be (min_x+max_x)/2,
(min_y+max_y)/2, (min_z+max_z)/2.  This would give a general idea of where to
look.

One question is, though can I do this all the time, or should I do it as a
special case?  LPub always find the min/max (for all dimensions) for the parts
in the model, and then centers the model on (min_x+max_x)/2, (min_y+max_y)/2,
(min_z+max_z)/2.  Maybe now I center it on the "center" of the added parts.

I'll have to play with it and see what I can come up with.  I've been away from
LPub for a while and it is hard to ramp back up, but that portion of the code is
pretty straightforward.

Kevin

Pardon me replying to my own post.....

The above may help with LPub showing the right portion of a large mode, but it
doesn't help with cropping the image size to contain what has changed, which I
think would have a significant impact on building instruction size.  LEGO does
occasionally show cropped portions of whole model images, but they don't do that
as a general rule.  But then again, they don't generally sell 25 foot tall Sears
towers.

LPub already has a mechanism for identifying where callouts are added to a model
so it can place the arrows from the callout to the center of the callout usage.
I suppose it could do a similar thing for "parts added in this step" and crop
the image to contain those.  I'm pretty sure that would not be the default
behavior though.  Egads, more features.

I gotta get through the backlog of bugs first.

Kevin



Message has 1 Reply:
  Re: LPub 4 Callouts (and other questions)
 
(...) No rush Kevin. There are probably not too many of us making instructions for models of this size, and we at least have (painful) workarounds in the interim. If you never get to it, I'm still very thankful for LPub, and if you do get to it, you (...) (14 years ago, 7-Dec-09, to lugnet.cad)

Message is in Reply To:
  Re: LPub 4 Callouts (and other questions)
 
(...) LPub knows what parts are added at each step. LPub could find the min/max locations of all parts added and have the look at coordinate be (min_x+max_x)/2, (min_y+max_y)/2, (min_z+max_z)/2. This would give a general idea of where to look. One (...) (14 years ago, 7-Dec-09, to lugnet.cad)

33 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