Community
AutoCAD LT Forum
Welcome to Autodesk’s AutoCAD LT Forums. Share your knowledge, ask questions, and explore popular AutoCAD LT topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AutoCAD LT - WBLOCK Setting

10 REPLIES 10
Reply
Message 1 of 11
davelomas
711 Views, 10 Replies

AutoCAD LT - WBLOCK Setting

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 ]

Tags (1)
Labels (1)
10 REPLIES 10
Message 2 of 11
cadffm
in reply to: davelomas

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

Message 3 of 11
davelomas
in reply to: cadffm

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

 

Message 4 of 11
h_s_walker
in reply to: davelomas

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

Capture.JPG

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.

EESignature


Left Handed and Proud

Message 5 of 11
cadffm
in reply to: davelomas

>> "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

Message 6 of 11
cadffm
in reply to: h_s_walker


@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

Message 7 of 11
davelomas
in reply to: cadffm

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.

Message 8 of 11
cadffm
in reply to: davelomas

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

Message 9 of 11
davelomas
in reply to: cadffm

Ok so I will:

  1. Use WBLOCK to create a DXF, 1 for each polyline,
  2. Open the DXFs,
  3. Move polyline close to zero point,
  4. Close DXF,
  5. Save DXF

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.

 

Message 10 of 11
pendean
in reply to: davelomas


@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

pendean_0-1669734310036.png

 

Message 11 of 11
cadffm
in reply to: davelomas

"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.

Post to forums  

Technology Administrators


Autodesk Design & Make Report