<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Please help by adding  outer border to the surface in Civil 3D Customization Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/please-help-by-adding-outer-border-to-the-surface/m-p/9944511#M7521</link>
    <description>&lt;P&gt;Thank you so much&amp;nbsp; &amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1633394"&gt;@hippe013&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/32637"&gt;@Jeff_M&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yeah&lt;BR /&gt;This is what I was asking for&lt;BR /&gt;Thank you both&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="التssقاط.PNG" style="width: 791px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/857098i03A68BC6D45945D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="التssقاط.PNG" alt="التssقاط.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Dec 2020 17:56:38 GMT</pubDate>
    <dc:creator>hosneyalaa</dc:creator>
    <dc:date>2020-12-16T17:56:38Z</dc:date>
    <item>
      <title>Please help by adding  outer border to the surface</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/please-help-by-adding-outer-border-to-the-surface/m-p/9941173#M7513</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello all&lt;BR /&gt;I'm trying to add an outer border to the surface&lt;BR /&gt;But it does not take the type limit&lt;BR /&gt;Do you solve the problem&lt;BR /&gt;And if you choose another type boundary (&amp;nbsp;"Show" "Hide" "DataClip" ) , it works&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:test_boundary ( / *ACAD* ALGN BLKSOBJ C3D C3DDOC DOC ENT E_TYP OBENT PNTS SPC SRF XSTTY)

    (vl-load-com)

  (IF     (OR
	(setq algn (vlax-ename-&amp;gt;vla-object (setq obent(car (entsel "\nSelect Polyline: ")))))
        (while (not (= (vlax-get-property algn 'ObjectName) "AcDbPolyline"))
         (setq algn (vlax-ename-&amp;gt;vla-object (car (entsel "\nSelect Polyline: "))))
       )
	     )

    
	(PROGN
   ;; Jeff Mishler
	  
    (defun getaeccApp (module / *acad* C3D)
    ;; module must be "Land", "Pipe", "Roadway", or "Survey"
    (vl-load-com)
    (if	(and (setq *acad* (vlax-get-acad-object))
	     (setq C3D (strcat "HKEY_LOCAL_MACHINE\\"
			       (if vlax-user-product-key
				 (vlax-user-product-key)
				 (vlax-product-key)
			       )
		       )
		   C3D (vl-registry-read C3D "Release")
		   C3D (substr
			 C3D
			 1
			 (vl-string-search
			   "."
			   C3D
			   (+ (vl-string-search "." C3D) 1)
			 )
		       )
		   C3D (vla-getinterfaceobject
			 (vlax-get-acad-object)
			 (strcat "AeccXUi"
				 module
				 ".Aecc"
				 (if (= (strcase module) "LAND")
				   ""
				   module
				 )
				 "Application."
				 C3D
			 )
		       )
	     )
	)
      C3D
    )
  )

  
                     (setq aeccapp (getaeccapp "Land"))
  
			(setq c3ddoc (vlax-get aeccapp 'activedocument)
				surfs (vlax-get c3ddoc 'surfaces)
			)
    
			


             (setq srf (vlax-ename-&amp;gt;vla-object (setq ent (car (entsel "\nSelect Surface: ")))))
	     (while (not (= (vlax-get-property srf 'ObjectName) "AeccDbSurfaceTin"))
		(setq srf (vlax-ename-&amp;gt;vla-object (car (entsel "\nEntity must be C3D Surface. Try again: "))))
		)


  
  (setq xSTTY NIL)
  ;;http://docs.autodesk.com/CIV3D/2012/ENU/API_Reference_Guide/com/AeccXLandLib__IAeccSurfaceBoundaries__Add@[in]_IAcadEntity_@[in]_BSTR@[in]_AeccBoundaryType@[in]_VARIANT_BOOL@[in]_double@[out,_retval]_IAeccSurfaceBoundary__.htm
  (setq e_typ (CAR(LM:listbox "Select surface boundary type " (LIST "Outer" "Show" "Hide" "DataClip") 1)))
   (cond ( (= e_typ "Outer")
          (setq xSTTY 3) 
      )
      ( (= e_typ "Show")
       (setq xSTTY 1)
      )
      ( (= e_typ "Hide")
       (setq xSTTY 2)
      )
      ( (= e_typ "DataClip")
       (setq xSTTY 4)
      )
          
    )

    
        (vlax-invoke
	(vlax-get srf 'Boundaries)
	'add
	(CAR (LIST algn))
	"ENG"
	 3    ;;Weeding distance
	:vlax-TRUE ;;Weeding angle
;;;	25.0 ;;Supplemental distance
	0.05 ;;Midordinate distnace
       )
;;;(setq pSECTION (vlax-invoke-method (vlax-get srf 'Boundaries) 'item 0))
;;;    (vlax-get pSECTION 'TYPE)
;;;    (vlax-put-property '(vlax-get pSECTION 'TYPE)  1)

                   

                         


      )
    )
		  (princ)
	)








;;-----------------------=={ List Box }==---------------------;;
;;                                                            ;;
;;  Displays a List Box allowing the user to make a selection ;;
;;  from the supplied data.                                   ;;
;;------------------------------------------------------------;;
;;  Author: Lee Mac, Copyright Â© 2011 - www.lee-mac.com       ;;
;;------------------------------------------------------------;;
;;  Arguments:                                                ;;
;;  title    - List Box Dialog title                          ;;
;;  data     - List of Strings to display in the List Box     ;;
;;  multiple - Boolean flag to determine whether the user     ;;
;;             may select multiple items (T=Allow Multiple)   ;;
;;------------------------------------------------------------;;
;;  Returns:  List of selected items, else nil.               ;;
;;------------------------------------------------------------;;

                                (defun LM:ListBox ( title data multiple / file tmp dch return )
  ;; Â© Lee Mac 2011
  
  (cond
    (
      (not
        (and (setq file (open (setq tmp (vl-filename-mktemp nil nil ".dcl")) "w"))
          (write-line
            (strcat "listbox : dialog { label = \"" title
              "\"; spacer; : list_box { key = \"list\"; multiple_select = "
              (if multiple "true" "false") "; } spacer; ok_cancel;}"
            )
            file
          )
          (not (close file)) (&amp;lt; 0 (setq dch (load_dialog tmp))) (new_dialog "listbox" dch)
        )
      )
    )
    (
      t     
      (start_list "list")
      (mapcar 'add_list data) (end_list)

      (setq return (set_tile "list" "0"))
      (action_tile "list" "(setq return $value)")

      (setq return
        (if (= 1 (start_dialog))
          (mapcar '(lambda ( x ) (nth x data)) (read (strcat "(" return ")")))
        )
      )          
    )
  )
  
  (if (&amp;lt; 0 dch) (unload_dialog dch))
  (if (setq tmp (findfile tmp)) (vl-file-delete tmp))

  return
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Q1.JPG" style="width: 456px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/856550i93C3FD1D5FA6992F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Q1.JPG" alt="Q1.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Q2.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/856551iE7314803212FF299/image-size/large?v=v2&amp;amp;px=999" role="button" title="Q2.JPG" alt="Q2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 13:00:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/please-help-by-adding-outer-border-to-the-surface/m-p/9941173#M7513</guid>
      <dc:creator>hosneyalaa</dc:creator>
      <dc:date>2020-12-15T13:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Please help by adding  outer border to the surface</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/please-help-by-adding-outer-border-to-the-surface/m-p/9941454#M7514</link>
      <description>&lt;P&gt;This should help point you in the right direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;Get the Surface Object, the Polyline Object, and the Name of the Boundary
(setq surf (vlax-ename-&amp;gt;vla-object (car (entsel "\nSelect Surface: "))))
(setq pl (vlax-ename-&amp;gt;vla-object (car (entsel "\nSelect Boundary "))))
(setq name (getString "\nEnter Boundary Name: "))

;Get the Boundaries
(setq bounds (vlax-get-property obj 'Boundaries))

;Available Boundary Types
(setq boundType 1) ;Show
(setq boundType 2) ;Hide
(setq boundType 4) ;Outer
(setq boundType &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; ;DataClip

;Destructive or Non-Destructive
(setq NonDestruct :vlax-True) ;Object will be clipped at Boundary
(setq NonDestruct :vlax-False);Object will not be clipped at Boundary

;Mid-Ordinate Distance
(setq midOrd 1.0)

;Invoke the Add method on the Boundaries
(setq ret (vlax-invoke-method bounds 'Add pl name boundType NonDestruct midOrd ))&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 15 Dec 2020 14:37:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/please-help-by-adding-outer-border-to-the-surface/m-p/9941454#M7514</guid>
      <dc:creator>hippe013</dc:creator>
      <dc:date>2020-12-15T14:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Please help by adding  outer border to the surface</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/please-help-by-adding-outer-border-to-the-surface/m-p/9942202#M7515</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1633394"&gt;@hippe013&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much&lt;BR /&gt;Thank you again&lt;BR /&gt;Question -1&amp;nbsp; What is the front number&amp;nbsp; &amp;nbsp;(setq boundType&amp;nbsp; &amp;nbsp;;DataClip&amp;nbsp;&amp;nbsp;Not shown&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another question, please&lt;BR /&gt;Does choosing numbers in front of&amp;nbsp; boundType&amp;nbsp; &amp;nbsp;have a reference?&lt;BR /&gt;Or experimenting&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;Available Boundary Types
(setq boundType 1) ;Show
(setq boundType 2) ;Hide
(setq boundType 4) ;Outer
(setq boundType  ;DataClip &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 19:45:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/please-help-by-adding-outer-border-to-the-surface/m-p/9942202#M7515</guid>
      <dc:creator>hosneyalaa</dc:creator>
      <dc:date>2020-12-15T19:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Please help by adding  outer border to the surface</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/please-help-by-adding-outer-border-to-the-surface/m-p/9942380#M7516</link>
      <description>&lt;P&gt;oops! Sorry I left that out. For a DataClip:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(setq boundType 8);DataClip&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't quite understand your second question.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 20:59:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/please-help-by-adding-outer-border-to-the-surface/m-p/9942380#M7516</guid>
      <dc:creator>hippe013</dc:creator>
      <dc:date>2020-12-15T20:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Please help by adding  outer border to the surface</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/please-help-by-adding-outer-border-to-the-surface/m-p/9942979#M7517</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1633394"&gt;@hippe013&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Hello&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;second question.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 994px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/856855iD391DF7F24516E5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 04:49:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/please-help-by-adding-outer-border-to-the-surface/m-p/9942979#M7517</guid>
      <dc:creator>hosneyalaa</dc:creator>
      <dc:date>2020-12-16T04:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Please help by adding  outer border to the surface</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/please-help-by-adding-outer-border-to-the-surface/m-p/9944138#M7518</link>
      <description>&lt;P&gt;Does this answer your question?&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(setq e_typ (CAR(LM:listbox "Select surface boundary type " (LIST "Outer" "Show" "Hide" "DataClip") 1)))
(cond
  ((= e_typ "Show") (setq boundType 1))
  ((= e_typ "Hide") (setq boundType 2))
  ((= e_typ "Outer") (setq boundType 4))
  ((= e_typ "DataClip") (setq boundType 8))
  )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was providing you an example of the boundType enum. I was using different variable names and not relating back to your code. I had assumed that the example I provided would direct you in modifying your code as I didn't want to re-write your entire code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After the user has selected a bound type using Lee Mac's listbox, a cond statement is used to determine what the user selected and which boundtype enum should be set. You may want to add additional user prompts to get the other parameters; ie BoundaryName, Destruct vs Non-Destruct, and the MidOrd distance from the user. Refer to my above example for actually creating the boundary as your current example is hard coded and may not produce the results that you want.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 15:48:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/please-help-by-adding-outer-border-to-the-surface/m-p/9944138#M7518</guid>
      <dc:creator>hippe013</dc:creator>
      <dc:date>2020-12-16T15:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Please help by adding  outer border to the surface</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/please-help-by-adding-outer-border-to-the-surface/m-p/9944288#M7519</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1633394"&gt;@hippe013&lt;/a&gt;&amp;nbsp;I think&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6591997"&gt;@hosneyalaa&lt;/a&gt;&amp;nbsp;was wanting to know how you found the enum values for the boundary type.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 16:31:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/please-help-by-adding-outer-border-to-the-surface/m-p/9944288#M7519</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2020-12-16T16:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Please help by adding  outer border to the surface</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/please-help-by-adding-outer-border-to-the-surface/m-p/9944359#M7520</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/32637"&gt;@Jeff_M&lt;/a&gt;&amp;nbsp;Now that you say that, that makes sense.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.autodesk.com/CIV3D/2016/ENU/API_Reference_Guide/html/c4e669a2-ec27-1a44-105c-20d38eebe7f0.htm" target="_blank" rel="noopener"&gt;See this link for reference&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 16:56:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/please-help-by-adding-outer-border-to-the-surface/m-p/9944359#M7520</guid>
      <dc:creator>hippe013</dc:creator>
      <dc:date>2020-12-16T16:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Please help by adding  outer border to the surface</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/please-help-by-adding-outer-border-to-the-surface/m-p/9944511#M7521</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp; &amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1633394"&gt;@hippe013&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/32637"&gt;@Jeff_M&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yeah&lt;BR /&gt;This is what I was asking for&lt;BR /&gt;Thank you both&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="التssقاط.PNG" style="width: 791px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/857098i03A68BC6D45945D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="التssقاط.PNG" alt="التssقاط.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 17:56:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/please-help-by-adding-outer-border-to-the-surface/m-p/9944511#M7521</guid>
      <dc:creator>hosneyalaa</dc:creator>
      <dc:date>2020-12-16T17:56:38Z</dc:date>
    </item>
  </channel>
</rss>

