Jump to content

Change the point style with AutoCAD Autolisp


Recommended Posts

Posted

Change the point style with AutoCAD Autolisp

Posted

Change the variable pdmode - there are description of what they are all, PDsize for point size... and of course, with any variable change set it back again after you are done with the LISP as required

  • Like 1
  • Agree 1
Posted

Thank you

Can you give an example?

Posted

Here is a snippet that you could add to a LISP

 

(setq PDMode_Old (getvar 'pdmode))  ;;Record the existing point mode (style)
(setq 'pdmode 2)                    ;;Set the point to something new

;; Do stuff ;;

(setq 'pdmode PDMode_Old)           ;;reset the variable, pdmode back to as it was before the LISP

 

 

The pmode value isn't a straight 0, 1, 2, 3, 4... list you have 0 - 4 for the point then add 32 to add a circle round it, 64 to add a box and 96 to add a box and circle. See here:

 

https://help.autodesk.com/view/ACADWEB/ENU/?guid=AutoCAD_Web_Help_List_Commands_Pdmode_sysvar_html

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...