AutoCAD .NET :: Can't Dispose Xdata

Feb 13, 2012

i have a combo box which choose from 3 items one is blank. the triggered item changed event will erase the old set of corresponding xdata in the selected object and populate with new ones read from different text boxes. i was able to set the xdata for the first time ok. but when trying to dispose it won't dispose.

Imports System.RuntimeImports Autodesk.AutoCAD.RuntimeImports Autodesk.AutoCAD.ApplicationServicesImports Autodesk.AutoCAD.EditorInputImports Autodesk.AutoCAD.DatabaseServicesImports AcApp = Autodesk.AutoCAD.ApplicationServices.ApplicationImports

[Code]....

Civil 3D 2012
Work: Xeon W3503, 12GB, Quadro 2000, Dell P2211H x 2
Home: 3930k, 12GB, GTX 590, U3011, QX2710

View 6 Replies


ADVERTISEMENT

Photoshop :: How To Dispose Off Empty Gray Window

Oct 8, 2012

And several related questions. This is new to me in Ps CS6 (Mac OS 10.7x, dual displays). Image files always appear in a second window but will open no larger than will fit into this first window. Once open I can open my image window to extend beyond the original empty window. If I have images open and I close this empty window my images close too. How did I become so unfortunate and how do I become fortunate again?

Related questions:

In Ps CS5 I used to be able to move the image edge to well within its window to facilitate work at or near an edge. This is not possible for me in Ps CS6 and I can find no way to change it.

View 9 Replies View Related

Photoshop Elements :: How To Dispose Off Preliminary Download Files

Dec 1, 2012

I just downloaded Photoshop Elements 11 using the Akamai software. I now have big files on my desktop:

-- 1.16GB Adobe Photoshop Elements 11 folder;
-- 1.21MB PhotoshopElements_11_LS15 extractor file;
-- 10.5MB Akamai_NetSession_Installer application; and a
-- .98GB PhotoshopElements_11_LS15.7z file.
 
What am I to do with these files? Can I put them in the trash? Do I need to save them somewhere for some reason, and if so, why and where?

View 3 Replies View Related

AutoCAD .NET :: Changing Xdata

Sep 6, 2011

Why this code doesn't modify the xdata. I copied and modified another post.

it doesn't throw any errors. and objNewResBuf seems to have the right data.

Private Sub ChangeXData(ByVal objEntId As ObjectId,
ByVal strAppName As String)
Dim objDB As Database = objEntId.Database
Dim objTrans As Transaction = objDB.TransactionManager.StartTransaction
Dim objEnt As Entity = CType(objTrans.GetObject(objEntId, OpenMode.ForWrite,

[Code]....

View 2 Replies View Related

AutoCAD .NET :: XData To Polyline And Blocks

Apr 10, 2013

I am trying to store some data to polyline entities. and I'm planning to use xdata. Is it possible to store some string and integer values? Also each of them should have a tag name like block attiribute names.

For example:

Type= "XLPE"
Capacity= "Medium"
LengthMultiplier= 3
thickness=5
etc.

I searched internet for utilizing xdata, and it seems that Xdata is only for predefined types such as: datalayername, dataycoordinate, datazcoordinate,datascale etc. And it seems it is not possible to store more than one string with tag name.

View 1 Replies View Related

AutoCAD .NET :: Add XData To Appended Block

Nov 30, 2011

When capturing the Object Appended event of a block containing a "Drawing_No" attribute tag, then trying to add xdata to the object, I get a "Object reference not set to an instance of an object" error. I've tried writing the XData after committing the transaction but it didn't work.
 
If TypeOf e.DBObject Is BlockReference Then Dim bref As BlockReference = DirectCast(e.DBObject, BlockReference) If bref.AttributeCollection.Count <> 0 Then For Each attId As ObjectId In bref.AttributeCollection Dim attRef As AttributeReference = trans.GetObject(attId, OpenMode.ForRead) Select Case attRef.Tag Case "DRAWING_NO" WriteTitleBlock(e.DBObject.ObjectId) '<<Subroutine used to add XData Exit For End Select Next End If End If

View 7 Replies View Related

AutoCAD .NET :: Copying And Pasting XData Between Drawings

Sep 8, 2011

How can know if entities are being manually copied and pasted between drawings.A thought is to add a GUID to each entities Xdata and check if the value is in the named object dictionary. 

View 6 Replies View Related

AutoCAD VB :: Xdata / Reactor Length Of Lines?

Oct 7, 2013

I have a lot of lines that I need a length, like in attached file. At this moment I do it with a vba  that put fields in all lines.

The problems:

1) fields makes drawing slow to regen or after I modify line.

2) fields not follow lines slopes and position, if I stretch or move one end point of line. Text must be in middle of line.

So I thinking use reactors .

I tried reactor but I don't have much experience in lisp and I am having problems with persistent reactors, after I close file and open again, load lisp. Reactor not continue persistent. 

This is a test that I tried. Works only for one line.

(defun print-align-text ( owner reactor lst / sp ep a d )
(setq sp (vlax-curve-getstartpoint line1))
(setq ep (vlax-curve-getendpoint line1))

[Code]..... 

I have read that is better store data using XData. In VBA I tried construct class module with events, without any success.

View 9 Replies View Related

AutoCAD .NET :: Selection Filter On Block Reference XData

Apr 12, 2007

I'm trying to use a Selection Filter on Block Reference XData value. But I get no hits, it works fine with Lines and Polylines that has the same kind of XData.

Is it a bug or do I have to define my Selection Filter differently when working with Block Reference?

Here is a part of the code :

TypedValue[] flt = new TypedValue[]
{
new TypedValue(-4, " new TypedValue(-4, " new TypedValue(8, "POLYLINE_LAYER"),
new TypedValue(1001, "Object_Id"),
new TypedValue(1000, "166448"),
new TypedValue(-4, "AND>"),
[code].......

View 3 Replies View Related

AutoCAD .NET :: Error When Submitting Result Buffer To Xdata

Feb 21, 2013

I'm taking over some code from a developer that is no longer here.  Right now when the code saved a resultbuffer object to xdata, I get an eregappidnotfound.  Due to various forums, I believe this is because the ID is not being registered with the database before it's being inserted.

The error is thrown on this line: XData.ToXData(partCollection);

using (Autodesk.AutoCAD.DatabaseServices.DBObject dbObj = t.GetObject(objId, Autodesk.AutoCAD.DatabaseServices.OpenMode.ForWrite)){ DeviceName.SetDeviceName((Autodesk.AutoCAD.DatabaseServices.BlockReference)dbObj, txtDeviceName.Text);
dbObj.XData = XData.ToXData(partCollection); t.Commit();}

The code for the ToXData function is here: 

public static ResultBuffer ToXData(PartCollection Parts) { //Write out some header information ResultBuffer rb = new ResultBuffer(new TypedValue(System.Convert.ToInt32(DxfCode.ExtendedDataRegAppName), XDATA_APP_NAME), new TypedValue(System.Convert.ToInt32(DxfCode.ExtendedDataInteger16), XDATA_TYPE), new [code].......

View 2 Replies View Related

AutoCAD .NET :: Selection Filter On Xdata For All Type Of Feature

Jan 6, 2010

I am trying to create selection set entity xdata(1001, 1000,1000) features like text,line,lwpolyline,insert....etc.

But its working only on linear features not working on remaining features, why?

View 4 Replies View Related

AutoCAD .NET :: Adding Xdata To Dynamic Block With Attribute

Aug 31, 2011

My code add xdata to any object properly except for a dynamic block with attribute. After code excutes it disappears from screen . Even undo make strange thing. I guess I screw the database somehow. But even audit doesn't show any fix applied.

Attach is a sample drawing. And below is my code.

<CommandMethod("pppp")> _ Shared Sub test1()
Dim Mydwg As Document = Application.DocumentManager.MdiActiveDocument
Dim Mydb As Database = Mydwg.Database Dim Myed As Editor = Mydwg.Editor
Dim MyRegisterApplication As String = "My_R_Cad"
[code].....

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Select Objects With Given Xdata?

Jan 2, 2012

with a function like this I added some xdata, some MULTILEADER

(defun c:add_xdata () (princ "Select: ") (setq ogg (car (entsel))) (addXdata ogg "TEST" "CODICE" "1256") (addXdata ogg "TEST" "MATERIALE" "LEGNO") (addXdata ogg "TEST" "TIPO" "A"))
 
Now with the following function can only select leaders who have linked the xdata application TEST

(setq selez_all (ssget "X" '((0 . "MULTILEADER")(-3 ("TEST")))))
 
I can not, however, find a way to select all MULTILEADER who have a particular value of XData.

For example I would select all MULTILEADER with MATERIALE = "LEGNO" and TIPO = "A".

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Retrieving Xdata From An Entity?

Mar 29, 2012

How can i build a selection set of all circles  and then retrieve the xdata attached to them? 

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Reading Xdata Info?

Oct 14, 2013

Lisp code to read xdata information?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Remove Xdata From Layer Zero

Aug 14, 2012

I have a drawing that i know has xdata attached to layer zero. the problem is, it's not an object i can find. Any routine to remove xdata from ALL objects. like a global remove xdata?

View 6 Replies View Related

AutoCAD LT :: Use Excel 2010 Into Drawings To Set Up Tables - XData Handle Unknown

Jun 20, 2013

I have LT 2012.  I use Excel 2010 into my drawings to set up tables.  When I opened the drawing I've been working on, I had lost all of yesterday's data.  Command History shows dozens of these notations, "AcDbLine(41859) XData Handle Unknown, Null"   In Help it says you can no longer turn handles off, so it should be ON.  How can I point the drawing to my Excel data?

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Reactor - How To Change Xdata Length If Line Is Modified

May 18, 2010

I need a Reactor to Modify Xdata - Length - contained in Line Object if this Line is modified (stretched, breaked, trimmed, etc).The routine need to verify if Line contain Xdata and modify it (and works with multiple selection).

I tried for long hours, but without success. I tried to create a list of entities while the reactor is applied, but doing so need another reactor to change these entities after the first Reactor works.The codes I used are below:

{code}
;If it just 1 string only you want to add
(defun add_xdata_str (e a v);;;EName APPID String_value
(and (not (tblsearch "APPID" a))
(regapp a))
(and (= (type e) 'ENAME)
[code]....

View 6 Replies View Related

AutoCAD .NET :: If Selected Entity Xdata Contains Value Then Select Additional Entity

May 22, 2013

I would like to add additional entities to the selection if any of the selected entities contains a an xdata value.

If I put the condition into the ImpliedSelectionChanged reactor I imagine will probably loop back on itself.

View 9 Replies View Related

AutoCAD 2010 :: Error / A Software Problem Has Caused Autocad To Close Unexpectedly

Jan 16, 2013

When i use AutoCad 2010, that is on a wind 7 OS, appear a message that indicate the next.

A software problem has caused autocad to close unexpectedly.

View 1 Replies View Related

AutoCAD LT :: Hatch Missing In Transparent Zoom In Autocad 2014

Oct 2, 2013

In Autocad 2014 when I use the zoom or pan command transparently some information disappears (hatch) and only reappears when I finish the command. This did not happen with version 2009.

View 2 Replies View Related

AutoCAD 2010 :: AutoCAD Could Not Open This File Or Could Not Parse A Fle Of This Type

Mar 22, 2013

I'm trying to attach a hyperlink to a PDF but I keep getting the error message " AutoCAD could not open this file or could not parse a fle of this type".  It also won't link to a Word document or speadsheet, but will link to a web page and a notepad text file.

View 3 Replies View Related

AutoCAD LT :: DWG To PDF

Oct 3, 2011

Why when making PDF out of DWG, many lines comes out vague?

It can be part of a line/block/text.

It shows only on the screen and not on paper in case I print it.

View 1 Replies View Related

AutoCAD LT :: Use DWG To PDF

Apr 2, 2012

I run ACAD LT 2010 on a Windows XP machine and also a Vista Laptop. I have tried to print the same drawing on both machines using the DWG to PDF facility with in AutoCAD. The drawing is a third party drawing in as much as I didn't draw it although it is an authentic ACAD DWG.

I get the same message but referring to different fonts - the message reads on the Vista machine:

"Cannot find or create the font "ArialMT". Some characters may not display or print correctly"

On the Windows XP machine it reads:

"Cannot find or create the font "Tahoma". Some characters may not display or print correctly"

The message seems to be generated by Adobe Reader.

View 6 Replies View Related

AutoCad :: How To Let It Use More RAM

Mar 8, 2012

My computer has 8 GB of RAM. However my autocad is not faster than a computer with 2 GB of RAM. I have Windows 7. Is there a way I can allocate more RAM to Autocad to make it run faster?

View 9 Replies View Related

AutoCad :: What Does XID Mean

Dec 8, 2011

I downloaded a titleblock to look at and one of his layers for the lines that made up the bounderies of the titleblock, was placed on the "XID" layer. It was interesting to see that the lines had the properties of Polyline, although to my eyes it looked like a line segment.

what XID stands for in this case?

View 4 Replies View Related

AutoCAD Map 3D :: Import SDF To DWG?

Jun 23, 2012

I have some problem with import SDF to dwg. Geometry in SDF is curve with mixed linear and arc segments.

But the result is not my expected result. (see image below) . All arc segments was imported not correctly.

I'm expecting my data is correctly in the sdf files, but some import mechanism  not work properly.

When I make connection through  FDO it's work ok.

View 2 Replies View Related

AutoCAD Map 3D :: GEO MAP Command

May 6, 2013

I've been attempting to use the GEOMAP command to bring satellite imagery into one of my maps.  I have followed theses steps:

1.  Signed into my Autodesk360 account.
2.  Assigned a coordinate system (SC83F) to my map.
3.  Entered the GEO MAP command and selected "A" for aerial image.

Following these steps, I am unable to display the aerial imagery.  

View 1 Replies View Related

AutoCAD LT :: PC3 And PMP Errors

Apr 12, 2010

I've created system printers for our office using the "Add Plotter" application of AC. I've filtered paper sizes for the different printers. However, these filtered paper sizes are not the same for all workstations.

E.g. If I filter out all paper sizes and only check ISO A0 and ISO A1, on some of the workstations there are other paper sizes available. How do I avoid this from happening?

View 8 Replies View Related

AutoCAD LT :: How To Make PDF Out Of DWG

Oct 10, 2011

How to make PDF's which were made out of DWG"s less vague?

Same lines can come out looking good or vague. Sometime part of blocks appear vague while the other side appear good.

View 4 Replies View Related

AutoCAD 2013 :: DWG To DGN

Nov 13, 2012

Using 2013, I have a drawing created in that other software ( Micro station). I opened it in autocad, and did some work to it.

View 2 Replies View Related







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