Open OLE File (Can not activate a static ActiveX object)

Open OLE File (Can not activate a static ActiveX object)

a.tawkXHKN6
Contributor Contributor
38,005 Views
10 Replies
Message 1 of 11

Open OLE File (Can not activate a static ActiveX object)

a.tawkXHKN6
Contributor
Contributor

I am trying to open OLE object embedded within a CAD drawing but i am getting this message (Can not activate a static ActiveX object). This OLE is originally copied from excel. Is there a way to turn around. (see attached). 

open OLE file .png

38,006 Views
10 Replies
Replies (10)
Message 2 of 11

Anonymous
Not applicable

Same problem here, it happened after I broke the link.

0 Likes
Message 3 of 11

CodeDing
Advisor
Advisor

@Anonymous ,

 

Can you post the Miscellaneous properties of your OLE, please?

image.png

0 Likes
Message 4 of 11

Anonymous
Not applicable

I'm using Civil3d as AutoCAD version 2013OLE.jpg

0 Likes
Message 5 of 11

CodeDing
Advisor
Advisor

@Anonymous ,

 

Run the command OLELINKS and see if you can resolve your issue via the dialog box that pops up.

 

--EDIT--

If NO dialog box appears, then I do not believe it is possible to restore the OLE.

Imagine an OLE like a file in a folder on your computer, then imagine breaking the link on the OLE similar to opening your file and erasing everything inside your file and pressing save and closing the file. You now have no way of restoring what was inside your file, UNLESS you have previous versions of that file saved somewhere. The same would go for your OLE, if you have a previous version of your .dwg file saved somewhere, then you can use the good link.. But as it stands, Autocad has already erased the relevant information about your OLE and moved on, so we cannot expect AutoCAD to simply be able to restore our OLE, we would have to create another one from scratch.

 

Best,

~DD

Message 6 of 11

bpalakkal
Community Visitor
Community Visitor
Please advice how to solve this problem
0 Likes
Message 7 of 11

gusgianetti
Community Visitor
Community Visitor

Hi, i solved it, you need to have access to the main document and press "Enable editing". Then copy and paste to the Autocad file.

Message 8 of 11

Pfizer_Drafter
Community Visitor
Community Visitor

HELLO,

how to short out this issues

0 Likes
Message 9 of 11

lohardeepak
Community Visitor
Community Visitor

Same error

0 Likes
Message 10 of 11

BlackBox_
Advisor
Advisor

I recently ran into this also, inheriting a project near completion, where the engineer had specifically mentioned that the OLE stopped allowing them to open the source a long time ago. 

 

First, I used @_gile 's Inspector to identify that there was in fact a source file path still associated with the OLE entity: 

 

https://github.com/gileCAD/Gile.Inspector

 

That led me to develop a ContextMenuExtension that opens the OLE source when the Ole2Frame.IsLinked==true, so we can still use most OLE even when the OOTB menus don't work. 

 

Even if you don't develop a .NET plugin for this, Inspector will allow you to find the information that is available for copy + paste, etc.

 

HTH


"How we think determines what we do, and what we do determines what we get."

Sincpac C3D ~ Autodesk Exchange Apps

0 Likes
Message 11 of 11

daniel.older
Community Visitor
Community Visitor

A work-around for this is to copy the table from AutoCAD and then paste it into Adobe Acrobat. After that, you can highlight all the text in Adobe and paste it back into an Excell sheet and paste. Make sure when you copy from Adobe to "copy with format" (right mouse click). From here you will need to do some adjusting of the columns and rows, but it sure beats typing out the whole table again. Finally, copy the table and paste back into AutoCAD and a new link has been made. Hope that works for you.

 

-Daniel