I am looking for a macro to dxf my model piece parts. Every time I create one it wont work due to the error of current view.
When creating a .dxf of a model, you can select the views you want to add, which would mostly likely be Front, Right, Top and maybe an Isometric view. I do not know what you mean by error of current view. Does it not ask you which views you want to add? Does it, and then once you select the check-mark give you an error?
Thirdly, what do you want the macro to do? Go through all your parts and create .dxf files? If so, you most likely have to find the source of your error before getting a macro to do it for you, since the macro will not work if you can not do it manually.
Edit: There exists an excellent macro for exporting into new file formats, but unfortunately it does not have .dxf for models only for drawings. You can either make drawings of your parts and export them in one step with this macro, which would be useful since your .dxf would already be organized as a nice drawing, or you can add .dxf to the model export list, but I do not know what the resulting .dxf would look like.
You can find the macro here at Lenny's SolidWorks Resources under DocExport.
Share your macro here and somehow would help in fixing that. Also there are many DXF export macros on this forum you could search, modify and use.
Deepak, I have been using the macro Export Hybrid - 5.1.1. It works very good except for one thing, the output face of the dxf is rotated 90°. Is there a way top fix this? Thanks.
Yes the dataalignment needs to be all set to 0 in the codes.
Thanks Deepak, I will try.
Retrieving data ...