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


ADVERTISEMENT

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 :: 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 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 :: What Is Command To Create XRef From Drawing

Feb 1, 2013

What is the command to create an X-Ref from my drawing?

View 9 Replies View Related

AutoCAD .NET :: Xref Original File Name Of Drawing?

Jan 30, 2013

I'm trying to get just the filename either with or without the .dwg extension for an xref given I already have its reference (BlockReference) and its model space (BlockTableRecord) all open for read; skipping accessing any BlockTable.

Im doing something like this:

Either get the XGraph and first node or prompt user for a block reference and check it's from attachmentStart active document's database transaction, get the BlockReference.Get the BlockTableRecord only with the BlockReference's BlockTableRecord-ObjectId property.At this point I can iterate through the model space and see the nuts and bolts of the xref drawing without actually changing anything after saving my drawing, even after committing a trasaction.So what I want to know is how to get the filename of the xref'ed drawing (i.e. Original_Drawing.dwg).

I'm looking at doing this without opening the referenced drawing as a side database and checking the filename.I can't debug right now, but is it. myBlockTableRecord.Database.OriginalFileName ?

View 1 Replies View Related

AutoCAD Civil 3D :: Temporary File (As XREF) Slows Drawing

May 9, 2013

I'm working on a rather large subdivision (not uncommon, certainly used to a longer-than-normal load time) but have found one of our XREF files to be bringing drawing loads to a screeching halt. We have XLOADCTL set to 2, which explains the creation of the temporary file.

I have previously gone into the file and reset the scale list, which speed things up by about 50%, but today it appears to be doing the same thing.

Is there anything I can do to prevent this from becoming a more serious problem? Can I add some sort of SCALELISTEDIT reset command to the acaddoc.lsp file?

Civil 3D 2014
Windows 7 Professional
Intel Xeon E31270 @ 3.4 GHz
8 GB, 64-bit

View 2 Replies View Related

AutoCAD Architecture :: Computer Freeze / Search File To Make Xref Into Drawing

Oct 26, 2010

I have a few problems with my autoCAD 2010 version on my new computer.When I make a few hatches, there is a possibility that my entire computer freezes and the only way out is a hard shut down of my computer.

The same problem also appeared when I tried to open a drawing direct in autoCAD or when I search the file to make an exref into the drawing.

View 7 Replies View Related

AutoCad 3D :: Drawing Around Other 3D Objects To Create Another Object

Aug 7, 2013

I am trying to draw a boom for a sprayer and I have the 3 main tubes extruded. I need to draw plates every 48 inches in between the main tubes. I wanted to draw each plate to make sure it would fit and then use the drawings to cut the plates on my CNC plasma cutter. However, I can not figure out how to draw on the same plane right around the main tubes. I have a screen shot blow showing the tubes and I have a small 2D sketch similar to the plates I need to draw in every 48 inches to the right. The plates will be perpendicular to the top tube.

Cad Shot.jpg

View 9 Replies View Related

Lightroom :: Move Single File In Collection To Another Collection?

Jan 25, 2014

I mistakenly created a collection when only one file was highlighted.  I made another collection with all the other files I wanted in it, but I can't drag that one file from the filmstrip..

View 4 Replies View Related

AutoCad :: Use Xref Manager To See Where Actual File For Xref Resides On Computer / Server

Nov 15, 2013

I know that in ACAD you can use the xref manager to see where the actual file for the xref resides on your computer/server/etc. What I'm curious about is whether or not the inverse action is possible. Can you somehow access the file (not the output sheet where it's being xref-ed) and see what other files are using it as an xref?

I've come in on a project that is nearing completion and have been assigned the task of "cleaning up the project folder." Unfortunately, there are a ton of files in the different folders that are no longer in use on the final output sheets and I need to keep the ones still in use and archive the ones that are no longer needed. What I've been doing is going through those sheets and reviewing the xref manager for each sheet to see which files are actually put onto those sheets and making a physical checklist from which to organize my findings. Once the checklist is made, I then archive all the files that are no longer being used.

View 9 Replies View Related

AutoCAD Inventor :: How To Create PDF-File Of Drawing And STEP Of Connected 3D-File

Apr 11, 2012

I have a script that makes PDF-file with suffix revision. Now I want to expand this script so it even makes a STEP-file of the 3d-file connected to the drawing. This would make all manufacture files in one button. That should be nice..

How will i manage with this since the active document is the drawing not the part. (see code below)

Set oDoc = ThisApplication.ActiveDocument
Call oDoc.SaveAs("C:UsersGoranWeDesktop est estfile.stp", True)

View 9 Replies View Related

AutoCAD 2010 :: LISP File To LIST All OBJECTS On A Drawing?

Feb 24, 2012

I have to list all object data on some 4000 drawings. The drawings have been created in an unkown version of autocad and are electrical in nature. It would be great if a LISP file could be created to extract all of this too individual Excel or text files.

View 1 Replies View Related

AutoCAD .NET :: Create Object And Get ObjectID Or Add To Collection

Nov 8, 2012

I trying to create an autocad obbject eg: line. after creating i need to add object data to the created object.

unfortunately i am not able to get the objectid of the created object.

code snippet on how to do this..

1. creating a object and add the created object to collect or selectionset

2. get the object id or refernece so i can attach object dat relavent to the objedt...

View 5 Replies View Related

AutoCAD .NET :: How To Create 3D Polyline Based On Point3D Collection

Aug 23, 2012

I want to create a command:

My selection set consists of dbpoints that exists on my drawing and they are more or less in line

I create a new point3dcollection with this db points

I want to create a 3d polyline based on this point3d collection

My problem is : how to sort this point3d collection based on a picked start point and picked end point?

The only idea I have is:

from start point i calculate the distance to each point3d from collection and based on the results i sort the point3d collection based on distances.

View 2 Replies View Related

AutoCAD Civil 3D :: How To Create List With DesignSpeed Collection

Mar 10, 2013

the property "item" about DesignSpeed Collection doesn´t  appear but it exists: [URL] .....

Then, How I can obtain a List<T>  with this collection? I want only list with all DesignSpeeds from all alignments in only list.  
 
public static List<toolsC3D.VelocidadesProyecto> GetDesignSpeedsAlineaciones(List<Alignments> lista) { Editor ed = Application.DocumentManager.MdiActiveDocument.Editor; // por si queremos preguntar o responder en la línea de comandos Database db = Application.DocumentManager.MdiActiveDocument.Database;

[Code] .......

Autocad Civil 3D 2014 +SP1
Quad Core Intel i7 3770-cpu 3.40Ghz.
ssd samsung 840 pro 512gb+ssd samsung 840 pro 256 gb+1tb hdd
32gb RAM 1600 Mhz.
nVidia Quadro 2000.
Win 7 Pro 64bit

View 1 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 2010 :: Create New CTB File / Insure That Drawing Is Supported By Existing One?

May 26, 2011

How do I create a new CTB file OR insure that a drawing is supported by an existing CTB file? I have tried to start one from scratch using Plot window - when I click on file - it sends me back to MY DOCUMENTS. Is this a glich??

View 9 Replies View Related

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 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 View Related

AutoCad :: DWG File Properties To Excel Or Access To Create Drawing List / Register

Jun 3, 2011

I am looking for a way to use the .dwg file properties of a drawing to generate an updateable drawing list/register. One that will update automatically as the file properties are updated. I have already created a title block that uses text fields to display custom properties of the file on my title block, such as the job no., drawing no. etc.

I have searched the web for answers, came across this site, joined and searched through it... There are a number of threads that 'sorta' deal with my needs but alway tend to digress more towards the "poster's" needs and away from mine. I noticed that they all talk about Lisp Routines and I have no knowledge of using them. Is that the only way to go or can I use another route? Another one was the Sheet Set Manager but I don't think that this is exactly what I am looking for...

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 :: 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 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 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 :: XRef Within A Drawing

Jul 15, 2013

A question about ex referencing. Can it be done within a drawing. In other words, can I can Xref the plan to another part of model space to then create the elevations in UCS, and then Exref the elevations from USC to a horizontal line.

This would be very useful in the sketch plan stage.

View 9 Replies View Related

Photoshop :: Can't Create Smart Collection

May 30, 2013

i have the Problem  that i can't create Smart Collection, the Save-Button doesn't work, the Smart-Collection Window stays open and nothing happens when i click the "save" button!
 
i use CC with a new installed W8 and all is up-to-date.
 
Its a strange thing.

View 6 Replies View Related

AutoCAD .NET :: How To Get Direct XRef Of Particular Drawing

May 25, 2012

Suppose I have a Drawing Structure like:

MasterRoot
    Root1
        MasterChild1
            Child
        MasterChild2
            Child
    Root2
        MasterChild1
            Child
        MasterChild2
            Child

When I use XrefGraph xg = mainDb.GetHostDwgXrefGraph(true); in Code then I get all the Files as a node including MasterRoot (say count=6).

If I want to get Only direct Children (here, Root1 and Root2)(means count=2 only), then what i have to do?

View 6 Replies View Related

AutoCAD LT :: Inserting A Drawing To Xref

May 29, 2012

Is there any advantage when inserting someone else drawing into  yours  to xref it rather than copy and pasting into your drawing?

View 1 Replies View Related







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