Jump to content

like to hatch with multiple pick internal points.


patjeacad

Recommended Posts

(Defun C:DOORSNEDE0 ()  (command "-hatch" "Properties" "ANSI31" 0.25 0 "CO" 5 "" "" ))

first i do some settings before i use the command hatch. In the command hatch i use pick internal point, i can pick mutiple points. It wil become one hatch. When i use hatch at a lisp file only one time i can use a pick internal point. so i draw more hatches and they are not one hatch.

I saw many hatch files with creating a list of point and working with "while". Many don't work or i can not make them usable for me.

Can someone put me in the right direction to solve this problem?

Link to comment
Share on other sites

My Bricscad does not have "CO" as option ?

 

(Defun C:DOORSNEDE0 ( / pts)
(setq pts '())
(while (setq pt (getpoint "\nPick hatch points Enter to exit "))
(setq pts (cons pt pts))
)
(command "-hatch" "Properties" "ANSI31" 0.25 0  pts "")
(princ)
)

 

Link to comment
Share on other sites

option "CO" is for set hatch Color. and 5 is in ACI color index.

ANSI31 need background color also

so you have to change like this, "." means no background color.

(command "-hatch" "Properties" "ANSI31" 0.25 0 "CO" 5 "." "" "" )

 

 

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...