Change point style
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm using the following to change the point label style but I would also like to change the point style at the same time. Can anyone help with this?
;Civil 3d change Point Label Style
;---------------------------------
(vl-load-com)
(defun c:PAV ( / Cpnt Algn Algn_Name)
(SETQ CadApp (VLAX-GET-ACAD-OBJECT));Get AutoCAD Object
(setq C3dApp (vla-getinterfaceobject CadApp "AeccXUiLand.AeccApplication.12.0"));2018 C3D
(setq C3Ddoc (vla-get-activedocument C3dApp));Get Active Document
(setq ptlblstyles (vlax-get C3Ddoc 'pointlabelstyles));Get Point Styles
(setq style1 (vlax-get-property ptlblstyles 'item "PT-PAV"));get the Point Style
(mapcar 'vlax-release-object (list C3Ddoc C3dApp CadApp));release objects
;Select Points
(setq Slcsct (ssget))
;Selection Length
(setq SlcLen (sslength Slcsct))
;Counter
(setq tn 0)
(repeat SlcLen
(setq tmpname (ssname Slcsct tn))
(setq Cpnt (vlax-ename->vla-object tmpname))
(vlax-put-property Cpnt 'LabelStyle style1 )
(setq tn ( + tn 1))
);repeat
);defun