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.

Disappearing lines

Started by Dr PR, November 01, 2012, 01:26:29 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Dr PR

I am seeing another really strange display problem.

I am working in wireframe mode, 3D Perspective view. I have drawn some lines and circles and they are visible.

When I draw new lines with the "V" function (Draw/Lines/Line) they disappear immediately. I see the "rubberband" while I am drawing, but after I set the last point and end the command the line is not visible.

If I change to Parallel view the lines reappear! Switching back to Perspective causes them to disappear again!

If I zoom out to view everything the lines reappear far away from where I thought I was drawing them - about 5000 drawing units from the other parts of the drawing. View distance is 10000 drawing units. Apparently I am drawing the objects behind the viewpoint!?

I used the "Point Relative" command to draw the first disappearing line. I started the "V" setting one point manually and then used "Point Relative" from a reference point to place the second point, using the first as the reference. Somehow the Z distance moved about -5000 drawing units from the last objects I drew. I'm pretty sure I set the Z value to 0 in the "Point Relative" function. Strange!

Anyway, if things disappear in 3D mode with Perspective view, check the view distance in the View Toolbox.

Phil
DesignCAD user since 1987

prl

Where is absolute 0,0,0 (default origin) relative to your model?  Sometimes I get what you are describing if in perspective mode and I've moved too far away from the origin.

Lar

Being in Perspective mode with a small viewing distance (relative to the model) moves the camera closer to the focal point (which accounts for the distortion) so I guess it's possible to draw something behind the camera. If you use the viewing distance arrow to set backwards the lost entity will eventually come into view (and you will lose more and more perspective).

Lar

Dr PR

prl,

I have no idea where the origin is. I do not think I have set the origin in a new drawing since the second drawing I made with  ProDesign back in 1987. The origin is wherever it was when the blank drawing was opened. It is totally irrelevant. Everything in a drawing is relative to everything else, including scale.

There is one caveat to this - when generating STL files you must be certain that all coordinates are positive. So I do set an origin - after the drawing is complete - for files I export to STL.

Phil
DesignCAD user since 1987

Dempsey

Dr PR,

What I remember is that the placement of hatching patterns is relative to the origin too. WHen you are "too far" away from the origin then there was a hatching problem.
Dempsey

Adrian 2.0

I have frequent experiences as Phil's described, when I'm drawing 'behind me'.
There are two elements to fixing this I've found - I think that by default the 'drawing centre' is the 'origin' & if the origin is miles away the problems start.
You can move the origin very easily (menu/point/origin as shown on the attached) & I think this fixes the exploded hatch pattern issue that Dempsy reported.
I don't think that moving the origin also moves the drawing center though. You need to move that independantly which I do with the 'set viewer points' in the view menu.
You have the option to set view centre & a second point sets the direction of view but if you just set one point & 'enter'  the drawing center is moved without changing the viewpoint.
The drawing also rotates around the drawing centre - not the origin, so if you have problems with your drawing flying offscreen when you rotate it, setting the drawing centre in the middle of the bit you are looking at fixes that and it pulls distorted views into true perspective again.

Adrian

prl

Quote from: Dr PR on November 02, 2012, 10:15:20 AM
The origin is wherever it was when the blank drawing was opened. It is totally irrelevant. Everything in a drawing is relative to everything else, including scale.

Phil, being DesignCAD there is something about the location of the origin that affects some operations.  Years ago I wrote a quick "point to zero" macro just so I could double check where 0,0,0 is positioned.  PTZ.d3m is below.  It draws an arrow pointing to zero. You will need to delete the arrow when finished.  It ends up on layer 15. If you use the origin command to move your 0,0,0, I recommend you save and reload the drawing.   

The other habit I have is to keep the view center origin fairly close to the model or absolute zero (at least for the perspective mode). Why should any of this matter, it shouldn't.  However, habit is for me to keep my model and absolute (0,0,0) fairly close together.  Also looking down on my model (plan view,  xz plane), I model in the first quadrant.

'Program:  ptz.d3m (Point to Zero)

now = sys(3)

>Arrow
{
<layer 15
<type 11
<Doublesided 0
<size 2
<Pointxyz -100,-100,-100
<Pointxyz 0,0,0
}

sys(3)=now

End

Dr PR

There are a few things that are Origin-centric. As Dempsey noted, hatch pattern are positioned relative to the Origin. Therefore, you can use the Origin to force hatch patterns to conform to other drawing elements.

As I said, I completely ignore the Origin, and have done so for decades. I have never noticed any significant consequence of this in any operation in DesignCAD. I suspect I have created some of the largest and most complex drawings made with the program, and in that respect I am always tempting fate. Objects in my drawings are created relative to other objects, with no consideration to their positions in some imaginary reference grid. This is the way the real world works - nothing has to be  positioned on imaginary grids. This may be one of the reasons I have so little trouble working in 3D because I ignore irrelevant things like grids and Origins.

As far as view center and other such display operations, none of it has ever made sense to me, and again, I ignore it. I do use the "Set View by Drawing Center" function frequently, and with this the view rotates around the geometrical center of the objects in the drawing - the Origin is irrelevant.

I rarely use "Set View by View Center" because it almost always rotates the obejct I want to view off screen - that is just stupid, as is the necessity to execute another command to set the view center before using this function.

Instead I use the "vc.d3m" macro (attached) that someone posted on the Forum years ago. It works the way the "Set View by View Center" function should work. You gravity snap to a point and then the view rotates around that point. The macro sets the view center to the point you snap to and then starts the view rotation around this center, all with a single click. I have assigned this macro to the "Y" key, replacing the useless "Set View by View Center" function. Again, the Origin is irrelevant.

I do not remember who posted the "vc.d3m" macro (there is no name in the code) but I am forever indebted to him for providing a most useful function.

Phil
DesignCAD user since 1987