TheSwamp

Code Red => .NET => Topic started by: csharpbird on November 14, 2011, 10:43:44 PM

Title: How to check the available Xdata space?
Post by: csharpbird on November 14, 2011, 10:43:44 PM
It seems that lisp has a function named xdroom which ccan get the available Xdata space.
How to do this in .NET?
Title: Re: How to check the available Xdata space?
Post by: fixo on November 15, 2011, 12:40:14 AM
Not sure about it will be real size:
Code: [Select]
MessageBox.Show("Size: " + Convert.ToString(System.Runtime.InteropServices.Marshal.SizeOf(xr.Data.UnmanagedObject)))*xr* is existing dummy XRecord populated with data of 4 TypedValues(string,double)
Title: Re: How to check the available Xdata space?
Post by: Jeff H on November 15, 2011, 06:18:19 AM
Not sure if there is a .NET counterpart but maybe PInvoke acdbXdRoom?
also
acdbXdSize
Title: Re: How to check the available Xdata space?
Post by: Kerry on November 15, 2011, 06:22:46 AM

From Tony.

http://forums.autodesk.com/t5/NET/Xdata-size/td-p/2399263