Author Topic: Deleting Ghost Parcel Segments  (Read 15197 times)

0 Members and 1 Guest are viewing this topic.

Dan Higgins

  • Guest
Deleting Ghost Parcel Segments
« on: December 02, 2010, 12:04:24 PM »
I have a template with 894 parcel segments from another dwg (maybe came in as block). I can see them in a selection set but cannot delete them. I moved them to layer "delete" and used laydel but still no go(away). When using keyboard and select all they show up in properties box but still cannot delete them. I do not see them on screen and they are in a site called Parcel although in prospector there are no sites.

Any ideas?

Using Civil 3d 2011 with sp's loaded.

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4073
Re: Deleting Ghost Parcel Segments
« Reply #1 on: December 02, 2010, 01:34:35 PM »
Im going to move this to the Civil area as it will get better coverage there.
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

Mark

  • Custom Title
  • Seagull
  • Posts: 28753
Re: Deleting Ghost Parcel Segments
« Reply #2 on: December 02, 2010, 01:46:08 PM »
could you show us the file?
TheSwamp.org  (serving the CAD community since 2003)

Mark

  • Custom Title
  • Seagull
  • Posts: 28753
Re: Deleting Ghost Parcel Segments
« Reply #3 on: December 02, 2010, 03:12:42 PM »
So far I got nothin! I can explode stuff and delete it but it doesn't go away! :)

I'll try some more in the AM
TheSwamp.org  (serving the CAD community since 2003)

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Deleting Ghost Parcel Segments
« Reply #4 on: December 02, 2010, 11:13:23 PM »
Here is both the cleaned up file and the how to clean them yourself in the future.

However I'd rather help you change your process of updating your template so you don't have to.

First; I opened the DWT

Next I expand the SITE

I find the 'parcels' within that site; and RT-Click on then and use the SELECT option
Then I strike the DELETE key
They Go away
Then I delete the now Empty site.

And save as attached DWT.
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Jeff_M

  • King Gator
  • Posts: 4086
  • C3D user & customizer
Re: Deleting Ghost Parcel Segments
« Reply #5 on: December 03, 2010, 12:19:36 AM »
Sorry, Michael. Using Qselect on the 'fixed' dwt yields this:

AutoCAD menu utilities loaded.
Command: _.QSELECT
893 item(s) selected.

The only option for Entities in the Qselect dialog is Parcels. This is 1 less than the original dwt. Entering Erase, All, reselects the same # of objects...repeat, repeat, repeat. Never ends......

Note that the viewcube is also at the weird twist, even though the drawing is in WCS with no twist. I've seen both this the Parcel problem before, but after a week at AU my brain is fried and I can't recall what was done to fix them. I'll try to think of it on the trip home tomorrow, but hopefully someone can figure it out before I get home.

sinc

  • Guest
Re: Deleting Ghost Parcel Segments
« Reply #6 on: December 03, 2010, 01:56:40 AM »
As far as I know, there is still no known "real" fix for the view cube issue.

However...  The very bizarre thing is you can set your drawing to Top View via the Ribbon, View tab, and it will straighten out the view cube, but the view cube will claim to be in an "Unknown UCS".  It works fine, despite this.  You can click on the view cube, and it will rotate your drawing exactly as you expect.  However, if you explicitly set the UCS back to WCS, you're back to the "twisted viewcube" problem, where clicking "Top" in the view cube twists your drawing to a weird angle...

There's one other option, and from what I've seen, it's the "more popular" option...  Go to OPTIONS -> 3D Modeling tab, and turn off the view cube...  ;)

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Deleting Ghost Parcel Segments
« Reply #7 on: December 03, 2010, 04:54:24 AM »
Interesting...I did not notice any issue with said viewcube....

mayhaps my brain is also slightly toasty from AU as well....
Be your Best


Michael Farrell
http://primeservicesglobal.com/

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Deleting Ghost Parcel Segments
« Reply #8 on: December 03, 2010, 11:28:30 AM »
Let's try this again....


Is this file 'clean' enough?
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Dan Higgins

  • Guest
Re: Deleting Ghost Parcel Segments
« Reply #9 on: December 03, 2010, 12:07:16 PM »
That looks like all the extra stuff is gone. I also got the template clean. I used vba and got all the sites (parcel segments show up as sites) and deleted them.
Seems to have worked. How did you get it?

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Deleting Ghost Parcel Segments
« Reply #10 on: December 03, 2010, 02:46:10 PM »
I used a known deficiency in MAP within C3D to clean them out of the file during a query process.
As MAP inside C3D will NOT query ANY objects made by C3D; they were effectively 'stripped' from the file by that failure of product interoperability.

A case of a bad thing being used for good I guess.   
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Dan Higgins

  • Guest
Re: Deleting Ghost Parcel Segments
« Reply #11 on: December 03, 2010, 03:55:06 PM »
Thanks for the help.
I'll have to look into that for future reference.
I know about querying other dwg's to get to data - from way back in the day- but did not realize you could delete data from your current dwg.

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Deleting Ghost Parcel Segments
« Reply #12 on: December 03, 2010, 04:52:58 PM »
Thanks for the help.
I'll have to look into that for future reference.
I know about querying other dwg's to get to data - from way back in the day- but did not realize you could delete data from your current dwg.


You're welcome.

However the QUERY process is NOT performed on the current drawing; it is performed against the drawing(s) that are currently attached and active within the current MAP session.
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Dan Higgins

  • Guest
Re: Deleting Ghost Parcel Segments
« Reply #13 on: January 19, 2012, 08:57:46 AM »
This is in response to a request for the code. Written for C3D 2011. May need to change version.
Careful: this will remove ALL sites. The phantom parcels show up as "sites".

Dim AeccApp As AeccRoadwayApplication
Set AeccApp = ThisDrawing.Application.GetInterfaceObject("AeccXUiRoadway.AeccRoadwayApplication.8.0")
Dim si As AeccSite
Dim sis As AeccSites

Set sis = AeccApp.ActiveDocument.sites

For Each si In sis
sis.Remove (si.name)
Next

ctbailey

  • Guest
Re: Deleting Ghost Parcel Segments
« Reply #14 on: March 19, 2012, 11:59:14 AM »
Thank you Dan for posting this VBA.

One quick question, though... you must have created the TYPE "AeccRoadwayApplication" previously.  What are the subentities of the TYPE that are needed to allow this subroutine to function? 

Thank you very much

Craig Bailey