Thanks for the code I always do try and search for this kind of stuff before I ask for help. So this is my program so far.
(vl-load-com)
(defun c:cc (/ ent1 oldlay c3d c3ddoc settings ptcmdsettings createptsettings ptcreationsettings descprompt elevprompt descdefault elevdefault nameprompt)
(setq c3d (getaeccapp "Land"))
(setq c3ddoc (vlax-get c3d 'activedocument))
(setq settings (vlax-get c3ddoc 'settings)
ptcmdsettings (vlax-get settings 'pointcommandssettings)
createptsettings (vlax-get ptcmdsettings 'createpointssettings)
ptcreationsettings (vlax-get createptsettings 'pointcreationsettings))
(setq descprompt (vlax-get ptcreationsettings 'promptfordescriptions)
elevprompt (vlax-get ptcreationsettings 'promptforelevation)
descdefault (vlax-get ptcreationsettings 'defaultdescription)
elevdefault (vlax-get ptcreationsettings 'defaultelevation)
nameprompt (vlax-get ptcreationsettings 'promptforpointnames)
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(princ "\nPick your Line ... ")
(setq ent1 (car (entsel)))
(setq oldlay (cdr (assoc 8 (entget ent1))))
(vlax-put elevprompt 'value 0)
(vlax-put nameprompt 'value 0)
(vlax-put descprompt 'value 0)
(vlax-put elevdefault 'value "0")
(vlax-put descdefault 'value oldlay)
(command "-CREATEPOINTMEASUREOBJECT" ********* "" "" "" "50")
)
Where I have the ******** is where I need to place the line entity that was selected above with entsel. I
I just want to select the line I want then it puts points every 50 feet with elevation of 0 and desc of layer name using create point measure object. Ideally I want to select a bunch of lines on diffrent layers and add point to all of them every 50 feet but the point code desc must be the layer that that line is on.
Thanks in advance