Retrieving nth3 .wdp Data through C#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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);