AutoCAD .NET :: What To Do With Referenced DLL Files

Oct 5, 2011

I am trying to debug a project and I have started to use a few different third party libraries.  This causes a huge headache since when I netload the DLL with the command method defined in it, nothing will run since I get errors stating that I am missing a reference.

For example: I create a library that is used to process text strings from a drawing (no AutoCAD .NET, just takes text in) and create a report based on this text and create a class library DLL of this.  I now create a AutoCAD .NET class library with a command method and in this command method I loop through blocks and send the attribute text to class library.  In order to do this I add a reference to my previous project DLL file and add a using directive.  By default CopyLocal is set to true so I hit build and it is successful (now my class library DLL and AutoCAD .NET library DLL are in the same debug folder).  Now I go into AutoCAD and NETLOAD the command method DLL from the debug folder and I am unable to run it since AutoCAD will complain about that referenced class library DLL that I created in the first step.

The only way that I can get my command to run is if I manually NETLOAD each dependant DLL that I have added to the project.  How can I avoid this?  I am at the point where my project is getting complex and NETLOADing 20 DLL's just to debug is getting painfull.I have read someplace that I would have to add all of my referenced DLL's to the AutoCAD folder, but this seems messy and hard to control (what if somoene else is using the same library but a different version?)

Why is it that my code has references defined, and using statements to say I am using these libraries but AutoCAD refuses to locate these references?

Is there a simple way to get around this without copying files all over the place?  The third party libraries are either in the debug folder from copying manually, or copy local is set to true.  I do not understand why when you tell AutoCAD to load a DLL from a folder that it would not try to resolve dependencies from the folder you pointed it to.

Just to clarify my question is: Is there a simple way for AutoCAD to resolve referenced third party / custom DLL's that are included with an add-in?  And this question is for development and not an installer.  I want to hammer out a test solution and test quickly without copying files all over or editing the registry.

View 4 Replies


ADVERTISEMENT

AutoCad :: One Or More Referenced Files Could Not Be Located Or Read

Sep 6, 2013

I am having troubles making a drawing available to an external consultant. My drawing has 12 XREF files so I created an ETRANSMIT (.zip) file and sent it to him with all the drawings. He extracted the .zip into a folder and is able to view the 12 various referenced drawings as well as the layers pertaining to drawing I sent to him but can not see the referenced in drawings in this file.

He keeps getting this error: "One or more referenced files could not be located or read. Number of missing referenced files: 12".

View 4 Replies View Related

AutoCad :: One Or More Referenced Files Have Not Been Located Or Read

Aug 9, 2012

I have received a drawing from a designer, as I often do, but cannot locate the drawing in the model due to unresolved x refs? I have seen this many times on previous drawings but just ignored and continued but on this occassion I cannot find the drawing once I continue!

When I open the drawing I get the message: One or more referenced files have not been located or read. What do you want to do?

Update location of ref files

Ignore and continue.

I understand that the drawing is there somewhere as the preview pane on the open dialogue box shows the model outline but when I open it after going beyond the above step there is no model and only the 0 layer.

View 6 Replies View Related

AutoCAD Inventor :: Referenced Files In A Drawing

Jun 26, 2012

I have a 2 part assembly on a drawing.  When I use the following code, checkFilename is giving me the full file name of one of the parts instead of the full file name of the assembly.  How can I fix this? 

Dim checkBalloon As Balloon
Dim valueSet As BalloonValueSet
Set valueSet = CheckBalloon.BalloonValueSets.Item(1)
Dim checkFilename As String
checkFilename = valueSet.ReferencedFiles.Item(1).FullFileName

View 1 Replies View Related

AutoCAD Civil 3D :: Dynamic Blocks From Several Different Files Referenced In One Tool Palette

Mar 22, 2013

I've begun to create tool palettes to organize my blocks and often-used items. I have no trouble creating the tool palette, inserting regular blocks, export/import of the tool palette and groups, however my problem involves Dynamic Blocks and the fact that I keep each seperate dynamic block in a different file. I do this so that I can easily insert the block into a new drawing.

I'm able to drag the dwg file onto the palette (from explorer to autocad) just fine, that way the block's reference in the palette is the original file. Although when I take this method, I don't gain the lighting bolt to signify a dynamic block.

To get the lighting bolt I insert the block into an empty drawing, save it, then drag the block over to the palette. The problem with this is that the tool palette references the saved blank drawing, not the original block's file.

My endgame is to have a tool palette that contains my dynamic blocks and that will be eventually exported/imported to other computers everytime there is a major change. I also want to be able to change the original block's file and have that change be reflected in the tool palette.

View 9 Replies View Related

AutoCAD Civil 3D :: Data Referenced Surface

Dec 7, 2010

I have created a data shortcut to a surface using Civil3D 2011. When I create a reference to it in another drawing, it shows up in the Prospector but nothing shows up on the screen. I have played with the surface style and made sure all the layers were on and tried closing and reopening the drawing.

I have also tried to reference it into a brand new blank drawing and I even tried to reference a surface in a different file that I have referenced several times before (in 2010). Every time I get the same results. It seems like the surface is there, but I just can't see it.

View 2 Replies View Related

AutoCAD Civil 3D :: How To Track Where Layers Are Referenced

Sep 23, 2013

I am going through our Civil 3D template and purging all layers we do not use. However, there are four assembly layers AutoCAD won't let me delete, but I cannot find any style or object referencing them. If it matters, the layers are C-ROAD-ASSM, C-ROAD-ASSM-BLIN, C-ROAD-ASSM-OFFS, and C-ROAD-SCTN-DIAG.

View 6 Replies View Related

AutoCAD Civil 3D :: Renaming Surface That Is Referenced?

Jul 10, 2012

I am working in Civil 3D 2010 and I created a surface a while back which 4 pipe networks have been referenced to and the surface has been data shortcut'd. I am now facing the issue that the surface needed to be renamed.

I looked in the Data Shortcuts folder and the name didn't change on the shortcut. All the pipe networks have errors now cause it is looking for a surface that technically no longer exists.

I tried deleting the Data Shortcut and creating a new one with the new name and resetting all the networks to the new surface but I am still gettting errors.

Is there a step that I am missing to get all this to link together properly with the new name?

View 4 Replies View Related

AutoCAD Civil 3D :: Export Geo-referenced Image

Sep 27, 2012

I've lined up an image myself in Civil 3D over a topographical survey but now I want to export the image as a geo-referenced image so it can be brought into Mapinfo and Tuflow in the right place, coordinate-wise.

My question is - is it possible, and how do you do it!

View 5 Replies View Related

AutoCAD Civil 3D :: Undefined Alias Referenced

Dec 19, 2012

I've been getting this Undefined Alias Referenced error showing up every time I open one specific drawing.

Also, I'm not sure if this is related to the first part. In the same drawing I have several png files that I can't get rid of.

View 9 Replies View Related

AutoCAD LT :: Referenced Image - How To Prevent Deletion

Mar 4, 2012

I am drawing an as-built plan and utilizing a scanned image of the plan as a go by. The image is referenced into the drawing. Sometime I want to turn the image off by selecting it and clicking "show image" icon on the show image > options tab. After turning the image off, if I forget to unselect the image before continuing, I risk deleting the image and creating an unreferenced image.

I thought i could solve the problem by locking the layer the image in on, but then I can not turn the image on and off!

View 1 Replies View Related

AutoCad :: Redefining Path To Referenced Image?

Jan 14, 2013

I am creating a new set of drawings but using information from an existing set. On the existing set there is a reference of an image of our company logo in the format. The path for the image is to the my pictures folder for the previous drafts person. Is there a way to redefine this path or do i have to reinsert the image. The format is not a block.

View 3 Replies View Related

AutoCAD LT :: Referenced Drawings / Blocks And Printing

Mar 13, 2012

In M'Space I have created a layout (i.e. buildings) which in P'Space is my Dwg 1. I want to reference part of that layout in what is to be my Dwg 2. On Dwg 2 I want to insert a block (paths), because my dwgs are referenced when I insert that block it appears on both P'Space layouts. I've even tried inserting the block on its own layer but of course if I turn it off it turns off on both dwgs..... Is there a way I can print both the dwgs so they individually look the way I want without having to remember to select "do not print" that layer everytime I need to print Dwg 2?

View 2 Replies View Related

AutoCAD Civil 3D :: Duplicate Data Referenced Objects

May 15, 2012

Not sure if this is something that has been going on a while, if it is a design flaw, or if it just a workflow thing that we should be more mindful of, but here goes:

1. I data reference an alignment into a drawing.

2. I later data reference in a profile that was created from and associated with that alignment.

In this scenario, Civil 3D creates a duplicate alignment for the profile i.e., the orginal alignment is in prospetor as 'Alignment A' and the profile being data referenced in creates a 'Alignemnt A (1)' duplicate and associates itself with it.

This also happens if I bring in a different profile created from the same alignment IF the alignment was already present as a data reference in the drawing.

This seems wrong. It doesn't do any of this if I data reference the profile in first...

View 4 Replies View Related

AutoCAD Civil 3D :: Contour Label With Referenced Surface?

Mar 2, 2012

I have Civil3d2012 and have created a surface in one drawing and then referenced it to another.  It appears to be working, but the contour labels will not work on the drawing where the surface is referenced.  I have all the appropriate layers on.

View 1 Replies View Related

AutoCAD Inventor :: Modify Referenced Model By ILogic?

Jul 24, 2012

I try to modify on a drawing the 3d model, using iLogic (same thing as Inventor "Replace model reference" command).

View 3 Replies View Related

AutoCAD Inventor :: Paths Of All Referenced Parts In A Drawing?

Oct 20, 2011

I am inside a idw that has views for couple of parts. From within the IDW is there a way to know the paths of the location that the parts are from?

I know if I use a design assistant I can know, But from within IDW?

C1
Inventor Professional 2013
Vault Collaboration 2013

View 1 Replies View Related

AutoCAD Civil 3D :: Data Referenced Surfaces And Alignments

Oct 29, 2013

We have a HUGE number of data referenced surfaces and alignments that need to be moved to a different group of folders.  Is there a simple way to do this without breaking the references (each surface/alignment) is referenced into multiple drawings.

The project was divided up into a bunch of little mini projects so now we have 500150_A, 500150_B etc (around 90 of them).  Each one has a dwg file with a surface and at least one alignment and that drawing is data referenced to all the other sheets within that mini project.  Each project has _Shortcuts, drawings etc.  

The powers-that-be have decided to 1) change the project number (from 500150 to 500152) and 2) to bring all these mini projects together into ONE project.

We've confirmed that each surface/alignment has a unique name which means that there shouldn't be a conflict in that regard.

View 2 Replies View Related

AutoCAD .NET :: Referenced Third Party DLL Throws Exception On Other Machines

Feb 27, 2013

I created a lib folder in my projects folder and then with 'Add Reference' added the reference to my project. It works well for me.

But when I executed this DLL in another system it throws an Exception "Cannot load the file or..........."

Exception file attached.

View 6 Replies View Related

AutoCAD Inventor :: Leader To Referenced Part In Assembly IDW

Mar 22, 2007

I have placed an subassembly into another assembly that I am working on. This sub was then chagned to be a "reference". Now in the idw, I would like to pull a leader to the subassembly and I want the text in the leader to say what is in the "Title" Property of the subassembly. When I change the format of the leader text to be Type = "Properties-Model" and Property= "Title", I get the title of the part in the subassembly, not the title of the subassembly. It is like the subassembly is a phantom assembly, but it is not. The workaround is to manually type in the text, but this is a mistake waiting to happen.

Is there a way to get the leader to note the title of the subassembly correctly.

View 9 Replies View Related

AutoCad :: Export DWG File To STK With External Referenced Object?

Dec 27, 2013

I am trying to export the following .dwg file to .stl format but the object that has been externally referenced does not make into the .stl file.

here are the files...

complete turret.dwgkinect model.dwg

View 1 Replies View Related

AutoCAD Civil 3D :: Slope Arrow Change When X-Referenced?

Apr 24, 2013

issue that when the xref a drawing with Surface Slope Arrows, that the style changes in the child drawing compared to the parent?

I am hoping to use the standard I am used to of the arrow pointing down the hill (towards the -10ft) rather than what the child file is showing of uphill (away from the -10ft).

Civil 3D 2013, HF3.0
Windows 7, 64-bit, SP1

View 5 Replies View Related

AutoCAD Inventor :: The Parts Referenced No Longer Exist

Apr 8, 2013

I have a FG assembly that shows errors. The parts referenced no longer exist, but it still tells me there are errors on the sketches. Since the parts no longer exist in the assembly, or anywhere for that matter, how can I get rid of this error? I have tried making parts and naming them the same, which it allows me to do, but no luck in resolving the error. I can include the assembly but it is 63MB compressed and am running 2011.

Inventor 2011
Intel Dual Xeon E31225 @ 3.1 GHz CPU
16 GB RAM
NVIDIA Quadro 600 GPU
Windows 7 - 64 Bit

View 6 Replies View Related

AutoCad :: Check Drawing To See If Its Been Cross Referenced In Another File?

Dec 13, 2011

Is there a way to check a drawing to see if it's been cross referenced in another file?

View 1 Replies View Related

AutoCAD Architecture :: Adding Property Sets From Referenced Object

Apr 2, 2012

I have created a space with space generater, added a room tag. When I click on the room tag and click properties I do not have Property Sets from Referenced Objects under extended data. How do I add this? I drawing I did about a year ago has this, but the curent project does not and I do not remember how I managed to get this info to appear.

View 4 Replies View Related

AutoCAD 2010 :: Insert Geo-referenced Iphone Image Into 2011?

Jul 11, 2012

know if there is a way to insert a geo-referenced i-phone image into AutoCAD 2011?

View 1 Replies View Related

AutoCAD Civil 3D :: Data Referenced Object Source Drawing?

Oct 6, 2013

Is there any way to determine the source drawing of a dref'ed object? I'm not seeing anything in COM or the .NET API's, hopefully I'm just not looking in the right place.

View 5 Replies View Related

AutoCAD Inventor :: Finding Referenced Document Of Active Sheet

Oct 22, 2012

I'm trying to get the value of the Category iproperty of the model on the active drawing sheet.  This is not a problem in a single sheet drawing, but I'm not sure how to specifically retrieve the Referenced Document of the Active Sheet in s multi sheet drawing.

Here's what I have: 

Option Explicit

Public Sub PartsListFilter()

'set reference to the drawing document
'assumes that a drawing is active
Dim oDraw As DrawingDocument
Set oDraw = ThisApplication.ActiveDocument
[code]........

View 1 Replies View Related

AutoCAD Inventor :: Make Referenced Components From Parts And Assemblies?

Oct 4, 2012

How do I make referenced components from parts and assemblies? (I searched the web and it said that that you can change it in the iProperties by selecting the Reference tick box under the occurance tab - but no such thing exists in Inventor 2011!

View 2 Replies View Related

AutoCAD Civil 3D :: Referenced Surface Not Working - Random Times

Oct 2, 2013

We have drawing "A" that contains a surface (call the surface "SurfaceA").

We have another drawing "B", that contains an alignment and a reference to"SurfaceA"

The user created EG profiles in drawing "B", and has been working on this drawing periodically.

Today all of a sudden when he opens Drawing "B", the EG profiles are missing. When you look at "SurfaceA" in Drawing "B", there is no data. We synced, we made sure of the association of the drawings to the projects, etc. etc.

I verified the data shortcuts are OK, and verified that both drawings are in good shape (via Recover and Audit)

But wait.....here is the crazy part. If you shut down Drawing "B" and open it say a dozen times, once or twice in that stretch, "surfaceA" shows up and the EG profiles will appear OK too.  It's feels very random.....

View 4 Replies View Related

AutoCAD Civil 3D :: Screen Back Aerial That Is Being X-referenced Into Drawing?

Apr 8, 2012

How can I screen back an aerial that is being x-referenced into a drawing? 

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved