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


ADVERTISEMENT

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 :: Wblock Command Can`t Find Dialog Box To Select Objects And File Location

Dec 14, 2011

Land Desktop 2009 Civil 3D Companion

When I issue the Wblock Command I can not find the Dialog box to select objects and file location... This happens in the Layer Dialog when I try to change the color of a layer, the Color Dialog box can not be found. When I use the Block command the dialog box pops up, so I can see it.

fildia>1
cmddia>1
attdia>0

View 9 Replies View Related

3ds Max :: Tape Causing Changes In Objects X / Y / Z Location

May 1, 2013

I'm a theatre student, and one of the software programs we have in our design studio is 3DS Max. We don't actually use it for theatre work (it's for another class we share the studio with,) but I'm interested in design work, so I thought I'd try to teach myself some of the basics, just to get a leg up.

I've used some design software before, so I'm not totally ignorant of the basics of using a program like 3DS, but I've been having some problems that I just can't figure out. I'm trying to model a chair. So far I've sketched out the seat base by using a box, with an added arc. I've joined, welded, and extruded by seat base, as well as moving it in the Z axis +18 inches. Secondly, I added some tape helpers, because I want to make sure the base is the right size. It was off a little bit, so I just selected the sketch in the top view, and the appropriate segments, and moved it a bit to meet up with the tape helper. However, here's where I run into problems.

If I move any part of my sketch while in the top view, it changes the models Z location in all other views. I've never had any problem like this before. I've tried everything I can think of, including locking the Z axis move in the objects hierarchy, but so far, no matter what I do, the object gets changed in all axis, even when I'm manipulating it in one axis.

View 3 Replies View Related

3ds Max :: Deleting / Removing All Objects From Specific Location

Mar 6, 2012

I have a questions about deleting/removing all objects from specific location. For Example I want to remove objects from Location X 0,0 Y 0,0 Z 0,0 but keeping all other objects untouched.

Is there a way to do that ?

Also you may ask why do I need that, well it's because I have a lot of objects in one scene which causes a lot of lag and my exporting had some problems, which caused to every single object to copy themselfs to the middle of the scene, but all the original objects not copied objects are already in place and I don't want to remove them. I want to only remove duplicated objects. I'm using 3ds max 2012 64-bit on Windows 7 Ultimate SP1

View 1 Replies View Related

AutoCad :: Flatshot Location Not At Model Location

May 1, 2013

I've been working on a drawing that requires me to take .dwg files of 3D equipment and place them into my one drawing for general arrangement purposes. I used it once before but now I'm having a slight issue when I use the flatshot command. I seem to remember Flatshot making my new 2d block at the same coordinates as the existing model and that it would be at zero in the Zed axis (x,y,0). My block now appears and various locations, even when i specify coordinates or basepoint it can be off by a good amount. Is there an option that I'm forgetting or something, so I dont have to manaully move my block back to the desired coordinates?

This isn't a major problem since I can manually match the block back up with the coordinates my model is at and then move it to x,y,0 but I feel like theres a way to ensure I dont have to worry about doing that at all.

View 2 Replies View Related

Photoshop Elements :: Catalog Changed The File Location Of All Pictures To Location On Backup Drive

Jul 6, 2013

Photoshop Elements 6 (20070910.r.377499)
 
I do not know why the catalog has changed the file location of "ALL" pictures to the location on my backup drive.

Example: K:My DocumentsMy PicturesPetsPICT1460-1.JPG

The actual location of the original photo is:  D:My DocumentsMy PicturesPetsPICT1460-1.JPG
 
The location of "My Pictures" is on my primary Hard Drive D:My DocumentsMy Pictures
 
Why is Photoshop changing all of my 37,000+ photo thumbnails to point to my Backup Drive K:?
 
I need to correct the catalog file. How do I make the correction and stop it from happening in the future?

View 2 Replies View Related

AutoCAD .NET :: Reading Data From Table

Oct 6, 2011

Is that possible to read the Autocad Table data , without opening the Autocad from VB.NET. I tried with opening one autocad then loading the source dll. it was working perfectly.

But i need to without opening a application its possible or not?

View 6 Replies View Related

AutoCAD .NET :: Reading Attributes From Event

Dec 5, 2011

Private Sub ObjectModified(ByVal sender AsObject, ByVal e As Autodesk.AutoCAD.DatabaseServices.ObjectEventArgs)

With e.DBObject

If .IsWriteEnabled Then Exit Sub
If .Id.ObjectClass.Name = "AcDbAttribute"Then
?????
End If    
End With
End Sub

Trying to read the attribute's tag and text.

View 2 Replies View Related

AutoCAD .NET :: Reading / Comparing CTB Files?

Dec 5, 2011

is there any way to compare ctb files?  I know there is a tool called tableprint9.exe that will export the ctb as text but it is not working with Autocad 2010.

Is there any way to access ctb files in .Net?

View 3 Replies View Related

AutoCAD .NET :: Reading Geometric Constraints

Nov 28, 2012

How do you read geometric constraints from the Assoc2dConstraintGroup in C# or VB?

View 2 Replies View Related

AutoCAD .NET :: Reading DWG Files In ASP Framework

Jul 18, 2011

provide me with the code in ASP.net C# to read the .dwg files?

View 2 Replies View Related

AutoCAD .NET :: Reading Some Variables Into DWG File?

May 3, 2013

reading some variables into DWG file - how? C#.

View 3 Replies View Related

AutoCAD .NET :: Reading In Mass DXF / DWG Files

Jan 8, 2013

i am developing some code to read in mass dxf OR dwg files, seperate the two, then convert each to a database to be read later. however, whenever i run it, i get this error: System.AccessViolationException:

Attempted to read or write protected memory. this is often an indication that other memory is corrupt.

     at AcDbDatabase.dxfIn(AcDbDatabase*, Char*, Char*)
     at Autodesk.AutoCAD.DatabaseServices.Database.DxfIn(String fileName, String logFilename)
     at ZahnerCommands.Commands.GetFiles()....line 72

here is the code that i have so far. i have been tinkering around with it for a few days and cannot seem to get it to work. the dxf file i have chosen works perfectly well, and i am using autocad 2011.

using
Autodesk.AutoCAD.ApplicationServices;
using
Autodesk.AutoCAD.DatabaseServices;
using
Autodesk.AutoCAD.EditorInput;
using
Autodesk.AutoCAD.Runtime;

[code]...

View 4 Replies View Related

AutoCad :: Reading Angles In DBlocks?

Mar 8, 2012

I have this block. It's called Linear Stock. In this block, there are 2 visibility states. The one that I'm looking at currently is called Stretch with Angled Ends.

What I'd like to have happen is for the angles created when I stretch each grip to the proper location to be readable by a table or excel document. I know that I need a parameter for this to happen, but I'm not sure how to make it happen.

Using AutoCAD2011

View 0 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 Thumbnail From 2013 DWG File?

May 9, 2012

I know how to read the BMP thumbnail (there are some code here: [URL], but in 2013, the BMP has been replaced by a PNG. The type seems to be 6 instead of 2 (BMP), but I don't know how the PNG is stored (I've not made further investigation).

View 1 Replies View Related

AutoCAD .NET :: Listbox And Reading Multiple Selections

Jun 2, 2011

I have a list box with multi select (simple) enabled. How can I "see" the text of the values the users selects (if there is more than 1)..

vb.net if you can.

View 6 Replies View Related

AutoCAD 2010 :: Error While Reading Log File

Jul 18, 2012

Some users are getting the following error when running Script Pro:

Error while reading log file for <drawing path>

View 4 Replies View Related

AutoCAD Inventor :: Error In Reading RSe Stream

May 26, 2011

I am currently experiencing this error when basically putting an Inventor 2012 file (part or assembly) on a flash drive and then loading the file(s) onto a different computer with Inventor 2011 installed. Once in Inventor 2011 and trying to open the necessary file(s) I receive this error. Is there some difference between the 2011 and 2012 files that is causing this to happen? Or the face that I am using the student version of both?

View 5 Replies View Related

AutoCAD 2010 :: Access Violation Reading?

Jul 25, 2012

i have a file with some xref files inserted.

if i work on my computer, nothing happens, but when i try to open in other computers, i have this erros:

FATAl ERROR: Ubhandled Access Violation Reading 0x0029 Exception at 3f35335fh
 
Why it happens?

View 3 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 :: Attribute Reading Current Date

Dec 19, 2012

I would like to have an attribute that reads the current date, so every time i plot a sheet its always reading the current date of the attribute.

I have found the following online but the date reads MM/DD/YY

%<AcVar Date f "M/d/yy">%

I need the date to read DD/MM/YY

View 7 Replies View Related

AutoCAD Inventor :: Error In Reading RSe Stream

Sep 24, 2008

My computer went down two weeks ago, bad enough that I had to get a new hard drive and start over. When I went to install Inventor, I kept getting Errors 1335, 1334, then error 1406 during installation. I seemed to have gotten beyond those, but when I went to open certain assemblies I started getting "Error in reading RSe Stream (4 not equal 2)" and "Error in reading meta types in RSe Segment AmDcSegment in..." and them it shows a certain file it doesn't like, sometimes repeating for multiple files. I clicked on the communication icon in the lower right of my Inventor screen and it said a maintenance update was available. I installed SP1 and tried again. Same problem. I clicked on the icon again, and it told me SP2 was available. I installed it and tried again. Same problem. I clicked on the icon again, and it told me SP3 was available. I installed it and tried again. Same problem. I clicked on the icon again, and it told me SP4 was available. I installed it and tried again. Now I can't open Inventor at all. Inventor crashes just on trying to open up. I've been running Inventor 11 since it came out with no issues whatesoever. Now I'm two weeks behind with no end in sight.

View 9 Replies View Related

AutoCAD .NET :: Reading And Writing To Block Attributes?

Sep 22, 2011

this part of my code is supposed to look for a layout I just added, search through it's blocks that have attributes, and if the block with the specific attributes is found, it should open a dialog box and populate the two text boxes with the attribute text.  When the user changes the text in the dialog box and picks ok, I want it to go back and change the attribute values in the block.

I'm just not sure how to change the text value for the attributes.  Do I create an identical code that will search all over again only to write the values instad of read?  There has to be an easier way since I have the block located already.

Public Sub replaceTitleText(ByVal pageNumber As Integer) Dim doc As Document = Application.DocumentManager.MdiActiveDocument Dim db As Database = doc.Database Dim ed As Editor = doc.Editor Dim layoutCount As Integer = LayoutManager.Current.LayoutCount - 1 Dim getTexttrans As Transaction = db.TransactionManager.StartTransaction()

[code].....

View 4 Replies View Related

AutoCAD Inventor :: ILogic Reading Beginning Of Filename

Jun 6, 2013

I'm attempting to create a rule using iLogic, which reads the first two letters of either the File Name or Part number (Which ever is easier)i.e. if a part number was AB12345, I would want the code to recognize the "AB"...At which point I'm trying to use an If-Then-Else statement to modifiy the material of the part, dependent on the first two characters of the File name.

As an example, where the underlined portion is what i don't know how to
If  iProperties.Value("Project", "Part Number") Begins with "AB" Then
    iProperties.Material = "Steel"
Else If iProperties.Value("Project", "Part Number") Begins with "AC" Then
    iProperties.Material = "Aluminum"
End If

View 1 Replies View Related

AutoCAD .NET :: Reading All Parametric Dimension Constraint Information

Oct 13, 2011

I recently wrote a small tidbit to export all parametric userparameters in a document.What I need to do is modify it to include Dimensional Contraint information as well.

PublicSharedSub CopyParameters()
Dim varId AsObjectId = ObjectId.Null   
Dim doc AsDocument = Application.DocumentManager.MdiActiveDocument   
Dim db AsDatabase = doc.Database   
Dim sClip AsString = ""
Using myT AsTransaction = db.TransactionManager.StartTransaction()     
' Open the AssocNetwork
[code]....

View 2 Replies View Related

AutoCAD LT :: 2014 - Reading Earlier (2010) Files

Jul 2, 2013

Can Autocad LT 2014 read Autocad LT 2010 files?

View 3 Replies View Related

AutoCAD 2013 :: Unhandled Access Violation Reading

Oct 26, 2012

FATAL ERROR : Unhandled Access violation Reading 0xffffffff Exception at e38e0004h

Installed Autocad 2013 a while back worked smoothly until yesterday since when it does not open cannot create new files and at the same time cannot open any existing ones

I have a Lenovo Z570 i5 2nd generation processor, 8gb ram , 500gb hd, 2gb nvidia geforce with cuda integrated graphic card, genuine windows 7 home premium 64 bit

i have tried repairing the installation from control panel, and re-installing it again but to no use..Looked it up on the internet and downloaded the service pack and installed it but to no use again !!

View 2 Replies View Related

AutoCAD 2010 :: Unhandled Access Violation Reading

May 13, 2012

I Recently installed AutoCAD 2010. When i Tried to draw a line or circle,etc. It just gets stops responding for some time and displays the following error "FATAL ERROR: Unhandled Access Violation Reading 0xf02e682ah Exception at f02e682ah".

View 1 Replies View Related

AutoCAD Inventor :: Reading Content Center Path With API

Feb 22, 2013

is there a way to read the content center path with the API?

View 1 Replies View Related







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