Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Surface elevation child location

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
rfg018
407 Views, 3 Replies

Surface elevation child location

I'm trying to build a list of surface lable style, (both slope and spot elevation) using vlisp 2013.

I can create a list of the parant, but I can not find the clildren.

 

my goal is to change a surface label style between the parent and the children, using a list.  To many style for the property menu.

 

Please help.

3 REPLIES 3
Message 2 of 4
Jeff_M
in reply to: rfg018

Each LabelStyle has a Children property.

Jeff_M, also a frequent Swamper
EESignature
Message 3 of 4
rfg018
in reply to: rfg018

I can find the Child property.

Message 4 of 4
Jeff_M
in reply to: rfg018

This works for me:

(vl-load-com)
  (setq prod (vlax-product-key))
  (setq prodStr (strcat "AeccXUiLand.AeccApplication"
			(cond ((vl-string-search "\\R18.0\\" prod)
			       ".7.0");;2010
			      ((vl-string-search "\\R18.1\\" prod)
			       ".8.0");;2011
			      ((vl-string-search "\\R18.2\\" prod)
			       ".9.0");;2012
			      ((vl-string-search "\\R19.0\\" prod)
			       ".10.0");;2013
			      ((vl-string-search "\\R19.1\\" prod)
			       ".10.3");;2014
			      (t ""))))
			      
  (if (and (setq *acad* (vlax-get-acad-object))
	   (setq C3D (vla-getinterfaceobject *acad* prodStr))
	   (setq C3Ddoc (vla-get-activedocument C3D))
	   )
    (progn
      (setq stylelist "")
      (setq surflblstyles (vlax-get c3ddoc 'surfacelabelstyles))
      (processstyles (vlax-get surflblstyles 'spotelevationlabelstyles))
      )
    )


(defun processstyles (styles)
  (vlax-for style styles
    (setq stylelist (strcat stylelist (vlax-get style 'name) ", "))
    (if (setq children (vlax-get style 'children))
      (processstyles children)
      )
    )
  )

 

Jeff_M, also a frequent Swamper
EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report