Annotations in DXF/DWG export

Hello

Is it possible to add text in the DXG/dwg export (3D part)?

I need to export in dxf unfolded for laser cutting, with text like Thick=2 Mat=304 .... (the text info is entered in the part properties)

Today I go through a homemade macro that does all this for me but it goes through the creation of a temporary drawing, which prevents me from exporting the fold lines in a specific layer. 

 

 

 

A priori I think it's not possible...

Let's see if this is suitable:

https://forum.solidworks.com/thread/87992

To read also, two solutions here:

https://forum.solidworks.com/thread/56336

But no simple solutions for automation!

Personally, before exporting in dxf, I add a note on the 3d via a sketch and lettering.

 

Then when I export, I check the sketch box to be able to row my lettering above.

 

 

4 Likes

Alas, this is not possible. I just have to continue by hand. 

We then via the maro, a faith that the dxf is generated via the dxf/dwg exort, reopen the dxf and insert my annotation but I'm afraid it's a bit heavy.

 

What do you think?

Bart. This seems to me a very good idea... I'll try right away

1 Like

We can even go further.

 

The plates can be inserted automatically.

 

If we start from the drawing of the part on a 1/1 scale, add notes that are related to the different properties (Note 1 = thickness of the part, note 2 = material etc...)

 

All you have to do is modify the part, then export the mep to dxf.

 

 

3 Likes

This is what I do immediately via a temporary drawing, I insert my unfolded and then my annotations linked to the bodies that I have previously selected in the 3D part.

 

I manage a lot of things (marking the configuration of the part, marking the name of the part...) all that remains is to automate the bend lines in the "marking" layer.

The top would be to have jute marking at the ends of the geometry count. and I won't have to intervene on the DXF generated by solidworks anymore... The dream^^ 

@Bart, can you send an example in DXF or DWG so that I can see what it looked like please?

Here's a random file.

 

I set the unfolded to 1/1 scale and then I added 2 notes that are linked to the "Thickness" and "Material" properties

 

I then exported in dxf.

 

Of course, in the example I took a mep model with cartridge, but I don't stop you from putting a blank one.


patte_20037.dxf
2 Likes

What do you mean by "all you have to do is automate the fold lines in the "marking" layer?

 

 

I would like my fold lines to be autaumatically in a different layer than the geometry by going through a drawing.

You can change the color of the folds lines, but put them in a special layer, no.

 

Either we put the whole unfolded in a different layer or in the same one with a different color.

 

Edit: By manually selecting the fold line, we can show it a layer.

2 Likes
Ok will look at the option to change the layer manually. If we can do it manually normally, we could do it with a macro. Just find the code to select a fold line and the code to change the layer, looped on the view so that it faces it on all the lines.
1 Like

Absolutely, if it's doable by hand, it's doable in macro.

 

For the rest, I'm not an expert, maybe you'll have to ask Lucas.

2 Likes

I did hesitate to change the layer of the fold line, but when exporting to dxf  it always puts it in the "0" layer. 

 

An improvement on layers is needed at Solidworks ^^.

1 Like