Page 1 of 1

single polyline

Posted: 10 Feb 2020, 12:07
by ditel
Good morning
we have a 2D design that consists of several entities. Lines, Arc etc. after converting it to a polyline and then we generate a plt file.
We need to turn all polyline into a only one
it is posible ? now we have a problem which is that some of the arc entities start from left to right and others the other way around.
in the attached file you can see the problem we want to solve

when we generate the plt file of the 2d design the sequence generated is from point 1 to do goes in the left to right direction but then instead of going from point 2 to 3 with the same sense the sequence is from 1 to 2 after 3 to 2. For our development we need to go from 1 to 3 without generating any intermediate PU PD.

we had thought about converting all the entities to polylines and then grouping them into one but we don't know if this is possible or there is another solution available

thanks

Re: single polyline

Posted: 10 Feb 2020, 21:05
by support
Hello,

There is a Join tool in CADEditorControl (the first toolbar button on the right). This tool allows to join two lines (or polyline and line) with conjugate vertices into a single polyline. Unfortunately, it cannot join two polylines into a single polyline.

Mikhail

Re: single polyline

Posted: 11 Feb 2020, 15:31
by ditel
Ok Thanks

Re: single polyline

Posted: 18 Feb 2020, 18:59
by ditel
Hello Again
Referred to our last question.
Could you convert several entties of type ARC and type LINE in a single polyline ?
That then by converting the design to hpgl we only get a single PU point and then the whole outline without more PU points in the path of the outline of the drawing

Re: single polyline

Posted: 18 Feb 2020, 20:30
by support
ditel wrote:
18 Feb 2020, 18:59
Could you convert several entties of type ARC and type LINE in a single polyline ?
Unfortunately, CAD .NET library doesn't have a function for that. You might try to replace CADArc entities with polylines, on the basis of the collection of points obtained through a CADArc.PolyPoints property, but two polylines with conjugate vertices cannot be joined into a single polyline using the Join tool.

Mikhail

Re: single polyline

Posted: 27 Feb 2020, 19:52
by ditel
Hello again to solve our problems of the previous posts you have an ABViewer product we would like to know if with this component or with cad.net we can optimize the hplg files that we generate from our cad design. so that the contours of a part are done at once with a single PU throughout the contour

Re: single polyline

Posted: 28 Feb 2020, 17:52
by support
Hello,

CAD .NET generates a single PU (Pen Up) command for a contour containing a single polyline. If there are several polylines in a DWG/DXF file, the library generates several PU commands (one command for each polyline).

ABViewer generates the HPGL/2 command PE (Polyline Encoded) for each polyline in a DWG/DXF file instead of a sequence of PU/PD commands. However, editor functionality of this program allows to join two polylines into a single polyline (that cannot be done with CAD .NET).

Mikhail

Re: single polyline

Posted: 02 Mar 2020, 13:24
by ditel
Ok
I understand that if we buy the ABViewer component we would have the possibility to edit several polylines in one to solve our problem when converting to hpgl? it's true

Thanks

Re: single polyline

Posted: 02 Mar 2020, 16:02
by support
ditel wrote:
02 Mar 2020, 13:24
I understand that if we buy the ABViewer component we would have the possibility to edit several polylines in one to solve our problem when converting to hpgl? it's true
Yes, you will be able to join two polylines into a single polyline in a DWG/DXF file. Please note that ABViewer is an application, not a component which can be integrated into a developed application.

Mikhail

Re: single polyline

Posted: 03 Mar 2020, 11:41
by ditel
ok thanks Mikhail