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

0 Members and 1 Guest are viewing this topic.

Matt__W

  • Seagull
  • Posts: 12955
  • 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
Revit Subject Matter Expert (SME)
Owner/FAA sUAS Pilot @ http://skyviz.io

Rob...

  • King Gator
  • Posts: 3824
  • 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: 12955
  • 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
Revit Subject Matter Expert (SME)
Owner/FAA sUAS Pilot @ http://skyviz.io

Rob...

  • King Gator
  • Posts: 3824
  • 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: 7526
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 11 x64 - AutoCAD /C3D 2023

Custom Build PC

mjfarrell

  • Seagull
  • Posts: 14444
  • 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: 7526
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 11 x64 - AutoCAD /C3D 2023

Custom Build PC

mjfarrell

  • Seagull
  • Posts: 14444
  • 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: 12955
  • 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
Revit Subject Matter Expert (SME)
Owner/FAA sUAS Pilot @ http://skyviz.io

mjfarrell

  • Seagull
  • Posts: 14444
  • 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: 7526
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 11 x64 - AutoCAD /C3D 2023

Custom Build PC

rkmcswain

  • Swamp Rat
  • Posts: 978
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: 17750
  • Have thousands of dwgs to process? Contact me.
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.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

ronjonp

  • Needs a day job
  • Posts: 7526
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 11 x64 - AutoCAD /C3D 2023

Custom Build PC

mjfarrell

  • Seagull
  • Posts: 14444
  • 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/