DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Import DXF Insertion Point

Started by Juergen, October 04, 2014, 09:01:18 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Juergen

I don't find a way to insert an imported DXF at a specific point.
Origin() is not my friend.

Thanks in advance for any idea,

Juergen

prl

Quote from: Juergen on October 04, 2014, 09:01:18 AM
I don't find a way to insert an imported DXF at a specific point.

Not that I know of.  Open a second DesignCAD blank drawing and import it there.  Then calibrate it (scale it), set handles and cut and paste to your original drawing.

Juergen

The DXF are always in scale, there is nothing to do.
The insertion point is a bit weird. I set the origin to the
center of the drawing (generated with the scale requirements of
the user). Inserting a DXF leads to an insertion point at the upper
left corner.
If a save the empty drawing and reload it, the DXF finds its place
in the center of the drawing (=origin).
This is strange.

Kind regards,

Juergen

prl

As far as I know, importing Dwgs and Dxf files does not use an insertion point.

Supposedly the imported data keep their original coordinates as defined by the AutoCAD file.  Only reason scale is sometimes an issue is old AutoCAD drawings typically used inches as the database unit and DesignCAD typically used feet, so a scale factor of 12 was needed.

Juergen

It looks like that DC binds DXF to the origin in case the drawing has been saved before.
Check it out: Open an empty drawing, set origin, save, reload and insert a DXF file.
I am on V21 right now, I'll check V22 and V23 tomorrow.

Thanks and kind regards,
Juergen

Juergen

I have solved it with immediate moving the DXF to the origin by DcSel.Movie(True).

Kind regards,

Juergen

prl

Juergen.  I created a few sample drawings and exported them to both dwg and dxf.  Then reimported them into DesignCAD.  I've noticed the following patterns with version 22.1

1.  If the DesignCAD drawing has existing entities, importing a dwg will bring it in at its original coordinates, selected, with the primary handle (big blue handle) at the first point of the first entity in the dwg import.

2.  If the DesignCAD drawing has existing entities, importing the same file as dxf will bring it in at its original coordinates, selected, with the primary handle (big blue handle) at varying locations.  You would think the dwg import and dxf import are the same, especially for the same entities, but apparently they do different things once the entities are imported in terms of selecting the items and setting the primary handle.

Can't explain any of this and it wouldn't surprise me if this behavior changes with each version of DesignCAD.  Bottom line, if you find a solution, check it against other DC versions and between dxf and dwg.

Juergen

#7
Hi prl,

thank you for thinking along. I'm fine now with my solution.
There will be no DWG to import, I handle with vehicle DXF drawings
only. There the insertion point is the center of gravity always.
I attach an example (It is the circle with the cross.)

I'll check V22 and V23 within the next  2 hours.

Kind regards,

Juergen

Juergen

> check it against other DC versions

No problems with V22 and V23.

Kind regards,

Juergen