single polyline

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
ditel
Posts: 31
Joined: 06 Feb 2020, 12:21

single polyline

Post by ditel » 10 Feb 2020, 12:07

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
Attachments
3.jpg
3.jpg (113.79 KiB) Viewed 9084 times

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: single polyline

Post by support » 10 Feb 2020, 21:05

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
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

ditel
Posts: 31
Joined: 06 Feb 2020, 12:21

Re: single polyline

Post by ditel » 11 Feb 2020, 15:31

Ok Thanks

ditel
Posts: 31
Joined: 06 Feb 2020, 12:21

Re: single polyline

Post by ditel » 18 Feb 2020, 18:59

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

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: single polyline

Post by support » 18 Feb 2020, 20:30

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
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

ditel
Posts: 31
Joined: 06 Feb 2020, 12:21

Re: single polyline

Post by ditel » 27 Feb 2020, 19:52

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

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: single polyline

Post by support » 28 Feb 2020, 17:52

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
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

ditel
Posts: 31
Joined: 06 Feb 2020, 12:21

Re: single polyline

Post by ditel » 02 Mar 2020, 13:24

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

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: single polyline

Post by support » 02 Mar 2020, 16:02

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
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

ditel
Posts: 31
Joined: 06 Feb 2020, 12:21

Re: single polyline

Post by ditel » 03 Mar 2020, 11:41

ok thanks Mikhail

Post Reply