AutoCAD .NET :: XRef Listing With RealDWG

Aug 29, 2011

Is it possible to get a listing of all of the X-Refs contained in a particular document. I am attempting to do this with the following

db.ReadDwgFile(testFileName, FileOpenMode.OpenForReadAndWriteNoShare, true, null); using (var tx = db.TransactionManager.StartTransaction()) { var xrefGraph = db.GetHostDwgXrefGraph(true); for(int i = 0; i < xrefGraph.NumNodes; i++) { XrefGraphNode xgn = xrefGraph.GetXrefNode(i); Console.WriteLine(xgn.Name); } }

I know that this drawing has 3 attached X-Refs, but none are coming up in the node graph.

View 1 Replies


ADVERTISEMENT

AutoCAD .NET :: Customization Using RealDWG

Nov 13, 2013

We people are doing the Autocad CAD customization using COM & .NET API.

Now I have heard that we can read or write thedwg file using realdwg toolkit without installing AuotCAD on my machine so it is beneficial that we can  do without AutoCAD.

Rather than this advantage, how it can be usefult to our team if our organization will but it ?

View 2 Replies View Related

AutoCAD .NET :: RealDWG Export File To PDF Or DWF?

Jun 24, 2011

Does RealDWG support output DWG file to PDF or DWF format? We can't find those method in the RealDWG toolkits.

View 6 Replies View Related

AutoCAD .NET :: Access AEC Object Properties From RealDWG?

Sep 24, 2013

Is there a way to access AEC object (AEC_WALL etc.) properties from RealDWG? I am able to get the class name AecDbWall. And even the extents of the entity.There are some Aec*.dll files in the RealDWG folder but I am not sure what to use to  get the properties of Wall,window.I'm using visual C++. I have installed the object enablers of Architecture Structure Drawing, MEP, and also of Civil.

View 1 Replies View Related

AutoCAD .NET :: APPCRASH Error When Exiting RealDWG WinForms App

May 24, 2013

I have developed a C# winforms app with RealDWG SDK. When I close my form I get the "App has stopped working" error below. I've added in some Dispose methods to see if that was the issue, but I still get the error.

I added a dispose method to my HostApplication class and I called my Winform dispose method. I thought that the error was caused by unfinished RealDWG business at the Form Closing event.I am using RealDWG 2013, Visual Studio 2010 SP1, Windows 7 64-bit. I also have AutoCAD 2012 and 2013 installed.

I know that AutoCAD and RealDWG both use acdb19.dll. My app contains 6 classes with around 1000 lines of code on each class, so to paste in my code would be impossible. Here is my code structure.

I start by implementing a HostApplicationService Class (MyHost.cs)

Then I call my Windows Form. (MainForm.cs)

From my form I collect object data from a SqlDatabase.

Once the data is acquired, I send the data to a Class that handles my AutoCAD classes. (AutoCAD.cs)

In this class I create my RealDWG Database.

Next I pass the database to various IDisposable classes that perform AutoCAD actions.

I.E, CreateTitleBlock() CreateLayers(), DrawShape(); etc..

Everything works great, except when I go to close the app, I get the error. I dispose everything I can think of right before exiting.

I've tried:
this.Close();
Application.Exit();

How to dispose the app or close it cleanly?

Here is the error....
Problem signature:
Problem Event Name: APPCRASH
Application Name: LongBayRD.exe
Application Version: 1.0.0.0
[Code] .....

View 4 Replies View Related

AutoCAD .NET :: Merge Modules For Installer For RealDWG 2013 Application

Feb 20, 2013

In the process of cretaing an installer for a RealDWG  based web application(VS2010 web setup project). The intended target environments for now will be win server 2003 and win 7. They will be fairly clean in the sense that no other autodesk or realdwg based products are installed or is planned to be installed.

The tips and techniques chapter of the RealDWG documentation have a section of how to create an installer and it says that all merge modules from the Redistrib folder should be added to the installer.

However the Redistribution requirements chapter mentions that for Shapemager functionality either a couple of merge modules should be included (for read/write support) or a couple of other merge modules should be included(read only support).

I've tried to only include the mergemodules that are listed as required but that did not work when I tried to run the deplyed app. (acdbmgd.dll missed several dependencies to other dll's that were not listed as required). When trying to include everything I get errors when doing a validation of the msi in Orca(probably originating from the shapemanager mergemodules).

View 1 Replies View Related

AutoCAD Civil 3D :: Listing Lines

Oct 8, 2013

If I draw a line and label it I get the correct bearing and distance. If I list the line it gives me a different bearing. how can I correct this?

View 1 Replies View Related

AutoCad :: Layer In Model But Not On Listing?

Nov 21, 2012

i am working on correcting a drawing. when i select a object its layer shows up but then when i try and find the layer in the listing on the layer manager its not there. i can't even select the layer to keep it current.

View 0 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 2010 :: Fonts Listing Used Within Drawing

Nov 27, 2012

Is there a way to get a listing of all fonts used with in a drawing? 

View 1 Replies View Related

AutoCAD .NET :: Listing All Blocks In Drawing File

Jun 29, 2011

What i want is to create a treeview that lists all the blocks. I can achieve that trough iterating the blocktable record.

No i can populate all the blocks in the control.

But how can i get a list of all block references in model and paperspace.

View 9 Replies View Related

AutoCAD Civil 3D :: Object Listing In Drawing

Apr 9, 2013

Is there a way to count all types of object in a drawing?

Like this:

Command: ????

Number of blocks: 22

Number of 3d faces: 2

.

.

Number of hatches:1

"Qselect" does it but it can be very slow if there are a large number of objects in the file.

I guess this information is savea as "meta data" and can be accessed even without opening the file??? 

View 6 Replies View Related

AutoCad :: Printing Detail Listing Of All Components

Jun 14, 2012

We use autocad lt 2012, when creating a drawing, the same component can be used more than once, is it possible to print a detail listing of all the components used in a single drawing in some sort of report format, or maybe export the listing to a program like MS excel....etc.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Change Xref Layer With Xref Name?

Jul 31, 2009

Is it possible to run a lisp which can extract all the xref names, make a layer with that name and then change the xref on the layer? I have got a similar routine from earlier posts but it doesn't work if any xrefs inserted in paper space (works fine on model space). could change this routine allowing to change the layer of xref in paper space too.

(defun dxf (i a) (cdr (assoc i a)))
(defun c:lxr ( )
(setq ss (ssget "x" '((0 . "INSERT"))))

[Code].....

View 8 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Xref Reactor Object ID To Xref Name

Oct 2, 2012

I am using (trying to anyway) a :VLR-xrefSubcommandReloadItem reactor.  My only question is how to get the xref/block name from the 'reactor callback data' Object ID.

I am ultimately trying to pass it to (vla-get-xrefdatabase ....), but I cannot figure out how to turn the second parameter from the reactor callback data into something I can use - for example the second parameter returned may be "65" or some other number. 

Civil 3D 2011
Windows 7 x64

View 1 Replies View Related

AutoCAD Civil 3D :: Point File Format Listing?

May 24, 2013

Is there a way to re-order the point file format listing for points on the settings tab? I have tried everything and it will not change the order of the listing.

View 3 Replies View Related

AutoCAD 2010 :: Listing Multiple Line Lengths

Jan 2, 2013

Is there an Autocad command that will list the lengths of several seperate lines and combine the lengths similar to the areas command?

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Getting Coordinates Via Listing

Jan 8, 2014

I have created a circle from 3topo points. Im having difficulty getting accurate elevation (z)  of the center of circle (pile representation) via cad polyline listing. im getting same "z" all through out which in fact is not.

View 8 Replies View Related

AutoCad :: Bind Xref But Also Preserve Xref Links?

Sep 17, 2013

when you bind an xref the link disappears from the xref manager.

is it possible to bind an xref, but preserve that link in the xref manager? i realize that will lead to two copies of the same object in the drawing (one xref, plus the new block). everyone's okay with that happening.

View 9 Replies View Related

AutoCAD Dynamic Blocks :: Parameter Listing In Properties Windows

Jun 17, 2011

Any way to change the order that the parameter properties appear in the property manager. Currently I think they are appearing in the order in which I placed them, but I would likr to re-arrange them.

View 3 Replies View Related

AutoCAD 2010 :: Adding Listing And Showing Lines Of Different Lengths?

Nov 20, 2013

I checked a couple of old posts looking for a lisp routine that will count the number of lines and list each different length either in a dialog box or txt file. I am working on an estimate and I have a floor plan of owsj of different lengths. I downloaded the tlen.lsp but that is only giving the total number of joists and the total length.

I am looking for a lisp so that I can window all the owsj at once and have it list or show the result for the joist in this manner

sample output:

xx joists = 10'-0"
xx joists = 20'-0"
xx joists = 30'-0"

View 2 Replies View Related

AutoCAD Civil 3D :: Listing Acres In Parcel Map Check Report

Jan 2, 2014

I am wondering if there is a way to modify the Map Check Report to include Acreage Calculations like it used to. I am only given the square feet and need both. I know I can calculate it easily, but it would be nice if it were there by default.

View 5 Replies View Related

AutoCAD Inventor :: Autodesk Constraint Change Listing 2012

Jun 19, 2013

Recently installed 2013, previously had 2011inv.  Trying to find out exactly what the constraint changes are from 2011 to 2012 inv.  I as told that there was a post here with them, but cannot find it (only posts of constraint problems that people were having when they switched to 2012).

what the changes are from inv2011 to 2012 or inv2011 to 2013.  Doesn't autodesk have these changes listed somewhere in writting?

View 4 Replies View Related

AutoCAD .NET :: Listing All Xrefs Attached To A Group Of (unopened) Drawings

Aug 15, 2012

I'm using AutoCAD 2013 64 bit and MS Visual Basic 2010 Express (and Excel 2007), and I'm trying to write VB.NET code to list all xrefs attached to a group of drawings. The list of drawings is in column 1 of an Excel spreadsheet, and I want to list all xref filenames in columns 2 onwards - one row per drawing.

The Excel part works fine. I just wish it was as easy to extract information from DWG files.

I created a "Windows Form Application" project in VB 2010 and added a button to Form1. Clicking on the button runs the code.

When adding references I added "Microsoft Excel 12.0 Object Library" COM for Excel (as per Excel website tutorial), and "acdbmgd.dll" and "acmgd.dll" (both with Copy Local=False) as per AutoDesk .NET tutorial. But I got warning messages saying Acdbmgd.dll and Acmgd.dll target a different processor. Is this different to the Excel COM target processor, or do I need to change the target processor for the whole project (and if so, how)?

I tried adding "AutoCAD 2013 Type Library" COM reference instead of "acdbmgd.dll" and "acmgd.dll" which got rid of the target processor warning messages, and I could then open the dwg files successfully, but still the project crashes.

Here's the code so far...

Imports Excel = Microsoft.Office.Interop.Excel

' do I need to include Imports for AutoCAD here? Various websites list AutoDesk.AutoCAD... imports here, but AutoDesk isn't an available option when I try adding this here - maybe because I have the wrong references?

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[Code]....

When I run the project I also get a "A first change exception of type 'System.Runtime.InteropServices.COMException' occurred in MyProject.exe" message. How can I rectify this?

Currently it crashes when it gets to the cadDwg.Database.Blocks line saying "Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED))".

The xlsx file and the dwg files refered to in the xlsx file all exist. I've tried running it both with AutoCAD 2013 running and with AutoCAD 2013 not running. Still doesn't work

I feel so close, but what am I missing? I haven't downloaded the "ObjectARX for AutoCAD 2013 (32-bit and 64-bit)" from AutoDesk yet because (i) I have to get a licence, and (ii) it's a very large file, and (iii) I seem to be able to open drawing files without it, but just not access the data I want in the files.

I've got 1500+ drawings to look at by the end of the week. If this doesn't work it's back to AutoLisp (and maybe script files, but that's another headache).

View 9 Replies View Related

AutoCAD .NET :: How To Get Full Xref Path Name Instead Of Xref DWG

Jul 5, 2012

How do I get the full Xref Path name instead of Xref.dwg? I'm scratching my head is this totally under my nose... cause I don't see where the property is stored. I'm getting EV_BDR.dwg instead of C:folderEV_BDR.dwg

View 8 Replies View Related

Photoshop :: Styles Palette Listing Most Of Twice?

Feb 16, 2013

For some reason my Styles Palette lists "most" of my style-sets twice? There is a horizontal rule below my last style listing in the flyout menu before it starts listing them again? Loading a style from either list works. I have done a search on my hard drive and on one file exists for each style .asl file.

View 12 Replies View Related

Revit :: Wall Assembly Listing?

May 23, 2007

I can tag walls by entering the wall type in the 'type mark' box in the assembly's properties, but is there a way of listing out the material of each type of wall that has been used in the project. e.g:

Wall Type P1
16mm Gypsum Board
92mm Steel Stud
16mm Gypsum Board

View 2 Replies View Related

Lightroom :: Stopped Listing New Sub-folders?

Jan 22, 2014

When I try to add the subfolder, Lightroom says they already exist but will not list them in the directory.  I haven't changed any settings lately.

View 6 Replies View Related

3ds Max :: Listing Bitmaps In 2011 Material / Map Browser?

May 18, 2011

I need to list all the bitmaps in my scene.

I've brought in an fbx that was created & materials applied in Revit. The bitmaps don't display on the model in my viewports, although they do render. I need to be able to make a list of all the bitmaps that are applied to this model, so I can go track them down and save copies into a folder.

Back when I was using Max 2009, I could open my material/map browser, set it to search the scene, and list only the bitmaps, not the root materials. How can I do this in 2011?

View 4 Replies View Related

Photoshop Elements :: How To Delete WIA Listing With Old IP Address

Sep 8, 2012

When the IP address of one of my scanners was changed (due to power outage), two listings of the scanner now show up as separate devices with the same name in the PSE9 WIA list - one of these with the old obsolete IP address.  The same device is also listed with the new address and it works.  How to I delete the WIA listing with the old IP address?
 
Only one entry with the IP address for this HP printer/scanner shows up in the Windows 7 list of printers. So this WIA list is a remanent of the past. How do I get rid of it?

View 8 Replies View Related

Illustrator Scripting :: Listing All Fonts Used In A Document?

Jun 5, 2012

As I understand it, TextFonts is a collection of all fonts available to Illustraot.  Is there a collection of all fonts used in the open document?  Or would I have to step through every textFrame an create that list myself?

View 8 Replies View Related







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