Qbic Posted March 8, 2017 Posted March 8, 2017 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. Quote
eldon Posted March 8, 2017 Posted March 8, 2017 Have you considered the command Measure or Divide? Quote
Qbic Posted March 8, 2017 Author Posted March 8, 2017 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. Quote
eldon Posted March 8, 2017 Posted March 8, 2017 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. Quote
Qbic Posted March 8, 2017 Author Posted March 8, 2017 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. Quote
Dadgad Posted March 8, 2017 Posted March 8, 2017 Eldon is correct, as usual. 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. Quote
BIGAL Posted March 8, 2017 Posted March 8, 2017 (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. Edited March 10, 2017 by BIGAL Quote
Qbic Posted March 8, 2017 Author Posted March 8, 2017 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. Quote
BIGAL Posted March 8, 2017 Posted March 8, 2017 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 Quote
Dadgad Posted March 8, 2017 Posted March 8, 2017 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. Quote
guran Posted March 8, 2017 Posted March 8, 2017 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 Quote
ReMark Posted March 8, 2017 Posted March 8, 2017 (edited) Qbic: An example of using a block (the magenta line) with the DIVIDE command. Edited March 8, 2017 by ReMark Quote
Grrr Posted March 10, 2017 Posted March 10, 2017 Tharwat did something like this: http://www.cadtutor.net/forum/showthread.php?85092-LISP-Somethig-like-smart-offset Quote
Recommended Posts
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.