News:

Please note new Forum URL: forum.designcad.com

Main Menu
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.

Standard DCAD Tiles in 3D

Started by samdavo, May 20, 2013, 01:41:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dempsey

Dr PR,

Right-click on any toolbar, check "Scroll Bar" and you will not be lost again  ;D
Dempsey

samdavo

#31
thanks
all true enough
I guess my main motivation is that the 4 views in background are a pseudo paperspace for HLD dotted lines (which is a work in progress), but also , a better option that the 3+1 layout imo (which I still believe is counter intuitive).
cheers

hey - it's dead simple to turn them off and still work with the workshop (single 5th view) - which as you say can be set as front isometric etc as required.
And when you want to see what the 4 views look like , you simply use the "dct" command (2 cents) design cad tile - and you get the 5 files back.

(edit : in fact it's better to use only the first 4 views - and forget the 5th - and use the main view for working.  And to try to be consistent across several drawings , so that "dct" will bring back the 4 standard views. ) 

samdavo

#32
Couple of points,
1.  Having introduced that 5th view, there is clearly no need for it - you can leave the Top, Front, and Side alone, and blow up the Main View to be the Workshop.  Then when you want the 4 views again, use "dct". 

2. Moving on, I attach that "house+chimney+sun shining down the tubular skylight",  with 6 views instead of 4 , i.e. with two extra views both incidentally looking straight down the tubular skylight.   The sun incidentally is intended to be pretty transparent (but only when I don't select it, which makes its wireframe bright yellow).   (edit - and I have made it possible to get these back again by simply use "dct" on the command line.  i.e. I have set that "sixpack" as the designcad tile (pattern))

3. Again the green cursor lines are evident, and the cursor is clearly near the sun in all views (and both attachments).  Again things line up as third angle projections should do (because I used a diabox-zoomed-up-and-then-fit-all-views-to-window;   but this time, unlike last time, I have deleted it for these screensnaps).

4. As an aside, I notice that thickening up lines only seems to work in wireframe. (final jpeg attachment).  We move on, I just cAn't GeT it to thicken up with dashed lines - and NOoNe else does either !  (clearly - since I've asked many times).

5. I won't continue, because I agree that NO WAY would you use 6 views for anything other than presentation.  (all as per my first post on this thread).  Cheers

samdavo

#33
PS I'll mention another trick (again revolving around screendumps/jpegs).
You will note that the second jpeg attached to Reply #27 has black lines on white.  I attach it again.

The way I did that was to set the background as white,
and then choose the "colour of the selected objects" as black (and made a macro to do that).

So what you are looking at is a screendump with those black lines selected.  (and you can see the blue dot signifying the centre of that selection - although I could easily have reset that to the side somewhere).
(2 cents)
cheers, sam 

PS here's that macro which just changes the selection colour to black.
'macro a blacksel.d3m (amended 20130510) sets all layers to be visible and editable
'also the background is white
'and the selection is black

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


'point =purple
sys(312)=130
sys(313)=0
sys(314)=255

'cursor =purple
sys(331)=130
sys(332)=0
sys(333)=255

'set rubberband = purple
sys(306)=130
sys(307)=0
sys(308)=255

'set selection rubberband to purple
sys(324)=130
sys(325)=0
sys(326)=255

'background to white
sys(321)=255
sys(322)=255
sys(323)=255

'selection to black
sys(315)=0
sys(316)=0
sys(317)=0


Another more "semi-permanent" way to get black lines is this macro which converts all lines to black for printing purposes:-

' BLACKPRN converts entities to BLACK for print purposes
' NB Layers intact, use lay2col after print to get back their orig colours

max = Sys(80)
'sys(80) is nr of items selected

If Sys(80) < 1 Then
    Window 12, 50
    Message "Nothing to do! Select something first..."
    End
End If

'background to white
sys(321)=255
sys(322)=255
sys(323)=255

regen

For i = 1 To max
    GetSelect i, j
    GetAttr j, etype, eselect, elayer, egroup, ered, egreen, eblue, esolid

ered = 0
egreen = 0
eblue = 0

   PutAttr j, etype, eselect, elayer, egroup, ered, egreen, eblue, esolid

Next i
regen


This in turn can be reset to orig colours for those layers with lay2col.d3m
- well at least for the colours that I use.

' lay2col.d3m - uses GetAttr to get colors & layer
' adjusts colours to suit layers, note layer 3 = brown
' and uses PutAttr to put attributes back into entity

Window 12, 50       ' Open a text window 12 lines x 50 characters.
Print " Lay2col shows layers 1-8 as their correct colours"
Print " and dumps the rest into layer 9, lilac "

max = Sys(80)
'sys(80) is nr of items selected

If Sys(80) < 1 Then
    Message "Nothing to do! Select something first..."
    End
End If

For i = 1 To max
    GetSelect i, j
    GetAttr j, etype, eselect, elayer, egroup, ered, egreen, eblue, esolid

  If elayer = 1 Then
ered = 255
egreen = 255
eblue = 255
goto cont
End If

If elayer = 2 Then
ered = 255
egreen = 0
eblue = 0
goto cont
End If

If elayer = 3 Then
ered = 255
egreen = 130
'note brown instead of yellow
eblue = 0
goto cont
End If

If elayer = 4 Then
ered = 0
egreen = 255
eblue = 0
goto cont
End If

If elayer = 5 Then
ered = 0
egreen = 255
eblue = 255
goto cont
End If

If elayer = 6 Then
ered = 255
egreen = 0
eblue = 255
goto cont
End If

If elayer = 7 Then
ered = 0
egreen = 0
eblue = 155
goto cont
End If

If elayer = 8 Then
ered = 146
egreen = 146
eblue = 170
goto cont
End If


Print "layers outside 1 - 8,  eg", elayer, "set to lilac in layer 9"
elayer = 9
ered = 130
egreen = 0
eblue = 255
cont:
   PutAttr j, etype, eselect, elayer, egroup, ered, egreen, eblue, esolid

Next i

sys(34)=0
regen
Anykey





 

samdavo

#34
One final thing, that "set as designCad tile",  it is the default for resetting tiles across all files (just as 3+1 is the factory setting thereof).  For instance, if you have "Save parameters with drwg" clicked, then sure enough, a file called "Briefcase 4 views.dcd" will be saved as 4 views, and reopen as 4 views.

But if in the meantime you have re-"set the designCad tile" to 6 tiles, (just as an experiment) then the instruction DCT will give you 6 tiles forever and a day across all files - until you change it.  In my case, there's no way I would leave it as 6 tiles, (I was just messing around in boats as they say) ...
because otherwise that's what I'll get from  now henceforth.   Best to choose the designCad tile you're happiest with (and I'm going for 4 views).   

Way around it -  all as Lar pointed out on reply #7, (thanks again),
you save any screen configurations with File\Screen Config\Save;   and you Load em again as you wish.

Or if you prefer, here are some macros (dead simple) which work, provided they can find the dcv file(s) in same folder as the macro.

'setting 4 views.d3m is a macro to set four views in third angle projection
>ViewRead
{
  <Filename "C:\2000dc\macros\screen config 4 views.dcv"
  }


Likewise, no prize for guessing what these are ...

'setting 5 views.d3m is a macro to set five views in third angle projection
' well four views plus a workshop view
'BUT WHY NOT USE just FOUR views? and treat Main as your workshop?
>ViewRead
{
  <Filename "C:\2000dc\macros\screen config 5 views.dcv"
  }


and
'setting 6 views.d3m is a macro to set six views in third angle projection
' well, 4 views plus a couple of views for details or other angles
' or maybe zooming in on congested parts to select a point carefully
>ViewRead
{
  <Filename "C:\2000dc\macros\screen config 6 views.dcv"
  }

cheers