DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Paperspace for seniors for dummies

Started by samdavo, April 21, 2013, 02:42:00 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

samdavo

#15
Thanks Mark -
the cactus plant - why didn't I think of that?
and cripes I just had to click the "Specific Scale" to get scale lol.

ok - next question (please) - how do I pan when I have a small detail?  (see the circle)

I enclose jpegs, including the plan and elevations lining up etc - (well almost - the side elevatin needs a bit of attentino I notice)
cheers

samdavo

#16
ahh panning = set focal point - I should check first - cheers

PS Better still - for EITHER panning OR cropping there's a "Section Zoom" (in paperspace toolbar options) , which is the same as "Zoom Window" (in standard drawing mode) - way to go.

And furthermore, because you can "crop/section zoom" -  it means that including 2D drawings in 3D ones - i.e. where the 2D bit is part of the XY plane for example , but no depth ( which would take time etc etc) -  that I discussed back there as being "exciting" -  is dead simple -  I'm guessing experienced DCad-ders were wondering what I was smoking lol. 

Sheesh, this Paperspace is good fun.

samdavo

I believe I'm right in saying that macros don't (easily) work in Paperspace mode.
For instance, I use "I" for Infobox in normal drawing mode.
But when I go to Paperspace, it don't wanna play (and I am told some message about please select a view window lol) 

Why is that? or more importantly
Is there a way to make them work.
Thanks for all the help so far btw. 

MarkX

It appears that all key-mapping disappears in Paperspace mode. And you're right, if you don't have a visual frame selected, it won't even allow you to use "Q" for the options dialog.

But macros may still run if you launch them from a custom toolbar or the command bar. I haven't tried it, but seems like it might work since the command bar seems to still work.

Good luck,
Mark

Dempsey

Paperspace provide view window(s) to your 2D or 3D model. The only functions that work on those view windows are the ones provided on the Paper Space Toolbar.

For drawing lines and text, like drawing titles/info, on the area around the view window(s), you can use the normal 2D modelling tools that are not greyed out. Macros don't work on the view window(s).
Dempsey

samdavo

#20
Thanks gents.
Much appreciated.

PS.  Ahhh (penny's dropped , I think) - quite right - it's mainly about the hotkeys not working.   When I said macros don't work I was wrong .  It is only the hotkey "I" that I set to the command "Infobox".  But if I record a macro "I.d3m" that calls up the infobox, viz ...

">InfoBox
{
  } "

then macro  "I"  works perfectly.  (i.e. either toolbox or - what I am increasingly using - "spacebar - I - enter"
Apologies for a (another) beginner's error

samdavo

#21
well-ll -  there are still some problems.
I have a macro ("a.d3m") that sets all layers as editable.
These are the important lines ...

for j = 0 to 20
layer(j) = 6
next j
layer(sys(3))=14
sys(26)=0


For some reason, when I'm in Paperspace mode, there's a problem with line 4. (??)
(There is no problem in Model space).


 

MarkX

Quote from: samdavo on April 24, 2013, 03:23:19 AM
well-ll -  there are still some problems.
I have a macro ("a.d3m") that sets all layers as editable.
These are the important lines ...

for j = 0 to 20
layer(j) = 6
next j
layer(sys(3))=14
sys(26)=0


For some reason, when I'm in Paperspace mode, there's a problem with line 4. (??)
(There is no problem in Model space).
AFAIK, there's no layers in PS, so not surprising if it crashes. There's only one layer you work on. You can set layers in the viewframes (what layers the VF shows), but you do that through either the infobox  or paperspace toolbar light source and layers setting.

Good luck,
Mark

Dempsey

Adding to MarkX's explanation, when you look at the "current" layer on the Layer Toolbox you will see that the layer name is "Paperspace" and the dropdown list shows no other available layers.
Dempsey

samdavo

ahh yes - Another of those SEAQUEMCS questions...  (such easily answered questions, you'd expect more common sense).   
or maybe EWUKH - easy when you know how  :)
(I promise I won't ask that particular question again lol)
thanks again


samdavo

I'll mention a couple of posts on another thread which are relevant...  Mark's in particular.
- how to delete dimensions in the Isometric View but not in the others.   (dead simple , as Mark says - with dimensions in a layer that can be turned off in that particular view - doh)

http://forum.designcad.com/index.php?topic=4988.15
reply #15.

Personally I blame the lifestyle of the 60's. (2cents)

OK - next comment.  I enclose a drawing with that corrected - much better thanks
And I have set the scales in each view as
1:4 in plan, fron and side views,  ( and 1:3 in isometric - not important imo)

BUT clearly the scale is different ( when you look at it closely eg the 50mm height) in Side rather than front ??

Rob S


That looks great to me, and it is a good example of the use of paperspace, showing 3D views and details on the same sheet.

One further improvement to the above would be to hide the borders of your viewports, so it looks like it is all drawn on one clean drawing.

For anyone reading this and wondering why we do this, here are some additional benefits of using paperspace to present your drawings:

1)  Different viewports and additional layouts of the same model can have different layers set as visible, to display different aspects of the model, which is particularly important for building plans, showing say electrical and plumbing on different layouts. 

2) No matter which layers are on or off in your model, the layers displayed or printed in paperspace remain fixed as you set them for each layout.  Therefore it makes little sense to turn your model layers on or off by way of your normal macro, because the layer settings for the paperspace layout are and should be independent of that..

3) Each layout remains correctly formatted for your papersize, no matter what you add to the model.

4) Edits to your model are normally reflected in all of the affected layouts automatically.

5) The titleblock template is re-used for each additional layout

6) Drawings which need to be printed at a scale too large to fit the paper size you want to use can be divided over additional layouts so each section is presented within your titleblock, without actually chopping up the model.

etc, etc, other may know of additional uses and purposes.



User since forever

MarkX

Quote from: samdavo on April 26, 2013, 06:34:41 PM
Personally I blame the lifestyle of the 60's. (2cents)
For what?

Quote
BUT clearly the scale is different ( when you look at it closely eg the 50mm height) in Side rather than front ??
I'll speculate that you first drew the viewframe with a perspective view. Then you switched over to the side view. Unfortunately,  this locked in the View Distance. Should it do this? No. Probably a very subtle bug.

I just created a new side viewframe, and now it all works. (I think). The main give-away was that the View Distance in your side view was not grayed (or greyed, or 50 shades of greay) out like it is in the other 3 views.

Good luck,
Mark


samdavo

#28
Mark, Don't recall how I chose Side initially (orwhether Perspective was involved or not - I doubt it, but you could be right ) ,  anyway  I do note that you sometimes have to allocate a view (say Side) to a frame, then, if it doesn't look right first go ( and it rarely seems to), you select that view window, change to say top, then back to side, and bu then it is behaving.

On another matter, I have done a macro which is designed to
a) interrogate the drawing (in unlocked layers) to find the range of X Y and Z values in the bounding boxes
b) compare that to the available space on an A4 drawing ( about 157 high x 250 wide after you take off the titleblock)
c) hence calculate the largest scale you can use for this A4 Paperspace, assuming 3 views, top, front and side, (L-shape)
d) draw scaled down rectangles (3 in this L-shape) for the view windows - albeit in modelspace - which can then be copied to Paperspace.

Might take a few posts to get this one explained. lol.  Good luck understanding it ...
E&OE.  I imagine there will be some bugs, eg with Esc to abort etc... 

'Calc and Draw Paperspace Views.d3m - STEP 1.  this sets 6 points centres of bounding box faces PLUS the geometric centre
' records the points in an array, then draws a line- similar to a diamond shape.
'AND sets three handles for the solid or selection etc, = bottom top and side vertices of the diamond;

'STEP 2. It also draws another diamond slightly larger than the first, which has rounded up dimensions (which you choose),
'ideally easy multiples of the scale (which you are about to choose, eg 120 or other multiples of 12 for instance)

'STEP 3. MORE IMPORTANTLY, it also calculates the size of max Paperspace scale that could be used for three
'views, plan, front, and side, on an A4 page - call this scale XY
'- and there is space to add the isometric manually;
'but it then lets you round this scale up to some convenient value.

'STEP 4. It then draws the diamond in 3D scaled down to the dimensions it will be drawn at, eg one third if scale = 3
' (for interest only)

'STEP 5. And finally it draws three small contiguous rectangles in the XY plane,  which are scaled down versions
' of the three View Windows in an L-shape, which can be copied to Paperspace for inserting the View windows  ;
'NB after you copy this, make sure you delete it, because, being a (new) temporary part of the drawing,  it will
'probably upset the Paperspace "flat boxes" allocated to these Views;

'STEP 6 (manual - outside this macro). Just as you must manually copy the L-shaped cluster of rectangles into Paperspace, and delete it in Modelspace,
' you must also load the Plan Front and Side views into the three rectangles (using the square cactus icon "Create View Frame";
' Then when you select the first - lets say Top view - you drag the mouse across the diagonal corners of the first (top) box.
' However it will probably not be the top view at this stage - instead, whilst this view window is selected, open InfoBox,
' change it to say Side View, then change it back to Top View - it should now be correct.
' Then select "View Frame\Centre on View Frame";  and finally select the scale to the same as what you chose when running this macro.
'That completes this view - next go to Front and Side views.

' OK, we start with STEP 1. (the initial diamond within the first bounding box).
' Alloc5te storage for the points.
Dim X(71), Y(71), Z(71)

Message "This will select all material but only in available layers, including dimensions notes etc - and draw a diamond in bounding box, then enlarge this slightly to rounded-up dimensions...(cont)"
Message "... then calculate the max scale of 3 paperspace view windows - and finally draw these windows as an L-shape for copying into Paperspace.  You can press Esc to abort"
If Sys(999) Then
  Message "Cancelled."
  End
  End If

'select all entities in available layers
>SelectAll
{
  }


X(1) = (sys(196)+sys(198))/2 'A top dead centre
Y(1) = sys(199) 'A top dead centre
Z(1) = (sys(200)+sys(201))/2 'A top dead centre

X(2) = sys(196)'B left dead centre
Y(2) = (sys(197)+sys(199))/2 'B left dead centre
Z(2) = (sys(200)+sys(201))/2 'B left dead centre

X(3) = (sys(196)+sys(198))/2 'C btm dead centre
Y(3) = sys(197) 'C btm dead centre
Z(3) = (sys(200)+sys(201))/2 'C btm dead centre

X(4) = sys(198)'D right dead centre
Y(4) = (sys(197)+sys(199))/2 'D right dead centre
Z(4) = (sys(200)+sys(201))/2 'D right dead centre

X(5) = (sys(196)+sys(198))/2 'A top dead centre
Y(5) = sys(199) 'A top dead centre
Z(5) = (sys(200)+sys(201))/2 'A top dead centre

X(6) = (sys(196)+sys(198))/2 'E front dead centre
Y(6) = (sys(197)+sys(199))/2 'E front dead centre
Z(6) = sys(200) 'E front dead centre

X(7) = (sys(196)+sys(198))/2 'C btm dead centre
Y(7) = sys(197) 'C btm dead centre
Z(7) = (sys(200)+sys(201))/2 'C btm dead centre

X(8) = (sys(196)+sys(198))/2 'F back dead centre
Y(8) = (sys(197)+sys(199))/2 'F back dead centre
Z(8) = sys(201) 'F back dead centre

X(9) = (sys(196)+sys(198))/2 'A top dead centre
Y(9) = sys(199) 'A top dead centre
Z(9) = (sys(200)+sys(201))/2 'A top dead centre

X(10) = sys(196)'B left dead centre
Y(10) = (sys(197)+sys(199))/2 'B left dead centre
Z(10) = (sys(200)+sys(201))/2 'B left dead centre

X(11) = (sys(196)+sys(198))/2 'E front dead centre
Y(11) = (sys(197)+sys(199))/2 'E front dead centre
Z(11) = sys(200) 'E front dead centre

X(12) = sys(198)'D right dead centre
Y(12) = (sys(197)+sys(199))/2 'D right dead centre
Z(12) = (sys(200)+sys(201))/2 'D right dead centre

X(13) = (sys(196)+sys(198))/2 'F back dead centre
Y(13) = (sys(197)+sys(199))/2 'F back dead centre
Z(13) = sys(201) 'F back dead centre

X(14) = sys(196)'B left dead centre
Y(14) = (sys(197)+sys(199))/2 'B left dead centre
Z(14) = (sys(200)+sys(201))/2 'B left dead centre

X(15) = (sys(196)+sys(198))/2 'diamond centre, average of min and max X values in the selection
Y(15) = (sys(197)+sys(199))/2 'diamond centre, average of min and max Y values
Z(15) = (sys(200)+sys(201))/2 'diamond centre, average of min and max Z values


>Line
{
    For i = 1 to 15
       <PointXYZ [X(i), Y(i), Z(i)]
    Next i
    }

'next set three handles, at the midface of BOTTOM, top and right faces, as seen when looking along the z axis
'i.e the normal default direction for 2D viewing, which means it also works in 2D

>SetHandle
{
    <Pointxyz [x(3), y(3), z(3)]
    <Pointxyz [x(1), y(1), z(1)]
    <Pointxyz [x(4), y(4), z(4)]
  }

'continuing to STEP 2. (the option of a slightly larger diamond, = optional)

xhalf = (sys(198)-sys(196))/2
yhalf = (sys(199)-sys(197))/2
zhalf = (sys(201)-sys(200))/2

message "current xhalf =", xhalf
input "new xhalf (rounded up) = or press enter to accept current value(or Esc to abort)", Xhalf
If Sys(999) Then
  Message "Cancelled."
  End
  End If
message "current yhalf =", yhalf
input "new yhalf (rounded up) = (or press enter to accept current value)", yhalf
message "current Zhalf =", zhalf
input "new zhalf (rounded up) = (or press enter to accept current value)", zhalf


message "X-extent, Y-entent, Z-extent in modelspace = (manually record these if you wish) " , 2*xhalf, 2*yhalf, 2*zhalf

Xmean = (sys(196)+sys(198))/2
ymean = (sys(197)+sys(199))/2
zmean = (sys(200)+sys(201))/2

X(21) = (sys(196)+sys(198))/2 'A top dead centre
Y(21) = (ymean + yhalf) 'A top dead centre
Z(21) = (sys(200)+sys(201))/2 'A top dead centre

X(22) = (xmean - xhalf) 'B left dead centre
Y(22) = (sys(197)+sys(199))/2 'B left dead centre
Z(22) = (sys(200)+sys(201))/2 'B left dead centre

X(23) = (sys(196)+sys(198))/2 'C btm dead centre
Y(23) = (ymean - yhalf) 'C btm dead centre
Z(23) = (sys(200)+sys(201))/2 'C btm dead centre

X(24) = (xmean + xhalf) 'D right dead centre
Y(24) = (sys(197)+sys(199))/2 'D right dead centre
Z(24) = (sys(200)+sys(201))/2 'D right dead centre

X(25) = (sys(196)+sys(198))/2 'A top dead centre
Y(25) = (ymean + yhalf) 'A top dead centre
Z(25) = (sys(200)+sys(201))/2 'A top dead centre

X(26) = (sys(196)+sys(198))/2 'E front dead centre
Y(26) = (sys(197)+sys(199))/2 'E front dead centre
Z(26) = (zmean - zhalf) 'E front dead centre

X(27) = (sys(196)+sys(198))/2 'C btm dead centre
Y(27) = (ymean - yhalf) 'C btm dead centre
Z(27) = (sys(200)+sys(201))/2 'C btm dead centre

X(28) = (sys(196)+sys(198))/2 'F back dead centre
Y(28) = (sys(197)+sys(199))/2 'F back dead centre
Z(28) = (zmean + zhalf) 'F back dead centre

X(29) = (sys(196)+sys(198))/2 'A top dead centre
Y(29) = (ymean + yhalf) 'A top dead centre
Z(29) = (sys(200)+sys(201))/2 'A top dead centre

X(30) = (xmean - xhalf) 'B left dead centre
Y(30) = (sys(197)+sys(199))/2 'B left dead centre
Z(30) = (sys(200)+sys(201))/2 'B left dead centre

X(31) = (sys(196)+sys(198))/2 'E front dead centre
Y(31) = (sys(197)+sys(199))/2 'E front dead centre
Z(31) = (zmean - zhalf) 'E front dead centre

X(32) = (xmean + xhalf) 'D right dead centre
Y(32) = (sys(197)+sys(199))/2 'D right dead centre
Z(32) = (sys(200)+sys(201))/2 'D right dead centre

X(33) = (sys(196)+sys(198))/2 'F back dead centre
Y(33) = (sys(197)+sys(199))/2 'F back dead centre
Z(33) = (zmean + zhalf) 'F back dead centre

X(34) = (xmean - xhalf) 'B left dead centre
Y(34) = (sys(197)+sys(199))/2 'B left dead centre
Z(34) = (sys(200)+sys(201))/2 'B left dead centre

X(35) = (sys(196)+sys(198))/2 'diamond centre, average of min and max X values in the selection
Y(35) = (sys(197)+sys(199))/2 'diamond centre, average of min and max Y values
Z(35) = (sys(200)+sys(201))/2 'diamond centre, average of min and max Z values


>Line
{
    For i = 21 to 35
       <PointXYZ [X(i), Y(i), Z(i)]
    Next i
    }

'Next STEP 3. Calculate the max scale to fit the A4 page, Landscape   
'(where the available space - after drawing the titleblock - is 250 x 157 approx)

'This is the larger of Y/y or X/x, where X and Y are the model dimns, and x and y are the Paperspace available
'Note that the overall dimensions of the L-shape are 2(zhalf+yhalf) and 2(xhalf+zhalf) - before scaling down in Paperspace
Yony = 2*(zhalf+yhalf)/157
Xonx = 2*(xhalf+zhalf)/250

message "suggested X and Y scales in A4 paperspace =", Xonx, Yony
Input "enter YOUR requested scale knowing you can change it manually later (or press Esc to abort) ", XYscale
If Sys(999) Then
  Message "Cancelled."
  End
  End If
'the x and y dimensions of the top view (plan) are planx x plany
planx = 2*xhalf/XYscale
plany = 2*zhalf/XYscale
frontx = planx
fronty = 2*yhalf/XYscale
sidex = plany
sidey = fronty

message "planx,plany,fronty for interest, option of writing them down" , planx, plany, fronty


'next STEP 4. - to draw a scale model that will fit in paperspace (quite optional in reality)

X(41) = (xmean) 'A top dead centre
Y(41) = (ymean + yhalf/XYscale) 'A top dead centre
Z(41) = (zmean) 'A top dead centre

X(42) = (xmean - xhalf/XYscale) 'B left dead centre
Y(42) = (sys(197)+sys(199))/2 'B left dead centre
Z(42) = (sys(200)+sys(201))/2 'B left dead centre

X(43) = (sys(196)+sys(198))/2 'C btm dead centre
Y(43) = (ymean - yhalf/XYscale) 'C btm dead centre
Z(43) = (sys(200)+sys(201))/2 'C btm dead centre

X(44) = (xmean + xhalf/XYscale) 'D right dead centre
Y(44) = (sys(197)+sys(199))/2 'D right dead centre
Z(44) = (sys(200)+sys(201))/2 'D right dead centre

X(45) = (sys(196)+sys(198))/2 'A top dead centre
Y(45) = (ymean + yhalf/XYscale) 'A top dead centre
Z(45) = (sys(200)+sys(201))/2 'A top dead centre

X(46) = (sys(196)+sys(198))/2 'E front dead centre
Y(46) = (sys(197)+sys(199))/2 'E front dead centre
Z(46) = (zmean - zhalf/XYscale) 'E front dead centre

X(47) = (sys(196)+sys(198))/2 'C btm dead centre
Y(47) = (ymean - yhalf/XYscale) 'C btm dead centre
Z(47) = (sys(200)+sys(201))/2 'C btm dead centre

X(48) = (sys(196)+sys(198))/2 'F back dead centre
Y(48) = (sys(197)+sys(199))/2 'F back dead centre
Z(48) = (zmean + zhalf/XYscale) 'F back dead centre

X(49) = (sys(196)+sys(198))/2 'A top dead centre
Y(49) = (ymean + yhalf/XYscale) 'A top dead centre
Z(49) = (sys(200)+sys(201))/2 'A top dead centre

X(50) = (xmean - xhalf/XYscale) 'B left dead centre
Y(50) = (sys(197)+sys(199))/2 'B left dead centre
Z(50) = (sys(200)+sys(201))/2 'B left dead centre

X(51) = (sys(196)+sys(198))/2 'E front dead centre
Y(51) = (sys(197)+sys(199))/2 'E front dead centre
Z(51) = (zmean - zhalf/XYscale) 'E front dead centre

X(52) = (xmean + xhalf/XYscale) 'D right dead centre
Y(52) = (sys(197)+sys(199))/2 'D right dead centre
Z(52) = (sys(200)+sys(201))/2 'D right dead centre

X(53) = (sys(196)+sys(198))/2 'F back dead centre
Y(53) = (sys(197)+sys(199))/2 'F back dead centre
Z(53) = (zmean + zhalf/XYscale) 'F back dead centre

X(54) = (xmean - xhalf/XYscale) 'B left dead centre
Y(54) = (sys(197)+sys(199))/2 'B left dead centre
Z(54) = (sys(200)+sys(201))/2 'B left dead centre

X(55) = (sys(196)+sys(198))/2 'diamond centre, average of min and max X values in the selection
Y(55) = (sys(197)+sys(199))/2 'diamond centre, average of min and max Y values
Z(55) = (sys(200)+sys(201))/2 'diamond centre, average of min and max Z values

>Line
{
    For i = 41 to 55
       <PointXYZ [X(i), Y(i), Z(i)]
    Next i
    }

'STEP 5.  Finally it draws three small contiguous rectangles in the XY plane,  which are scaled down versions
' of the three View Windows in an L-shape, which can be copied to Paperspace for inserting the View windows

X(61) = xmean
Y(61) = ymean
Z(61) = zmean

X(62) = xmean + frontx
Y(62) = ymean
Z(62) = zmean

X(63) = xmean + frontx
Y(63) = ymean + fronty
Z(63) = zmean

X(64) = xmean
Y(64) = ymean + fronty
Z(64) = zmean

X(65) = xmean
Y(65) = ymean
Z(65) = zmean

X(66) = xmean
Y(66) = ymean + fronty + plany
Z(66) = zmean

X(67) = xmean + planx
Y(67) = ymean + fronty + plany
Z(67) = zmean

X(67) = xmean + frontx 
Y(67) = ymean + fronty + plany
Z(67) = zmean

X(68) = xmean + frontx
Y(68) = ymean + fronty
Z(68) = zmean

X(69) = xmean + frontx + sidex
Y(69) = ymean + fronty
Z(69) = zmean

X(70) = xmean + frontx + sidex
Y(70) = ymean
Z(70) = zmean

X(71) = xmean + frontx
Y(71) = ymean
Z(71) = zmean


>Line
{
    For i = 61 to 71
       <PointXYZ [X(i), Y(i), Z(i)]
    Next i
    }

message "Now you MUST cut and paste the L-shaped rectangle into Paperspace - etc - good luck, The End"
End
   

So here's a drawing of an "object" - a briefcase - with two cheeseburgers for lunch.
Note that the drawing just has a blank Paperspace at this atage.
(and I'm doing this in real time - so you'll get an idea how long it takes.
Maybe I'll do it with "live posts following progress" and then explain what I did in the final post.

samdavo

ok here it is after running the macro.  Note that diamond, and incidentally I had the choice of scales of (from memory 3.6 for x, and 4.7 for y, so I chose 5.  Paperspace is still blank.

HOWEVER, (and I highlight it in yellow),  there's a small L shaped set of contiguous rectangles in there (parallel to the XY plane)  - and that's what I now have to copy (in fact CUT) and paste onto the paperspace drawing.   

(If you look real close there's also a small diamond within the big diamond - which is 1/5 th scale - just for info , and not used - although you can menasure it I guess , if you want to know the biggest paperspace dimensions o the various views.