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.

DesignCAD 3D Max23. Paper-Space Crash and File Corruption.

Started by DaveTK, April 03, 2014, 02:26:32 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

DaveTK

Quote from: Lar on April 05, 2014, 08:59:37 PM

1] Rather than change the origin it's probably better to select everything and move them to the original origin. One thing I have noticed about changing the origin is that when exporting to other program they tend to go by the original origin (I guess saving and reopening will fix this). .....................................................

Lar


Hi Lar,
      Can you shed any light on what save-close-re-open explicitly does to help with resetting the origin, apart from purge undo data?
Also, do you have any explanation as to why resetting the origin is only a partial fix without the save-close-re-open routine? Probably the same question really.
The reason I ask is that until saving-opening, each time you traverse between 2D and 3D the views move out of frame.

David

Dean

Hi Dave, BUG! :P start over! and send that file to DT. That file is corrupt. I can confirm if that helps. I've never seen anything like that in all the years I've been using dcad. I can't even draw in 3d main view, weird. My computer starts running in to overdrive. How did that file originate, did you draw a cube or copied from some other program?I have experienced Dcad's  issues and glitches with graphics but nothing like that.
Also, a thought, where did you create that title block, in paperspace? was that drawn in Dcad or copied from some other program?. just throwing out some ideas....
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

Dean

Hi Dave, try the attached file. I think I might of fixed it. It appears to be working for me.
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

DaveTK

Hi  Dean,
      you're way behind the curve on this thread.
Most of the answers to your question can be answered from my initial question Page1.
Although the file does have some corruption in it, Reply#16 by Rob S is a solution to recovery of the file.
The important aspect of the fix is the Save-Close-Re-open, once the origin has been reset to 0,0,0.

The template is the first one in the standard list in my trial copy of DCAD. "A-Landscape-4View"
It is paperspace that crashes regularly sometimes causing the corruption.
David

DaveTK

Quote from: Dean on April 06, 2014, 11:13:00 AM
Hi Dave, try the attached file. I think I might of fixed it. It appears to be working for me.

Dean,
Downloaded it. yes it works.
Does your method of recovery differ at all from that of Rob S ?
David

prl

Dave,

I do prefer Lar's approach.  Rather than using the "origin" command, instead moving your model to the origin.  If you're not familiar with macros yet, here is a starter one for you.  It will take the selected object (or objects, in other words the selection) and moves it to 0,0,0.  In your original problem drawing, you can select the object in any one of the available views and on the command line type mtz.  That will begin the process of straightening out this drawing.

'Program: mtz.d3m (move to zero)

if sys(80)=0 then
  Message "Nothing selected. . . press any key to continue"
  END
end if

if sys(80) > 0 then
   Sys(1027) = 4 'Yes/No MessageBox style
   Message "This will move selection to 0,0,0 using primary handle. Do you wish to continue?"
   if sys(1028) = 7 then
      sys(80) = 0
      end
   end if
endif

>DragMove
{
<Pointxyz [0, 0, 0]
}

regen
End

DaveTK

Quote from: prl on April 06, 2014, 11:54:25 AM
Dave,

I do prefer Lar's approach.  Rather than using the "origin" command, instead moving your model to the origin. 

prl,
OK. I'm officially impressed!
The macro worked fine.
Can you please tell me why it is different to resetting the origin manually and doing the, "save-close-reopen" routine.

David


prl

Quote from: DaveTK on April 06, 2014, 12:37:42 PM
Can you please tell me why it is different to resetting the origin manually and doing the, "save-close-reopen" routine.

Dave, historically DesignCAD has some quirks.  I've been tracking the origin bug for a few years.  There was also a bug that has hopefully been fixed that deals with temporary work planes.  In all these instances, DesignCAD remaps the real world coordinates of the objects to a different origin or different xyz system.  Of course with temporary work planes the objective is temporary so DesignCAD holds the original coordinates in reserve.  Somehow it is doing something like this for the origin command.  The process of saving and reopening the drawing after using the origin command forces DesignCAD to commit the new temporary coordinates to permanent status.  Plus the process of saving and reopening also resets a host of internal standard settings.   Clear as mud?


DaveTK

Quote from: prl on April 06, 2014, 01:19:23 PM

........... I've been tracking the origin bug for a few years. .................................
Now I've got this mental image of you checking for paw prints and carrying a rifle looking for a Sasquatch rather than a piece of errant code.  LOL  :)

Quote from: prl on April 06, 2014, 01:19:23 PM

The process of saving and reopening the drawing after using the origin command forces DesignCAD to commit the new temporary coordinates to permanent status.  Plus the process of saving and reopening also resets a host of internal standard settings.   Clear as mud?

Your explanation is logical, plausible and well thought out. It makes a lot of sense to me and in the words of The Monkeys, I'm a believer.  [1960's pop group for those that don't know who are The Monkeys ]

I only wish I understood the syntax of the Basic code you used so that I could follow it better. At the moment I'm having enough difficulty learning how to use the drawing package, but I'll get there eventually.

Perhaps you ought to add the macro to the Tips and Trick section of the forum.

Excellent piece of work!

David

Dr PR

DesignCAD user since 1987

DaveTK

Quote from: Dr PR on April 06, 2014, 02:28:47 PM
Sasquatch? Are you in the PNW?

Phil


No Phil,
I'm in the UK. Though I'd like to be in the PNW. I do like solitude. (so what am I doing on a forum then! I hear you ask.  :))
David

Dean

Quote from: DaveTK on April 06, 2014, 11:26:02 AM
Quote from: Dean on April 06, 2014, 11:13:00 AM
Hi Dave, try the attached file. I think I might of fixed it. It appears to be working for me.

Dean,
Downloaded it. yes it works.
Does your method of recovery differ at all from that of Rob S ?
David

David
I'm not sold on this "origin" fix. There has to be something else that's triggering a nasty BUG. Why does the file I posted work for you? If you would have looked at the "Z" coordinate in the file that I posted you'd see the cube is still at your original "Z" -3570.875 I didn't change any coordinates so obviously it's more to it than the "origin".
I would send the original file to DT (Forum moderator) so he can look at and possibly trace your steps and catch the bug. As I said before, I have never seen Dcad act that way.  I create walk through animations with Dcad, believe me I know all about perspective views.
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

prl

Quote from: DaveTK on April 06, 2014, 01:53:17 PM
I only wish I understood the syntax of the Basic code you used so that I could follow it better. At the moment I'm having enough difficulty learning how to use the drawing package, but I'll get there eventually.

David, glad to help you anyway I can.  Including pointing you to learning BasicCAD etc. A BasicCAD reference manual can be found here: http://forum.designcad.com/index.php?topic=5    In Chapter 1, the first section is called BasicCAD Essentials.  It is a good summary.

Occasionally we (the forum guys) have exploded the new guy's head with too much at once.  So you call the shots and say when.


Dr PR

David,

BasiCAD is a variation on a programming language called BASIC. It was the "training wheels" language for new programming students back in the 70s when I was learning programming. You can find books about BASIC in libraries and used book stores (or on line). These will help ypu understand the syntax of the language, and the BasiCAD manual will fill in the CAD program additions.

Of course, you can always ask here and learn all you need to know and a lot more.

Phil
DesignCAD user since 1987

Dean

David
here is a video demonstrating how I fixed your file without adjusting the cube's origin.

check it out..https://www.youtube.com/watch?v=D5Ez8a9SjBA
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit