sorourke765462
2018-03-26, 09:24 PM
At present we have a number of LISP routines that I've inherited from previous CAD drafters that noone (including me) fully understands. I've managed to add/manipulate some of them, in a basic fashion, to better reflect what we need to be automated. The final hurdle to resolving most of the "We'll just manually type that stuff in" BS is way beyond my understanding.
In the attached .dwg there's a survey file of a pick-up of a stormwater drainage pit. The call-out for the 'invert' is our usual flow/size/material/depth leader, both Lisps attached.
What I need to be able to do is to expand the selection from a single point to all pipes coming in-out of the pit, the 5 magenta points in the .dwg attached represent the 5 inlet-outlets to the pit and have the attributes of :
NAME , CODE , ELEVATION , DEPTH , SIZE , MATERIAL , END , FLOW , NOTE , METHOD
Our invert callout pulls out : FLOW , SIZE (%%C) , MATERIAL , DEPTH
I'm trying to do 2 things with the information :
1: select multiple points, (replacing car with ssget?) and write them all into a mleader consecutively with the CODE at the start, which we'll nominate for the identifier number on the screen in CAD and
2: generate a fifth attribute called INVERT which would be (I assume) (setq invert (- elevation material).
so I'd get a mleader something like CODE - INLET - 125%%C - PVC
"TAPE DEPTH" - DEPTH"m"
"INVERT" - INVERT"m"
CODE - INLET - 125%%C - PVC
"TAPE DEPTH" - DEPTH"m"
"INVERT" - INVERT"m"
CODE - OUTLET - 125%%C - PVC
"TAPE DEPTH" - DEPTH"m"
"INVERT" - INVERT"m"
Any of the points (probably the first one chosen) can be the insertion points for the mleader.
Any help would be much appreciated
In the attached .dwg there's a survey file of a pick-up of a stormwater drainage pit. The call-out for the 'invert' is our usual flow/size/material/depth leader, both Lisps attached.
What I need to be able to do is to expand the selection from a single point to all pipes coming in-out of the pit, the 5 magenta points in the .dwg attached represent the 5 inlet-outlets to the pit and have the attributes of :
NAME , CODE , ELEVATION , DEPTH , SIZE , MATERIAL , END , FLOW , NOTE , METHOD
Our invert callout pulls out : FLOW , SIZE (%%C) , MATERIAL , DEPTH
I'm trying to do 2 things with the information :
1: select multiple points, (replacing car with ssget?) and write them all into a mleader consecutively with the CODE at the start, which we'll nominate for the identifier number on the screen in CAD and
2: generate a fifth attribute called INVERT which would be (I assume) (setq invert (- elevation material).
so I'd get a mleader something like CODE - INLET - 125%%C - PVC
"TAPE DEPTH" - DEPTH"m"
"INVERT" - INVERT"m"
CODE - INLET - 125%%C - PVC
"TAPE DEPTH" - DEPTH"m"
"INVERT" - INVERT"m"
CODE - OUTLET - 125%%C - PVC
"TAPE DEPTH" - DEPTH"m"
"INVERT" - INVERT"m"
Any of the points (probably the first one chosen) can be the insertion points for the mleader.
Any help would be much appreciated