converting parametric 2d curves and circles to polylines
All  1-12  13-16

Previous
Next
 From:  Michael Gibson
10797.13 In reply to 10797.12 
Hi Pior, the way it works is if UseSimpleEntities=y (which is the default), then if a curve is a line, circle, arc, or polyline it will be written as a LINE, CIRCLE, ARC, or POLYLINE entity type in the generated DXF file.

If it does not get written as one of those specific entity types (either because UseSimpleEntities=n or if it is not a line, circle, arc, or polyline) then it will be processed as a general curve and will use the processing specified in the dialog for "Write curves as", either writing a SPLINE entity or converting it to lines and writing a POLYLINE entity.


> I am still a bit confused by the DXF export dialog though - shouldn't the DXF export be made
> of polylines if the user choses so in the export options, regardless of the state of
> UseSimpleEntities(y/n) in the .ini ?

No, because if it worked like that then UseSimpleEntities would not do anything and there wouldn't be any way to write LINE, CIRCLE, or ARC entities.

If you want everything to be written as polylines, then set UseSimpleEntities=n in moi.ini and you should not get any LINE, CIRCLE, or ARC entities being written anymore.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  pior (PIOR_O)
10797.14 
Hello ! Indeed - I figured it out and appended my previous post ... probably just as you were typing your reply :D

All that said, since the behavior of selecting "polylines" in the export dialog is indeed dependent of the state of UseSimpleEntities, then I would say that this does require for the flag to be switchable in the export options indeed as briefly mentioned above - especially since one would assume intuitively that a "circle segment/arc" is a subset of the group "curve" ... even though in the DXF sense they are distinct separate entities.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
10797.15 In reply to 10797.12 
Hi Pior,

re:
> [Edit] : Oh OK I think I get it now. If a part has corners made out of circle sections (that is to say,
> perfectly round fillet corners), this part will indeed export out as polyline when the exporter
> option is set to that *if* the whole thing is combined and connected.

If you have a curve that started out as a rectangle and then had corners filleted, then that whole curve is not a line, circle, arc, or polyline and so will not be processed as one of those entities, it will go through general curve handling.

If you use Edit > Separate to break the joined curve into separate smaller curves then you will have 4 lines and 4 arcs and so in that case if UseSimpleEntities=y it will write those out as LINE and ARC entities.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Michael Gibson
10797.16 In reply to 10797.14 
Hi Pior,

> since one would assume intuitively that a circle segment is a subset of the group "curve" (even though in the DXF sense they are different entities).

The term "Curve" in MoI terminology has a specific meaning, it's a wire object that has a child list of Curve Segments.

An arc that is contained inside a parent curve is not a "Curve" in MoI, it's a "Curve Segment".

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-12  13-16