Slinger's Thoughts

April 1, 2008

Autodesk almost gets it right!

Filed under: SharePoint — Tags: , — slingeronline @ 8:10 am

Well DWG True View 2009 was released recently, and I thought I would give it a shot. The software is free after all.  I downloaded the installer, and unzipped it to a local folder.  I didn’t run the install yet, because I wanted to check everything there was to check first.  I carefully scrutinized the setup.ini for any hint of an item that needed to be changed.  I didn’t find anything.  Then I ran the setup program, option for the custom installation option instead of a typical installation so that I could catch anything that needed to be changed.  It all installed.  I was asked to reboot my computer.  I went to my SharePoint site and clicked on an AutoCAD drawing…

… and I got a blank white screen in Internet Explorer.  I checked my Internet Explorer options to see if that ActiveX control was still there.  It was.  I checked to see if DWG True View 2008 was still there, and it was also.  This may have been my problem.  I uninstalled the useless 2008 version and tried again.  This time I got a familiar and friendly window. “What would you like to do with this file? Open, Save, Cancel.”  I clicked on “Open” and it asked me “open with what?”  Apparently uninstalling 2008 broke an association.  No matter.  I uninstalled 2009 and then re-installed it.  I clicked on the DWG file again.  It again asked, “Open, Save, Cancel.”  I chose open again, obviously.  DWG True View 2009 Opened.  It opened! It didn’t try and render a damned drawing in Internet Explorer, it actually worked!  Why is it asking me for a template?  I don’t know what the hell that is about, but I imagine that is a damned sight better to solve than what I have been going through.  I don’t know where a template is, so I clicked “Cancel.”  The program chugged away for a minute, flashed the drawing for a split second and then showed a blank screen. Panic set in, as I began to think they Autodesk had simply relocated the problem from Internet Explorer into their own software.  Just as I was about to smash my monitors, the drawing started to flicker and render onto the screen.  And there is was.  Our AutoCAD drawing, from SharePoint, from the Internet, open in True View the way it should have been doing all along.  I had to check though. Is that damned ActiveX control still there? Did they update it? Will everything break on me in a week’s time?  I checked and yes, it is still there. But, it seems that it is not interfering with True View anymore.  We will see.  Now I need to try and get rid of that template problem, but, in the meantime, for those of you out there who use SharePoint, and AutoCAD, there is finally a solution that your clients will not want to throw buildings at you over.  I will see if I can find a solution to that template weirdness, so keep watching, and when I have it, it goes here.

 <*edit I don’t advocate using any version of DWG True View anymore.  I will leave the link, but I highly recommend that you look elsewhere for a solution.> You can get started on the download for True View 2009 here. Remember to uninstall the 2008 version first.

Advertisements

8 Comments »

  1. Does not work for me.
    No drawings rendered after clicking ‘Open’, but the Select Template do popup.

    Comment by Zhang Mingquan — April 2, 2008 @ 3:32 am

  2. Sorry you are having the issue, Zhang. Make sure that you uninstalled the 2008 version. I also found that if the DWG is a template, that something doesn’t quite work right and it crashes, but I did save as and then opened the document and it worked fine. I hope you get it worked out.

    Comment by slinger — April 2, 2008 @ 8:33 am

  3. you rock slinger. pardon my CAD-noob status, i’ve recently been looking around for SharePoint CAD viewers that also enable inline viewing and mark-ups. Any suggestions? Thanks!

    Comment by Henry — April 18, 2008 @ 4:41 pm

  4. Henry,

    I can’t think of anything off hand. You may be relegated to using some kind of DWG True View application. A coworker of mine had suggested that we implement creating a javascript that would load on our home page that over-rides and kills the DWGVIEWRCtrl ActiveX control, that would make all of the DWG True View software behave the way it should. We are still investigating that route. If we find a better solution, it will get posted here.

    Comment by slinger — April 19, 2008 @ 8:04 am

  5. Here I believe is (a) solution. Maybe.
    Save the below as an INF file, then right click / install.
    Run it as is. It adds a reg entry to IE that says “This control is not safe to run, so don’t run it.”
    If that doesn’t work, uncomment the first delreg and re-run it. That says “This is not safe to run automatically, so ask the user first.”
    If all else fails, uncommenting and running ‘nuke’ just deletes the control.

    ——————————————————-

    [Version]
    Signature = “$Windows NT$”

    [DefaultInstall]
    AddReg = addreg
    ;DelReg = delreg
    ;DelReg = nuke

    [addreg]
    HKLM,”SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{6C7DC044-FB1E-4140-9223-052E5ABE7D24}”,”Compatibility Flags”,0x00010001,00,04,00,00
    HKCR,”CLSID\{6C7DC044-FB1E-4140-9223-052E5ABE7D24}\InProcServer32″,”~~Disabled~~”,,”C:\Program Files\DWG TrueView 2009\acctrl.dll”

    [delreg]
    HKCR,”CLSID\{6C7DC044-FB1E-4140-9223-052E5ABE7D24}\Implemented Categories\{40FC6ED4-2438-11CF-A3DB-080036F12502}”
    HKCR,”CLSID\{6C7DC044-FB1E-4140-9223-052E5ABE7D24}\Implemented Categories\{7DD95802-9882-11CF-9FA9-00AA006C42C4}” ; remove “safe for scripting” marker

    [nuke]
    HKCR,”CLSID\{6C7DC044-FB1E-4140-9223-052E5ABE7D24}”

    [Strings]

    Comment by Swami — May 7, 2008 @ 5:22 pm

  6. Hmmm. There are several problems with the formatting as posted. I will mail the file to you instead.

    Comment by Swami — May 7, 2008 @ 5:23 pm

  7. Hey Slinger
    The only thing this does as written is both:
    1. mark the control as an unsafe control for running on a website under IE, and
    2. disable the control without deleting it.

    To undo what you’ve done you could move the addreg section to delreg, REPLACING what is there, and uncomment delreg at the top. But it’s safer to open regedit, navigate to the key, and change the ‘disabled’ string, and navigate to the IE ActiveX compatability key and delete the entry.

    As written the INF is about as safe as it gets. Uncommenting the first delreg section at the top keeps the control but removes the safe for scripting marker (I know what you’re thinking, and yes, the unsafe IE setting in addreg takes precedent anyway) and the last delreg with ‘nuke’ will delete the control’s registry entry entirely. That’s for if you’re at wit’s end.

    No IT person at another firm you’re dealing with worth their salt would question this INF and you should feel free to share it with them. They’ll see right off that all this does is easily undone if they change their mind.

    Here is a streamlined version:
    —————————————————-
    [Version]
    Signature = “$Windows NT$”

    [DefaultInstall]
    AddReg = addreg

    [addreg]
    HKLM,”SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{6C7DC044-FB1E-4140-9223-052E5ABE7D24}”,”Compatibility Flags”,0x00010001,00,04,00,00

    [Strings]
    —————————————————-

    Again, to allow IE to run the control again, just delete this key.

    As for using javascript to catch and prevent a control from running, if this were the ideal solution, Microsoft would have published code for it instead of creating an ActiveX compatibility section under the IE registry section ;-)

    Comment by Swami — May 8, 2008 @ 3:00 pm

  8. I will right away grasp ykur rss as I can’t in finding your e-mail subscripption link or e-newsletter service.
    Do you’ve any? Please permit me know in order that I may subscribe.
    Thanks.

    Comment by polishing concrete floors — April 10, 2015 @ 6:16 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: