Jump to content

Recommended Posts

Posted

Dear all,

 

Need your help in designing a lisp which will create a hatch not in the boundary but on the edge of poly line.

 

Honestly can't explain in words so I have attached a hand sketch of what I am looking for.

 

Thanks in advance.

IMG_20170308_140014_418.jpg

Posted

Have you considered the command Measure or Divide?

Posted

Sorry sir honestly I am new to cad and lisp. The idea behind creating the hatch around poly line is to use it later for overlaying other object and capturing intersection points.

Posted

I appreciate that you might be new to cad, but there are inbuilt commands that you should find out on your own how they work.

 

I was just suggesting a couple of commands that might be of use. It is up to you to find out exactly how they work, using the Help section of cad.

 

Lisp is not the answer to everything, and using it, might prevent your proper knowledge of inbuilt commands.

 

Happy hunting.

Posted

Dear sir, I appreciate your feedback. The reason for posting it in lisp is that I want to use this as a part of program where after importing a dxf or drawing file this hatches should automatically get generated around the entities. I have tried studying the commands but all hatching are focusing on boundaries and only defined areas are getting hatched.

Posted

Eldon is correct, as usual. :beer:

 

Divide would seem to be a good approach, but you would need to define an appropriate point style before using it.

While you may have researched Hatch, what you describe is definitely not a hatch. :|

Posted (edited)

Why not use Hatch guys, just offset the pline twice in and out then hatch, erase the new plines all done.

 

Sorry misread hatch can not delete image.

ScreenShot080.jpg

Edited by BIGAL
Posted

Thanks a lot everybody. I am really delighted to get different insights through this. Let me clarify my points for both the answers which I have got:

 

1. If I divide the line will I not loose the entity and instead create multiple entities. Sorry if my question is wrong.

 

2. For the option proposed by bigal the problem is that if I hatch area the lines are uniform. I need the hatching lines to be perpendicular for line and for circle it should focus around the centre.

 

Hope I am able to communicate my problem.

Posted

Sorry misread the post just create a line type use the keyboard symbol | as text.

 

*FENCE,Fence ----------/----------/----------/----------

A,20,-1.5,["/",STANDARD,S=1.8,R=0.0,X=-.9,Y=-.9],-1

 

*PIPE,PIPE ----------|----------|----------|----------

A,20,-1.5,["|",STANDARD,S=1.8,R=0.0,X=-.9,Y=-.9],-1

Posted
Thanks a lot everybody. I am really delighted to get different insights through this. Let me clarify my points for both the answers which I have got:

 

1. If I divide the line will I not loose the entity and instead create multiple entities. Sorry if my question is wrong.

 

2. For the option proposed by bigal the problem is that if I hatch area the lines are uniform. I need the hatching lines to be perpendicular for line and for circle it should focus around the centre.

 

Hope I am able to communicate my problem.

 

The DIVIDE command doesn't destroy the object, it merely displays division markers along its length.

Posted
Thanks a lot everybody. I am really delighted to get different insights through this. Let me clarify my points for both the answers which I have got:

 

1. If I divide the line will I not loose the entity and instead create multiple entities. Sorry if my question is wrong.

 

2. For the option proposed by bigal the problem is that if I hatch area the lines are uniform. I need the hatching lines to be perpendicular for line and for circle it should focus around the centre.

 

Hope I am able to communicate my problem.

 

You can accomplish this with Measure using a block for the hatch lines

Posted (edited)

Qbic: An example of using a block (the magenta line) with the DIVIDE command.

 

TheGreatDivide.jpg

Edited by ReMark

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...