- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi There I have been converting an ARX application into C# and I have a method is giving me this error and am not sure why.
The original function is somthing like this
ResbufList clsList;
if(isTextFromXData)
clsList.append_list(RTDXF0, (char *)PILOT_CONSTANT_ENTITY_POLYLINE);
else
clsList.append_list(RTDXF0, (char *)PILOT_CONSTANT_ENTITY_POLYLINE1);
clsList.append_list(8, (char *)(LPCTSTR)(strLayerFilter));
clsList.append_list(67, (long)0);
I converted that to something like
List<TypedValue> tvs = new List<TypedValue>();
if (isTextFromXData)
tvs.Add(new TypedValue(5020, "POLYLINE,LWPOLYLINE")); //RTDXF0
else
tvs.Add(new TypedValue(5020, "POLYLINE,LWPOLYLINE,LINE,ARC,CIRCLE,ELLIPSE,3DFACE"));//RTDXF0
tvs.Add(new TypedValue(8, strLayerFilter));
tvs.Add(new TypedValue(67, (long)0));
// Define space boundary filter
ResultBuffer rb = new ResultBuffer(tvs.ToArray()) -------------> Here I get the error eInvalidResBuf
Initially I was trying to add the TypedValue to the result buffer and I was getting the same error on the first typed value.
Not sure if is because of the value 5020 is not permitted or it may be something else?
Also I'm not sure if this is OK but I don't have the drawing open on the editor. I was trying to just access the data from the database without having to open the drawing but this function eventually is using the ResultBuffer to call the acedSSGet function.
Thank in advance for the help.
Solved! Go to Solution.
