
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I've been tasked with creating a lisp that can offset a polyline 0.1075, twice, and editing the the central polyline to expand to the thickness of 0.215 and change it to the linetype ACAD_ISO03W100.
This is my first foray into writing lisp functions rather than just downloading them off the internet and have become a bit stuck.
I get as far as offsetting and thickening the central polyline however changing the linetype is to ACAD_ISO03W100 is still proving difficult.
It allows me to click on the central line and select LT and so on manually, though I do not know how to get the lisp to do this automatically.
Any Help or information would be greatly appreciated.
Kind Regards
Andrew
_$ _$ (defun C:WALLBUILDER() (setq cmde (getvar "cmdecho")) (setvar "cmdecho" 0) (while (setq e (entsel "\nSelect polyline to convert to fence: ")) (progn (command "offset" "0.2150" e "-1,-1" "") (command "offset" "0.1075" e "-1,-1" "") (setq e (entlast)) (command "pedit" e "w" "0.2150" "") (command "chprop" "LT" "" "ACAD_ISO03W100" "") ) ) (setvar "cmdecho" cmde) (princ) )
Solved! Go to Solution.