Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JStephen on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete XData

Status
Not open for further replies.

CanonShooter

Structural
Joined
Oct 14, 2005
Messages
39
Location
US
I have searched around, and the answers I have found do not work for me.

Using ACAD 2004 VBA, I have attached XData to some entities, with the application name like this:

Dim DataType as Integer
Dim Data as Variant
DataType(0) = 1001
Data(0) = "MyApplication"
.
.
.
AcObj.SetXData DataType, Data

All that works, and gets set. Other data (1000) is set at the same time.

If I want to delete the data, and the Application name, I have read that sending just the Application Name will delete all the attached data, and the name itself.

It doesn't. Sending just the "1001 : MyApplication" triggers an error of "Invalid Input".

Anybody know why or have an idea?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top