AutoCAD Civil 3D :: Reading Objects From XREF

Feb 6, 2013

I'm writing a .NET app to get corridor feature line information from an XREF'd dwg file to use in the active document. I'm having quite a bit of trouble reading the civil objects from the XREF.

[URL]........

This works, but still doesn't work for civil objects. Take a look at the snippet below.

if (xdb != null) { // Start a transaction in our loaded database // to get at the layer name Transaction tr2 = xdb.TransactionManager.StartTransaction(); using (tr2) { // Open the layer table LayerTable lt2 = (LayerTable)tr2.GetObject( xdb.LayerTableId, OpenMode.ForRead );

In order to get a Corridor ID collection I need a reference to a CivilDocument object. So how do I get a CivilDocument object when it isn't the active document? Is there any way to get it from a Document or Database object?

View 7 Replies


ADVERTISEMENT

AutoCAD Civil 3D :: XREF Objects Not Displaying

Sep 26, 2012

I am getting a lot of grief xrefing a C3D file into an AutoCAD drawing. A bit of background...

Fairly large development project with 270 new familiy houses. The sanitary sewer (SS) network was created using AutoCAD only. All layout drawings and xrefs were created using AutoCAD using AutoCAD templates. Then, here I am, putting the entire SS network in C3D, with its fancy labels and relevant long sections. Now I am supposed to display this C3D network in all the layout plans and get rid of the old 2D SS xref. Well, the blody thing doesn't work! If I try to xref the original C3D file, it will only display the labels. All pipes and structures and long section do not display. Yes, I checked all layers are turned on.

I tried using data shortcuts instead, bringing first the relevant part liist and styles. No luck. Again neither a single pipe nor structure is diplayed, although the prospector in the toolspace shows the network is referenced in the drawing. I am not sure if this matters, but the C3D source drawing contains a second pipe network referenced using data shortcuts which, by the way, doesn't display either when xrefing. I tried xrefing the C3D file using my C3D template and it works fine. So I guess that, somehow, the AutoCAD template used to creat the drawings is preventing some C3D objects to be displayed when xrefed.

I know I could recreate all our layout plans using my C3D template. Unfortunately, that would be a long process since we have quite a few and they're all heavily xrefed, with many layer properties overriden.

C3D 2011V2. Windows XP 64b

View 7 Replies View Related

AutoCAD .NET :: Reading XREF Tree From External Exe

May 25, 2013

I am trying to read the xref tree from a DWG by using an external exe. The app should simply open the DWG and sys-out the referenced paths and whether or not they are nested. For this, I am using Autodesk.AutoCAD.Interop. The problem is that I can only get a list of file dependencies (document.FileDependencies) and I can't seem to find an "isNested" value.

So far I've got:

AcadDocument document = oAcadApp.Documents.Open("Test.dwg");
foreach (AcadFileDependency o in document.FileDependencies)
{
System.Console.Out.WriteLine(o.FullFileName);
}

There is also the option to get Blocks, but again there is no "isNested" info, only "isXref":
foreach (AcadBlock b in document.Database.Blocks)

{
if (b.IsXRef)
{
...doStuff...
}
}

View 1 Replies View Related

AutoCAD .NET :: Reading Objects Location (X / Y)

Jun 4, 2011

i want to write a command in C# that allow user to do 2 things:

1. choose a layer to work on
2. make a list/table of all objects in that layer, and their X Y coordinates.

for example - if a DWG file contain few layers, one of them has names (and only names). there are ~1500 objacts (text type) in that layer. every objact have a string (100,101,...,1350,1351...) and locating (X and Y). I want to be able to pick this layer, then bild a text file like this: (name X Y)

100 20456 40789
101 20344 40348
102 21034 40456

its dont has to be sorted. how do I do it? any lift to progress? 

View 7 Replies View Related

AutoCad :: Get Loose Objects From PDF Xref?

Dec 29, 2011

I have a scanned drawing (PDF) and I want to use it a a xref so i can redraw it (originals have gotten lost ). But is really big and makes autocad really slow.

Is there a way to make a scanned drawing in PDF have loose object / lines again?

View 4 Replies View Related

AutoCAD Architecture :: XRef Objects Not Showing In Drawing

Dec 11, 2013

I have a drawing done in AutoCAD Architecture 2013.  Most of it is just lines, but I have a couple of Walls with Doors.  It looks fine in the base drawing but when I xref into another file the walls revert to their original color and the doors have disappeared.  The opening is there but no door.

I tried xredit and the doors are there but when I close that they are gone again.  Tried detaching and reattaching...still have the problem.

After I posted this tried Display Configuration.  Clicking all options for Doors gives me the doors...in a closed position, not the same as in the base plan.

View 1 Replies View Related

AutoCAD 2010 :: Objects In Modelspace Xref Don't Show In Paperspace

Mar 26, 2012

I have a floor plan xreffed into model space, visretain=1 and i can see the room numbers.  I switch to paperspace and go to layer properties and highlight all layers and then turn on all layers in he drawing and thaw in all three columns and still the room numbers do not show.  The layer listed in model space is on and thawed.  Why won't it show?

View 2 Replies View Related

AutoCAD Print / Plot :: Styles Not Applying To Xref'd Objects

May 13, 2013

I currently have with my plotting.  I've recently switched from using a color table plot style to named/layer plot style.

Drawing "TANK.dwg" contains 2d geometry inside a block named "2d-tank" and is on layer '0' in the block, and that block is on layer '0' inside "TANK.dwg"

TANK.dwg is xref'd into "PHASE 1.dwg" several times in several locations.  "TANK.dwg" is on layer '0' in "PHASE 1.dwg"

"PHASE 1.dwg" is xref'd into "COMPOSITE.dwg" on layer 'P1' 

In "COMPOSITE.dwg" I can change the layer color of layer "P1" and the block "2d-tank" changes color to suit.  It derives it's display color based upon layer P1, as everything has been on layer '0' up until now.  However, despite picking up the appropriate color, it does not inherit the appropriate plot style.  I try to apply a screened/shaded plot style to it and it instead inherits the plot style of layer '0' in "COMPOSITE.dwg"

This is a problem for me as I have 3 phases, and I need to be able to plot them differently, depending on each phase shown.  I'd rather see if there is a way to make my current model setup work before I go duplicating thing and restructuring all my drawings to suit a layer style inconsistently, but I need this to print right.

I don't understand why an object would inherit the color of the layer it's on, but not another layer property, specifically its plot style.

View 6 Replies View Related

AutoCAD 2010 :: Xref Text Mask - Hiding Objects

Mar 5, 2012

I have some xrefs that have text masks that mask out my objects, moved the sort order to rear (back) but they still hide my objects.  Is there any way to simply disable them in the original xref?

View 5 Replies View Related

AutoCAD .NET :: How To Create Collection Of Xref Objects Into New Drawing File

Oct 12, 2012

idsObjEntity-->collection of xref objects
private void CloneObjectIds(ObjectIdCollection idsObjEntity, String strFileName)
{
try
{
Database dbNew = new Database(true, false);
Autodesk.AutoCAD.DatabaseServices.TransactionManager tm = dbNew.TransactionManager;
[code].........                 

here i take the object id collection as xref filter by its layer name.i tried to clone the object in new dwg its shows Wrong database.

View 1 Replies View Related

AutoCad :: Constraints Cannot Be Applied Between Nested Objects In Same Block Or Xref

Nov 23, 2011

I have two dynamic blocks. One is the plan view of a cylinder and one is the elevation view of a cylinder. When I change the parameter of the OD on the elevation, I want the plan view to change. I'd like to keep them as blocks (they're a little more complicated than just cylinders), but when I try to use parametrics to tie these two dimensions together I get: "Constraints cannot be applied between nested objects in the same block or Xref."

View 1 Replies View Related

AutoCad :: Change All Of Objects Colors In Xref Drawing To Grey

Dec 29, 2011

My goal is to change all of the objects colors in an xref drawing to gray to use as a background to my work. All changes to the xref drawing were made in the drawing itself, none of this was done in the base drawing.

The quickest way I could find was to change set by layer mode to color only and use set by layer to change all of the objects (select all). This seemed to work fine, until I noticed that certain text would move slightly when the color changed. Long story short this text (single line) moves slightly when the color is changed, even if I select one text and change the color in its properties.

My question is why would text move or change in some way when you only change the color. It doesn't seem to happen to mtext, only dtext.

View 2 Replies View Related

AutoCAD 2010 :: Move Or Stretch Objects That Reside In XREF?

Feb 22, 2012

Any commands or 3rd party applications that would allow me to move or stretch objects that reside in an XREF?

The cherry on top would be the ability to do this to only specific layers.

View 2 Replies View Related

AutoCAD Civil 3D :: Reading Triangles From File

Nov 14, 2011

I am running 2011 c3d on windows 7 with 15 GB of ram.

An error message I get is "reading triangles from file" and the program locks up to where you need to do a reset on the computer. I have an existing ground surface that is data shortcut into the file I am opening when I get this error. The existing ground surface is about 5 mg in size. I'm not sure if this is causing the error. 

View 4 Replies View Related

AutoCAD Architecture :: Updating Property In Objects Definition In XREF DWGs

Aug 11, 2011

I am developing an simulation application, leveraging on using Space objects and applied additional Property Set Definitions for Space objects where I introduced a new Property "Value".

I applied a display theme to my DWG, and based on the value of the Property, different colors will be displayed according to the display theme.

For a single DWG file containing the building, I am able to simulate the color changes by updating the “Value” Property in the Spaces using .NET APIs functions such as PropertySet.SetAt, and committing the transaction. 

However, one building can consist of many different levels, and I have split up the modeling of the building into its separate levels. For example, a 3 storey building, I will have 3 DWG files for each individual levels.

A main empty DWG was then used to XREF the 3 levels, to combine the different levels into a whole building. I would like to simulate such colour change through the main DWG which references my individual level DWGs.

what .NET API I can use to access the XREF DWGs in my main DWG, so that I can update the "Value" property in all my Space objects?

View 1 Replies View Related

AutoCAD Civil 3D :: Not Reading Pressure Pipe Catalog

Feb 8, 2013

I just recently had to do a clean install on Civil 3D 2013 to fix a different problem but now I am having issues with the pressure pipe catalogs. I used to be able to open and use all three that are available, push on, mechanical, and flanged. I made sure that my support paths are mapped to the correct folders but now when I open my design file I find that the mechanical and flanged catalogs are greyed out. When I try to edit the part catalog I get a warning message saying that the catalog is not available. See the attachment. I know the catalogs are there as I have created parts and added them to these catalogs. It almost looks like it is mapping to the metric folder which only has the push on catalog.

View 9 Replies View Related

AutoCAD 2013 :: Data Extraction With Xref - Select Objects In Current Drawing

Dec 6, 2012

Autocad 2013 Data Extraction works if I do not include attached xrefs and set it to "Select objects in current drawing". When I check "Extract objects from xrefs"; and go to next it processes for a bit then stays on page 2 of 8 on the Define Data Source page. Also have the same error if I choose " Drawings/Sheet set" with or without the xref objects included.

View 3 Replies View Related

AutoCAD Civil 3D :: Fatal Error - Unhandled Access Violation Reading

Aug 1, 2013

I have C3D2009 with service packs 1,2 and 3 installed in my computer with Windows XP operating system.

I am having fatal error when I try to export a dwg file to 2007 DXF file. I receive the following message:

" Fatal Error: Unhandled Access violation reading Oxfcf064fd Exception at fcf064fdh"

Attached, please find the dwg file I am trying to convert to 2007 DXf file.

View 1 Replies View Related

AutoCAD Civil 3D :: Unhandled Access Violation Reading 0x0000 Exception At D3e88ffeh

Jul 31, 2012

Occurs when I am trying to raise/lower a group of feature lines (break lines) within my grading plan.  As soon as I enter the value to raise/lower and hit enter the error comes up and Civil closes.  Using Civil 3D 2013 and it is up-to-date (all patches, etc. installed).  Know it is probably a windows registry error related issue, but I do not want to waste my afternoon uninstalling and re-installing Civil to take care of the issue.  Windows 7 64-bit operating system.

View 2 Replies View Related

AutoCAD Civil 3D :: FATAL ERROR - Unhandled Access Violation Reading 0x0014

Sep 3, 2013

Having a problem with AutoCAD Civil 3D 2012 which keeps crashing with a fatal error on a Win7 Pro (64) machine. Was able to get the user to make a screenshot on the most recent occasion, and the error was as follows:

FATAL ERROR: Unhandled Access Violation Reading 0x0014 Exception at f5a69bb9h.

Having looked through your forums I see that this may be related to the video card, which is a Nvida Quadro 5000. I've already updated the driver to the Quadro Performance Driver, v320.78, but the problem continues.

Is there a different partner certified driver that I should be using (can't seem to find any for Civil 3D) , or is the issue related to something else?

View 4 Replies View Related

AutoCAD Civil 3D :: Modify Elevation Of Point - Unhandled Access Violation Reading

Apr 12, 2013

I am modifying an elevation of a point and this throws me the error Fatal Error: Unhandled Access Violation Reading 0x0018 exception at c74f11ech

View 1 Replies View Related

3ds Max Animation :: Rigging Xref Objects

Sep 5, 2013

I am rigging a car that will definitely change at a later stage. To avoid having to redo a lot of work, I am using the Xref Objects option to bring the car into a new scene. In the new scene I have built my rig with all my controllers etc. I used simple linking to attach the various pieces of geometry to the rig. At this point everything works great - wheels turn and steer, body rolls, suspension works. I hit save.
 
Now when I close Max and then open the file again, the geometry has jumped all over the place (see the image attached)! I have tried various things to fix this with no luck...

I have reset xforms on all the original geometry, aligned the pivots so that they match exactly to the controllers they will be linked to, checked scale to make sure everything was at 100%, I have reset transforms. None of these solved the problem. Is this even the correct method to rig?

View 3 Replies View Related

AutoCAD Civil 3D :: FATAL ERROR - Unhandled Access Violation Reading 0x05c0 At 6fbbabcah

Dec 30, 2013

I'm recieving this error when I go to paper space and attempt to set my profile view. I am working for a consultant using a required template from the city and when I open just the main template I recieved a message about 10 errors, do I want to recover, so I do and it finds no errors but I continually get the message. I'm thinking that fatal error message has something to do with the 10 errors. what those fatal error codes are in the subject line?

View 1 Replies View Related

AutoCAD Civil 3D :: Fatal Error / Unhandled Access Violation Reading 0x0038 Exception At E9a85402h

Dec 16, 2013

I am getting a fatal error message "Unhandled Access Violation Reading 0x0038 Exception at e9a85402h". I was working on a drawing Friday afternnon and the error popped up and crashed Civil 3d. I could open Civil 3d, but when I tried to open the drawing in question, the error would occur and crash Civil 3d. I started a new drawing and inserted the old drawing as a block. That had been working all morning, but all of a sudden the same error started to occur again. What is the error?

View 2 Replies View Related

AutoCAD Civil 3D :: FATAL ERROR / Unhanded Access Violation Reading 0xff067028 Exception At D9f93552h

Jun 3, 2013

Running Civil CD 2012 on Windows 7.  All service packs are up to date.  After creating plan over profile sheets, I click to open a Layout tab to view a sheet, and get this error.

View 9 Replies View Related

3ds Max :: Imported Xref Scene - All Objects Including Hidden Ones Displayed

Apr 28, 2013

I have included a xref scene in another file and but the xref when rendered does not respect hidden layers, hidden object OR "do not render' option set in layer manager. In other words all of the objects including the hidden ones are displayed. How I can leave my reference objects and layers in my original scene but not display them if I include the file as an xref scene.

View 1 Replies View Related

AutoCAD Civil 3D :: Attempting To Xref PDF

Jan 11, 2012

I am trying to attach pdfs to my drawing.  I am receiving the following message "acdwfmarkupcore.arx cannot find a procedure that it needs."  I am also receiving a message that says the pdf (file) is corrupt.  I have opened the file and it appears fine.  I have even tried re-saving the original document under a different name. 

View 5 Replies View Related

AutoCAD Civil 3D :: Xref Box Not Working

Dec 14, 2012

i type in xr and the box shows up but when i go to attach a dwg or image the box usually shows up so i can browse through and find the dwg i want to xref but the box doesn't show up all it says at the bottom in the command line is ATTACH

If i use the command classicxref then everything is fine i can attach anything i want. i checked the filedia and it is set to (1)

View 9 Replies View Related

AutoCAD Civil 3D :: XREF DGN Into DWG File?

Mar 12, 2012

I am xrefing a DGN file into my DWG file in Civil 3d 2012.  When I go into Layer Manager I cannot see any of the DGN's Levele/Layers?  Tell me this isn't so? Am I missing something here, how is one suppose to control Layers in the DGN when it is XREF'd into a DWG?

View 4 Replies View Related

AutoCAD Civil 3D :: Xref And Linetypes

Jan 8, 2013

When i change a linetype in an xref file and then reload the file,  The linetype does not change in the file i am referencing the drawing in, leaving me to manually change the linetypes within the drawing.

View 1 Replies View Related

AutoCAD Civil 3D :: XREF DWG In Viewport

Nov 20, 2012

I am having problems bringing in an xref dwg in a viewport. The scale for my stationing labels are huge and I cant remember how to fix it.

View 8 Replies View Related







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