Results 1 to 4 of 4

Thread: Resources issue

  1. #1
    Member
    Join Date
    2011-05
    Posts
    5
    Login to Give a bone
    0

    Default Resources issue


    Hello,

    When I wrote in VBA I did not have to think about where my resources are coming from.
    Now, when I’m writing in VB.NET I do have to think where my resources are coming from.
    At the site I’m working for we have (mainly) two types of AutoCAD installations, regular AutoCAD and mechanical AutoCAD (when the users I’m talking about are using the Mechanical AutoCAD they are using it in the Vanilla Profile.
    When writing an application that using the AutoCAD resources it remembers the location of the needed resource and then when trying to use the application on a different type of AutoCAD, it can not find its resources.

    Is there a way to go around it? Is it possible to “ship” the application with the recognized/needed dlls and to have AutoCAD Mechanical use the “regular” AutoCAD dlls?


    Thanks in advance,
    David.

  2. #2
    AUGI Addict sinc's Avatar
    Join Date
    2004-02
    Location
    Colorado
    Posts
    1,986
    Login to Give a bone
    0

    Default Re: Resources issue

    This is a very vague question...

    What "resources" are you referring to?

  3. #3
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,724
    Login to Give a bone
    0

    Default Re: Resources issue

    It sounds like David has written some code for Mechanical, which cannot find the mech. specific .DLLs when run on vanilla AutoCAD.

    I'll offer the example of a Civil 3D solution finding AcDbMgd.dll, AcMgd.dll, but not the Aec*.dlls it may require (This assumes the imports are not copied local).
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  4. #4
    AUGI Addict sinc's Avatar
    Join Date
    2004-02
    Location
    Colorado
    Posts
    1,986
    Login to Give a bone
    0

    Default Re: Resources issue

    If you're referencing Mechanical-specific DLLs, then you're tying your application to only run on Mechanical. You can't just include a few DLLs with your distro to get around the problem; your user actually has to have Mech installed (and be using Mech, not "Mech as AutoCAD" or something like that).

    If you want to write an application that works on either plain AutoCAD or Mech, then don't reference any Mech-specific DLLs in your application.

    If you want a mix, and have an application with some features that should work in any flavor of Autocad, then one approach is to split up your application into separate DLLs. The first DLL would contain the generic Autocad stuff, and could be loaded into any version of Autocad. Then, if it detects it's being run in Mech, then it can load further DLLs containing all your Mech-specific stuff.

Similar Threads

  1. Resources for 3D MAX
    By Steve_Bennett in forum 3ds Max - General
    Replies: 13
    Last Post: 2022-09-29, 04:08 AM
  2. AutoCAD for Mac Resources
    By Wanderer in forum AutoCAD for Mac General
    Replies: 2
    Last Post: 2011-01-28, 08:11 PM
  3. Part Resources
    By BeKirra in forum Inventor - General
    Replies: 3
    Last Post: 2010-04-28, 04:16 PM
  4. Plant resources?
    By studio3p in forum Revit - Rendering
    Replies: 2
    Last Post: 2003-10-30, 05:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •