CivilTechSource Posted Saturday at 06:52 PM Share Posted Saturday at 06:52 PM Hi Everyone! Very new to this forum and to the AutoLisp (Although some minimal understanding of coding). I work for Civil Engineering firm and one of constant routines is carry out pipe clash detection for drainage. I did automate the process by using an excel spreadsheet to do all the checks for you but I still feel AutoLisp will save even more time. I broke down the code to the below steps: - Request from user minimum clearance (eg. 100mm) - Prompt user to select two lines/polylines (Each line.polyline represents a pipe) - Check if lines intersect - If lines intersect then request/Calculate the following variables Pipe 1: Upstream Invert Level - User Input (UI) Downstream Invert Level - UI Pipe Diameter - UI Intersection Length with other Pipe (Line/polyline)- Calculated Slope - Calculated Slope = Length/(Upstream Invert Level - Downstream Invert Level) Intersection Invert Level - Calculated Intersection Invert Level = Upstream Invert Level - (Intersection Length/ Slope) Crown Level - Calculated Crown Level = Intersection Invert Level + Diameter The Lisp will have to calculate the same for pipe 2. - The next step will be to run clash check 1. Compare the intersection Invert level from both pipes and find which pipe is the highest 2. Then subtract from the highest pipe invert level against the lower pipe invert level plus the diameter. 3. Check if the distance between the pipes to establish state: - If distance less than 0 then its a - clash - if distance less than clearance - very close - if distance greater than clearance - No Clash - Draw circle a circle based on the status of the pipes - Green if clear (no clash), orange if close, red if clash **Side bonus if the lisp can either: a) Allow the user to select an Mtext which contains the value of IL or B) The lisp searches for an Mtext near the pipe (on a specified layer - maybe prompt the user to select which layer is the mtext in as there are two types of pipes storm & foul). I am happy to appoint the right person to develop this lisp in exchange for a fee if required. However my preference is to be pointed out to the right sources/reading materials that can help me achieve this. Thank you for taking the time reading this. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted 23 hours ago Share Posted 23 hours ago (edited) Welcome aboard Have a look at this. Whilst I commercially write code I would look at this as money better spent as it has so much more, includes surfaces, road, drainage, sewer and more. I am a civil engineer working with Pc based software since 1980's This is a full demonstration of pipe network design, the pipe clash detection is at the 41 minute mark. https://www.google.com/search?q=civil+site+design+pipe+clash&sca_esv=f5375ae535b801fb&sxsrf=ADLYWIJr68ulCkDgsADBN0wgz-i38TvIRw%3A1730672990550&source=hp&ei=XvknZ5TAH6WMseMPr6iluA4&iflsig=AL9hbdgAAAAAZygHbsl16NgegCtQPahhlgceo_wof6U6&ved=0ahUKEwiU58mmm8GJAxUlRmwGHS9UCecQ4dUDCBg&uact=5&oq=civil+site+design+pipe+clash&gs_lp=Egdnd3Mtd2l6IhxjaXZpbCBzaXRlIGRlc2lnbiBwaXBlIGNsYXNoMgUQIRigATIFECEYoAEyBRAhGKABSNFQULQDWNhFcAJ4AJABAJgBjgKgAZktqgEHMC4xNS4xNLgBA8gBAPgBAZgCH6ACnS6oAgrCAgcQIxgnGOoCwgINEC4YxwEYJxjqAhivAcICBxAuGCcY6gLCAgQQIxgnwgIIEAAYgAQYsQPCAg4QLhiABBixAxjRAxjHAcICERAuGIAEGLEDGNEDGIMBGMcBwgILEAAYgAQYsQMYgwHCAg4QABiABBixAxiDARiKBcICDhAuGIAEGLEDGIMBGNQCwgIFEC4YgATCAgUQABiABMICDhAuGIAEGLEDGMcBGK8BwgIREC4YgAQYsQMYgwEYxwEYrwHCAgsQLhiABBixAxiDAcICCBAuGIAEGLEDwgILEC4YgAQYxwEYrwHCAgsQLhiABBixAxjUAsICBhAAGBYYHsICDBAuGNEDGBYYxwEYHsICCxAAGIAEGIYDGIoFwgIIEAAYgAQYogTCAggQABiiBBiJBcICBRAhGJ8FwgIHECEYoAEYCpgDCpIHBzIuMTUuMTSgB8POAQ&sclient=gws-wiz#fpstate=ive&vld=cid:1665ccf8,vid:UXyKkYI8WM4,st:69 Where are you in the world ? Edited 23 hours ago by BIGAL Quote Link to comment Share on other sites More sharing options...
CivilTechSource Posted 9 hours ago Author Share Posted 9 hours ago Hi Bigal, Thanks for the reply. I am aware there are other software that can do this. However, we do not tend to model private (housing) drainage and we just draw them in 2d hence the need for the clash check analysis. Based in UK, wbu? Quote Link to comment Share on other sites More sharing options...
hosneyalaa Posted 4 hours ago Share Posted 4 hours ago (edited) You need Program Autodesk Navisworks 0r program civil 3d Manage Can you attached example drawing Edited 4 hours ago by hosneyalaa Quote Link to comment Share on other sites More sharing options...
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.