Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello All,
I have a simple function that creates the lines in my drawing.
(defun CreateLine (p1 p2 lType)
(entmake
(list
(cons 0 "LINE")
(cons 10 p1)
(cons 11 p2)
(cons 6 lType)
(cons 48 1.0)
)
)
)
Now I want to follow up after adding one particular line by changing it's linetype scale to 0.5.
So, here is my code:
(CreateLine ln1Pt1 ln1Pt2 "Hidden")
(setq lineToChange (entget (entlast)))
(setq newLine (subst (cons 48 0.5) (assoc 48 lineToChange) lineToChange))
(entmod newline)
This has absolutely no effect on the line that was just put in.
If anyone knows how to change the linetype scale for the particular line, please let me know.
Thanks in advance,
Mark
Solved! Go to Solution.