Retrieving nth3 .wdp Data through C#

Retrieving nth3 .wdp Data through C#

jschierenbeck
Enthusiast Enthusiast
572 Views
0 Replies
Message 1 of 1

Retrieving nth3 .wdp Data through C#

jschierenbeck
Enthusiast
Enthusiast

I need to retrieve the nth 3 data from an AutoCAD E project through C#.
I basically need to produce this .lsp function in C#

(nth 3 (c:wd_proj_wdp_data_fnam "C:/mypath/DEFAULT PROJ.wdp"))

 

I am able to get all .wdp data using this code. 

 

ResultBuffer defProjData = new ResultBuffer(
new TypedValue((int)LispDataType.Text, "c:wd_proj_wdp_data_fnam"),
new TypedValue((int)LispDataType.Text, wdpfilepath)
);
ResultBuffer resultProjData = Application.Invoke(defProjData);

 

I tried this code to get the nth 3 data, but this gives me an error in Autocad

 

ResultBuffer nth3Data = new ResultBuffer(
new TypedValue((int)LispDataType.Text, "nth 3"),
new TypedValue((int)LispDataType.ListBegin),
new TypedValue((int)LispDataType.Text, "c:wd_proj_wdp_data_fnam"),
new TypedValue((int)LispDataType.Text, wdpfilepath),
new TypedValue((int)LispDataType.ListEnd)
);
ResultBuffer resultnth3Data = Application.Invoke(nth3Data);

0 Likes
573 Views
0 Replies
Replies (0)