TheSwamp

CAD Forums => CAD General => Topic started by: Matt__W on January 25, 2016, 10:55:40 AM

Title: Objects disappear after regen
Post by: Matt__W 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.
Title: Re: Objects disappear after regen
Post by: Rob... on January 25, 2016, 11:00:32 AM
I don't get the ghosts.
Title: Re: Objects disappear after regen
Post by: Matt__W on January 25, 2016, 11:02:41 AM
Do you see anything??!?
Title: Re: Objects disappear after regen
Post by: Rob... 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.
Title: Re: Objects disappear after regen
Post by: ronjonp 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.
Title: Re: Objects disappear after regen
Post by: mjfarrell on January 25, 2016, 11:18:41 AM
they seem to be on locked layers...

more in a minute
Title: Re: Objects disappear after regen
Post by: ronjonp on January 25, 2016, 11:20:28 AM
Here's a drawing where you can select them :)
Title: Re: Objects disappear after regen
Post by: mjfarrell on January 25, 2016, 11:22:02 AM
your ghost objects are belong to you now
Title: Re: Objects disappear after regen
Post by: Matt__W on January 25, 2016, 12:10:08 PM
First off, thanks.

Second... what did you guys do to fix the drawing?
Title: Re: Objects disappear after regen
Post by: mjfarrell 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.
Title: Re: Objects disappear after regen
Post by: ronjonp 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*.
Title: Re: Objects disappear after regen
Post by: rkmcswain 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.
Title: Re: Objects disappear after regen
Post by: MP 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.
Title: Re: Objects disappear after regen
Post by: ronjonp on October 31, 2017, 10:54:18 AM
Looks like I stripped out a wheee bit of data  ;D
Title: Re: Objects disappear after regen
Post by: mjfarrell 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.

Title: Re: Objects disappear after regen
Post by: MP on October 31, 2017, 12:07:38 PM
Looks like I stripped out a wheee bit of data  ;D

indeed! ;D
Title: Re: Objects disappear after regen
Post by: usane on January 23, 2018, 03:45:45 PM
This is on old post, but i have the same issue with autocad general. I have found post with this issue from 2010 so its not new.
Weird its hadnt been patched since then.
Any idea what cause this, or a solution?

Sorry for bad english.
Title: Re: Objects disappear after regen
Post by: mjfarrell on January 23, 2018, 03:58:01 PM
This is on old post, but i have the same issue with autocad general. I have found post with this issue from 2010 so its not new.
Weird its hadnt been patched since then.
Any idea what cause this, or a solution?

Sorry for bad english.

The 'ghost' objects were possibly made in a non autodesk product, was my conclusion...

Attach a copy of your affected file, and we can have a look at it, possibly repair and return it to you.
Title: Re: Objects disappear after regen
Post by: usane on January 25, 2018, 07:27:28 AM
This is on old post, but i have the same issue with autocad general. I have found post with this issue from 2010 so its not new.
Weird its hadnt been patched since then.
Any idea what cause this, or a solution?

Sorry for bad english.

The 'ghost' objects were possibly made in a non autodesk product, was my conclusion...

Attach a copy of your affected file, and we can have a look at it, possibly repair and return it to you.

Thank you mjfarell, but i've already fixed it. Copied to a new draing.
BTW it was fully created in autocad by me.
I've made some testing and seems regen screws it up somehow. I use regen a lot. Its habitat. If i dont use regen , everything works fine. No unselectable objects and no disappearing objects. When i use regen, something goes wrong at a point. I thouth it is maybe graphic card related, but i've read it happened with Quadro card also wich is Autocad certified. I try to use redraw instead of regen, but that doesnt solve everything regen could.
As for the testing,i  don't know if any other circumstances need regen to go wrong. I have xrefs (also drawn with the same autocad) in my drawing, blocks, and was goups too. First i thouth groups the problem, but it went go wrong without the groups too. So beyond regen i dont have a clue.