Author Topic: Objects disappear after regen  (Read 984 times)

0 Members and 1 Guest are viewing this topic.

Matt__W

  • Seagull
  • Posts: 12942
  • I like my water diluted.
Objects disappear after regen
« on: January 25, 2016, 10:55:40 am »
I've got a DWG that has some objects that...
1) I can't select
2) don't show in a print preview
3) disappear after a REGEN
4) show up again after saving/closing/re-opening the DWG.

I've tried to recover, audit, purge, wblock but nothing works. The weird thing is that after a wblock it looks like the un-selectable, disappearing objects are in the new drawing however I still can't select them and they disappear after a regen.

I've attached the DWG. When I open it, it looks like the attached image. Can someone take a look at it and let me know if you see the same thing and if there's a way to fix it? I could always ask the surveyor to send over a new file but at this point I'm curious as to why it's doing this and how to resolve it (just I know for future reference).

Thanks.
Autodesk Expert Elite
Autodesk Revit Architecture, Structure, MEP Mechanical and MEP Electrical Certified Professional
Building Performance Analysis Certified (BPAC v3.0)
Autodesk Navisworks 2014 Essentials

Rob...

  • King Gator
  • Posts: 3776
  • Take a little time to stop and smell the roses.
Re: Objects disappear after regen
« Reply #1 on: January 25, 2016, 11:00:32 am »
I don't get the ghosts.
CAD Tech

Matt__W

  • Seagull
  • Posts: 12942
  • I like my water diluted.
Re: Objects disappear after regen
« Reply #2 on: January 25, 2016, 11:02:41 am »
Do you see anything??!?
Autodesk Expert Elite
Autodesk Revit Architecture, Structure, MEP Mechanical and MEP Electrical Certified Professional
Building Performance Analysis Certified (BPAC v3.0)
Autodesk Navisworks 2014 Essentials

Rob...

  • King Gator
  • Posts: 3776
  • Take a little time to stop and smell the roses.
Re: Objects disappear after regen
« Reply #3 on: January 25, 2016, 11:06:33 am »
I didn't go to model space before. I see ghosts now and when I regen they go away.
CAD Tech

ronjonp

  • Needs a day job
  • Posts: 6401
Re: Objects disappear after regen
« Reply #4 on: January 25, 2016, 11:08:44 am »
Regen & they go away .. zoom extents & they reappear  :D  .. perhaps proxy objects?


Here's a drawing with them removed.
« Last Edit: January 25, 2016, 11:17:59 am by ronjonp »

Windows 10 x64 - AutoCAD /C3D 2018

Custom Build PC

mjfarrell

  • Seagull
  • Posts: 14101
  • Every Student their own Lesson
Re: Objects disappear after regen
« Reply #5 on: January 25, 2016, 11:18:41 am »
they seem to be on locked layers...

more in a minute
Be your Best


Michael Farrell
http://primeservicesglobal.com/

ronjonp

  • Needs a day job
  • Posts: 6401
Re: Objects disappear after regen
« Reply #6 on: January 25, 2016, 11:20:28 am »
Here's a drawing where you can select them :)

Windows 10 x64 - AutoCAD /C3D 2018

Custom Build PC

mjfarrell

  • Seagull
  • Posts: 14101
  • Every Student their own Lesson
Re: Objects disappear after regen
« Reply #7 on: January 25, 2016, 11:22:02 am »
your ghost objects are belong to you now
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Matt__W

  • Seagull
  • Posts: 12942
  • I like my water diluted.
Re: Objects disappear after regen
« Reply #8 on: January 25, 2016, 12:10:08 pm »
First off, thanks.

Second... what did you guys do to fix the drawing?
Autodesk Expert Elite
Autodesk Revit Architecture, Structure, MEP Mechanical and MEP Electrical Certified Professional
Building Performance Analysis Certified (BPAC v3.0)
Autodesk Navisworks 2014 Essentials

mjfarrell

  • Seagull
  • Posts: 14101
  • Every Student their own Lesson
Re: Objects disappear after regen
« Reply #9 on: January 25, 2016, 12:11:00 pm »
First off, thanks.

Second... what did you guys do to fix the drawing?

I ran a MAP query....after first unlocking all layers in original

BTW

May have started life as an EaglePoint file, as the 'points' were block objects NOT civil objects.
Be your Best


Michael Farrell
http://primeservicesglobal.com/

ronjonp

  • Needs a day job
  • Posts: 6401
Re: Objects disappear after regen
« Reply #10 on: January 25, 2016, 12:34:18 pm »
First off, thanks.

Second... what did you guys do to fix the drawing?
I selected all objects (ctrl+a) then pasted into a new drawing.
To remove the points did a filter by layer PNTS*.

Windows 10 x64 - AutoCAD /C3D 2018

Custom Build PC

rkmcswain

  • Swamp Rat
  • Posts: 850
Re: Objects disappear after regen
« Reply #11 on: October 31, 2017, 09:43:57 am »
what did you guys do to fix the drawing?

DVIEW command, POints, set the camera and target (0,0,0 and 0,0,1).
You may find the current values include a huge "Z" value.
Then regenall.

More details: http://cadpanacea.com/wp/?p=1903

In the most recent case I ran across, this worked for MS, but when we make a viewport in a layout, these 'special' entities are still not selectable in the viewport.
But if we go back to MS, they are okay.

MP

  • Seagull
  • Posts: 17000
  • brevity != aggression
Re: Objects disappear after regen
« Reply #12 on: October 31, 2017, 10:48:29 am »
Quick & Dirty one off bare bones fix:

Code: [Select]
(defun c:Poof ( / ename obj x y )
    (and
        (setq ename (car (entsel)))
        (eq "VIEWPORT" (cdr (assoc 0 (entget ename))))
        (vl-load-com)
        (setq obj (vlax-ename->vla-object ename))
        (equal '(0.0 0.0 1.0) (vlax-get obj 'Direction))
        (setq target (vlax-get obj 'Target))
        (vlax-put obj 'target (append (mapcar 'set '(x y) (vlax-get obj 'Target)) '(0.0)))
    )
    (princ)
)

An aside, if you're curious about the (non trivial) difference between the original dwg and the one Ronjonp posted have a look at the attached object dumps. O.o

Cheers.
\|// Set goal. Experiment tirelessly until
|oo| practice has become expertise.  Loop.
|- | LinkedIn | Dropbox | About

ronjonp

  • Needs a day job
  • Posts: 6401
Re: Objects disappear after regen
« Reply #13 on: October 31, 2017, 10:54:18 am »
Looks like I stripped out a wheee bit of data  ;D

Windows 10 x64 - AutoCAD /C3D 2018

Custom Build PC

mjfarrell

  • Seagull
  • Posts: 14101
  • Every Student their own Lesson
Re: Objects disappear after regen
« Reply #14 on: October 31, 2017, 10:59:47 am »
I didn't lose any data....one of the beauties of a MAP query

ONLY    VALID   Objects are copied from the source file....

Used to be the best 'fix' for a corrupted Land Desktop file.


right up until Autodesk failed to allow MAP to see Civil 3d objects.

Be your Best


Michael Farrell
http://primeservicesglobal.com/

MP

  • Seagull
  • Posts: 17000
  • brevity != aggression
Re: Objects disappear after regen
« Reply #15 on: October 31, 2017, 12:07:38 pm »
Looks like I stripped out a wheee bit of data  ;D

indeed! ;D
\|// Set goal. Experiment tirelessly until
|oo| practice has become expertise.  Loop.
|- | LinkedIn | Dropbox | About