ObjectARX is used to create a process for extracting line segments that are less than or equal to the specified length from the entire drawing.
Loops with iterators take a long time, so I'm looking for another way.
If I specify conditions in QSELECT, I can extract them in a short time, but is it possible to execute them from the program?
Also, is it possible to search acedSSGet based on length?
It would be very helpful if you could reply.
I look forward to your kind cooperation.
If you specify a condition in QSELECT, it can be extracted quickly.
Is it possible to run it from the program?
like the CAD QSELECT command
You can select by specifying conditions based on the type and properties of the figure in the program.
Use the fourth argument (result buffer) of the acedSSGet() function to
You can filter by specifying conditions by DXF group code.
Below is a sample of how to create a result buffer to select a figure conditionally.
//(0,0) Filtering by line segments starting with
adds_pointpt1;
pt1[X] = pt1[Y] = pt1[Z] = 0.0;
resbuf*prb;
prb = acutBuildList (-4, _T("<AND"), RTDXF0, _T("LINE"), 10, pt1, -4, _T("AND>"), RTONE;
Is it possible to search acedSSGet based on length?
There is no DXF code for the length of the line segment, so I don't think it can be added to the acedSSGet condition.
© 2024 OneMinuteCode. All rights reserved.