Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

desperately need to delete a non-graphical AECCivilCogo object...

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
253 Views, 4 Replies

desperately need to delete a non-graphical AECCivilCogo object...

Many of my drawings crash when plotting in LDT 2006 using the latest OCE .ldf driver.
I believe its due to an AECCivilCogo non-graphical object for good reasons 🙂
The reasons are long to explain, I will if you want though.
I attached a drawing that crashes, it is practically blank.
If you open it in MAP, you will see the proxy warning box.
I also attached a jpg of the proxy box.

Can anyone tell me how to delete that non-graphical proxy object?

An interesting thing is that if you open the drawing in a Map session, and save, the problem stops - Until you try to
plot in LDT. If you can help me on this, I will pay. So far, Autodesk and OCE have not provided me people that could
do anything useful. If I could solve these crashes, it would be worth lots.
thx
James Maeding
Civil Engineer and Programmer
jmaeding - athunsaker - com
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

Hi James,

The first thing to do is to delete all the normal drawing objects till you
reach the stage where you have a minimalist drawing still containing the
object causing the crash.

Then run some VBA code like
dim oObj as Object
For each oObj in ThisDrawing
Debug.Print oObj.Name
Next

The list of output should be small enough for you to identify what is still
left in the drawing.

You may be able then to add extra code like

If oObj.Name = "Whatever" then
oObj.Delete
End if

This is not the complete solution, but something along these lines should
get you on the way.

--

Regards,


Laurie Comerford
www.cadapps.com.au



"James Maeding" wrote in message
news:5026239@discussion.autodesk.com...
Many of my drawings crash when plotting in LDT 2006 using the latest OCE
.ldf driver.
I believe its due to an AECCivilCogo non-graphical object for good reasons
:)
The reasons are long to explain, I will if you want though.
I attached a drawing that crashes, it is practically blank.
If you open it in MAP, you will see the proxy warning box.
I also attached a jpg of the proxy box.

Can anyone tell me how to delete that non-graphical proxy object?

An interesting thing is that if you open the
drawing in a Map session, and save, the problem stops - Until you try to
plot in LDT. If you can help me on this, I will pay. So far, Autodesk and
OCE have not provided me people that could
do anything useful. If I could solve these crashes, it would be worth lot
Message 3 of 5
Anonymous
in reply to: Anonymous

James,
I don't know if this is your solution, but this removes the objects that
forces the proxy notice.

(setq *doc* (vla-get-activedocument (vlax-get-acad-object)))
(setq dicts (vla-get-dictionaries *doc*))
(vlax-for dict dicts
(if (and (vlax-property-available-p dict 'name)
(wcmatch (strcase (vla-get-name dict)) "AEC*")
)
(vla-delete dict)
)
)

I tried removing the 4 dictionaries individually, but only the removal of
all of them stopped the proxy notice from appearring.

When opening in Land2006 only 1 of them is reinstated: AecCvDwgPointIndex

Hope this gets you going in the right direction....
Jeff

"James Maeding" wrote in message
news:5026239@discussion.autodesk.com...
Many of my drawings crash when plotting in LDT 2006 using the latest OCE
.ldf driver.
I believe its due to an AECCivilCogo non-graphical object for good reasons
:)
The reasons are long to explain, I will if you want though.
I attached a drawing that crashes, it is practically blank.
If you open it in MAP, you will see the proxy warning box.
I also attached a jpg of the proxy box.

Can anyone tell me how to delete that non-graphical proxy object?

An interesting thing is that if you open the
drawing in a Map session, and save, the problem stops - Until you try to
plot in LDT. If you can help me on this, I will pay. So far, Autodesk and
OCE have not provided me people that could
do anything useful. If I could solve these crashes, it would be worth lot
Message 4 of 5
Anonymous
in reply to: Anonymous

good stuff, both of you.
I have tried a lot of angles, but these are a bit different. Variety is nice.

Jeff Mishler
|>James,
|>I don't know if this is your solution, but this removes the objects that
|>forces the proxy notice.
|>
|>(setq *doc* (vla-get-activedocument (vlax-get-acad-object)))
|>(setq dicts (vla-get-dictionaries *doc*))
|>(vlax-for dict dicts
|> (if (and (vlax-property-available-p dict 'name)
|> (wcmatch (strcase (vla-get-name dict)) "AEC*")
|> )
|> (vla-delete dict)
|> )
|> )
|>
|>I tried removing the 4 dictionaries individually, but only the removal of
|>all of them stopped the proxy notice from appearring.
|>
|>When opening in Land2006 only 1 of them is reinstated: AecCvDwgPointIndex
|>
|>Hope this gets you going in the right direction....
|>Jeff
|>
|>"James Maeding" wrote in message
|>news:5026239@discussion.autodesk.com...
|>Many of my drawings crash when plotting in LDT 2006 using the latest OCE
|>.ldf driver.
|>I believe its due to an AECCivilCogo non-graphical object for good reasons
|>:)
|>The reasons are long to explain, I will if you want though.
|>I attached a drawing that crashes, it is practically blank.
|>If you open it in MAP, you will see the proxy warning box.
|>I also attached a jpg of the proxy box.
|>
|>Can anyone tell me how to delete that non-graphical proxy object?
|>
|>An interesting thing is that if you open the
|> drawing in a Map session, and save, the problem stops - Until you try to
|>plot in LDT. If you can help me on this, I will pay. So far, Autodesk and
|>OCE have not provided me people that could
|>do anything useful. If I could solve these crashes, it would be worth lot
James Maeding
Civil Engineer and Programmer
jmaeding - athunsaker - com
Message 5 of 5
Anonymous
in reply to: Anonymous

FIXED! I am Mr. Happy Boy now, what a load off.

James Maeding
|>Many of my drawings crash when plotting in LDT 2006 using the latest OCE .ldf driver.
|>I believe its due to an AECCivilCogo non-graphical object for good reasons 🙂
|>The reasons are long to explain, I will if you want though.
|>I attached a drawing that crashes, it is practically blank.
|>If you open it in MAP, you will see the proxy warning box.
|>I also attached a jpg of the proxy box.
|>
|>Can anyone tell me how to delete that non-graphical proxy object?
|>
|>An interesting thing is that if you open the
|> drawing in a Map session, and save, the problem stops - Until you try to
|>plot in LDT. If you can help me on this, I will pay. So far, Autodesk and OCE have not provided me people that could
|>do anything useful. If I could solve these crashes, it would be worth lots
James Maeding
Civil Engineer and Programmer
jmaeding - athunsaker - com

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost