We use the WBLOCK function to save polylines as DXFs. However the destination is the same as it's location in the source DWG. In order for the DXF to be read by our CNC Saws we need to open the DXF, move it closer to the datum point, close the file, select to save, change the file type and answer a few more popups.
Is there anyway of changing the settings so that the destination of the polyline in the DXF is closer to the datum point rather than its location in the source DWG??
[ The subject line of this post has been edited for clarity by @handjonathan Original: WBLOCK Setting ]
Hi,
>>"we need to
open the DXF,
move it closer to the datum point,
close the file,
select to save,
change the file type and answer a few more popups. "
>>"Is there anyway of changing the settings so that the destination of the polyline in the DXF is closer to the datum point rather than its location in the source DWG??"
Simple Question: Why not, you are moving the objects first and wblock they then?
Simple idea to save many other (unneeded) steps.
Keep it simple 😉
Sebastian
For example in my latest project there were around 70-80 different polylines that I needed to do this with. If it was one or two I would try that but this wouldn't be too beneficial with larger numbers and would make it hard to keep track of what had been converted and what hadnt
The ringed area in the attached image. You can pick the basepoint of your "block", just click on the icon to the left of PICK POINT
Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
>> "70-80 different polylines"
The result are 70-80 dxf, right? (or one dxf with 70-80 polylines?
>>that I needed to do this with. If it was one or two I would try that but this wouldn't be too beneficial with larger numbers "
I can't follow you, the movement would be part of your macro - takes 0 seconds and no effort for you.
Perhaps I miss the case, but I guess I am right and you are off the track.
>>"and would make it hard to keep track of what had been converted and what hadnt"
?? I can't follow you again.
The already converted part gone after Wblock (depend of your setting/command version),
or if you like it: kepp the converted objects and set the color to pink* for example.
To make sure I don't misunderstood, please tell me/us how in detail you work.
Let's say we have one file D:\test\sample1.dwg with 2 relevant objects inside (far away from 0,0).
What do you do, from the first to the last step in detail please.
For example (please correct me), that is what I think what you do until now:
- open D:\test\sample1.dwg
-start wblock, Option Object selection, select object1, set path and name to d:\test\mypart1.dxf
-start wblock, Option Object selection, select object2, set path and name to d:\test\mypart2.dxf
- close D:\test\sample1.dwg
-open d:\test\mypart1.dxf start move command, move the object to 0,0, save & close the file
-open d:\test\mypart2.dxf start move command, move the object to 0,0, save & close the file
right? wrong? please explain in same details
What I prefer to do im this case:
Use a Macro which works this way:
In a loop: Select object(s), cutclip, pasteclip,0,0, Wblock objects previous <ask for DXF name>
so you have to select objects, type in the dxf name and this 70-80time in a row, finish.
*^C^C^C_.CUTCLIP;\;_.PASTECLIP;_non;*0,0;_.-WBLOCK;\16;;*0,0;_last;;
Start macro
select ONE object by click (if you need to select multiple objects, you need an edit og this macro)
type in the filename (incl. ".dxf")
Sebastian
@h_s_walker schrieb:
The ringed area in the attached image. You can pick the basepoint of your "block", just click on the icon to the left of PICK POINT
Wblock creates DWG (or DXF) files,[edit] no blocks, and the DXF will used as DXF and not just a a block template.[/edit]
also your offeres 'base point' down't change the position of object, just the insertion basepoint of the new file,
what is useless for CNC Software for usual - also also in normal CAD daily work: It only causes irritation and problems.
(my personal rule for me: Don't use another insbase point than 0,0,0 except it is useful or needed.)
Sebastian
Hi yeah if there were two sets of polylines then I would make 2 DXFs and then open each, move them close to datum point and then close and save.
I am confused now and you didn't explained it step by step
like I did it above.
My sample macro above is for:
For each selected polyline -> ONE dXF.
The macro repeats until you cancel.
If you need multiple polylines to 1 file,
also repeatly:
<untested!>
*^C^C^C_.Select;\_.CUTCLIP;_p;;_.Select;_all;;_.PASTECLIP;_non;*0,0;_.-WBLOCK;\16;;*0,0;_all;_remove;_p;;
Sebastian
Ok so I will:
My problem is that when we create the DXFs for our CNC operatives the machine can not read the DXF unless the line is relatively close to the zero point. Unfortunately, the lines within the DXF are created at the same point as they are in the original DWG. Meaning we are wasting time (cumulatively quite a lot) by having to do steps 2-5. I'm trying to find out if there is a setting within the WBLOCK function that will create the lines within the DXF closer to the zero point.
@davelomas wrote:
I'm trying to find out if there is a setting within the WBLOCK function that will create the lines within the DXF closer to the zero point.
May I ask why this WBLOCK option is not working for you? POST #4 above already pointed that out to you. Don't be afraid to explore pop-ups options with the aid of the HELP button on all of them
"Use WBLOCK to create a DXF, 1 for each polyline"
Checkout my first macro!
Any question about this?
Try it!
Sebastian
Can't find what you're looking for? Ask the community or share your knowledge.