Mohammad Ramdan Purnama Posted March 16 Share Posted March 16 (edited) Hello everyone, I want to create a program that draws a polyline with hatching and hatching scale, here is the script: (defun kb_sc (/ sc_ent sc_sc) ; select area (command "_pline") (setq sc_ent (entlast)) ; scale (princ "\nEnter scale:") (setq sc_sc (getint)) ; hatching (setq oldHPNAME (getvar "HPNAME")) (setq oldHPSCALE (getvar "HPSCALE")) (setvar "HPNAME" "ANSI31") (setvar "HPSCALE" sc_sc) (command "-HATCH" "S" sc_ent "" "") (setvar "HPNAME" oldHPNAME) (setvar "HPSCALE" oldHPSCALE) ) However, there is a problem. Can you provide a solution so that this program can run properly? Thank You Edited March 16 by SLW210 Added Code Tags! Quote Link to comment Share on other sites More sharing options...
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.