Message 1 of 3
through Lisp i want to add civil 3d pipe structure lable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
i was trying to write using command function of civil 3d command when it comes to the selection object which i select through lisp of (ssget function) it is not taking
i request you to suggest me.
defun c:3dlabel()
(vl-load-com)
(command "osmode" "0")
(command "cmdcho" "0")
(setq cnt 0)
(setq structureset (ssget '((0 . "AECC_STRUCTURE"))));ADDNETWORKPARTPLANLABEL
(if (/= structureset nil)
(progn
(setq totalcnt (sslength structureset))
(while (>= totalcnt totalcnt)
(setq structure_obj (ssname structureset cnt));(vlax-ename->vla-object
(setq c3dobj (vlax-ename->vla-object structure_obj))
(setq strc_coord (vlax-ename->vla-object structure_obj))
;;; (command "")
(command "_AeccAddNetworkPartPlanLabel" c3dobj "")
;;; (setq strc_xy (vlax-get-property strc_coord 'Position))
;;; (command "ADDNETWORKPARTPLANLABEL" structure_obj)
;;; (setq sellab_Obj (entlast))
;;; (setq newlabpt1 (getpoint "\n Pick point to align.."))
;;; (setq newlabpt (getpoint newlabpt1 "\n Pick point to align.."))
;;; (command "stretch" structure_obj "" (setq basept1(getpoint)) (getpoint basept1))
(setq cnt (1+ cnt))
)
)
)
(command "osmode" "0")
(princ)
)