Jump to content

Boundary vba


RepCad

Recommended Posts

hi all, how can i use Boundary command in vba after Getpoint inside a polyline??

 

i use lisp code :

 

(setq Point (getpoint))

(command "boundary" point "")

 

and i write same code in vba, but it does not work : :(

 

Pnt = ThisDrawing.Utility.GetPoint(, "Enter a point: ")

ThisDrawing.SendCommand "._boundary" & Pnt & vbCr

Link to comment
Share on other sites

  • 2 months later...

:)This will help you

 

Public Sub Draw_Bpoly()

 

Dim p As Variant

p = ThisDrawing.Utility.GetPoint(, "First the Point:")

ThisDrawing.SetVariable "osmode", 0

ThisDrawing.SendCommand "_.-boundary" & vbCr & "_A" & vbCr & "_I" & vbCr & "_N" & vbCr & vbCr & vbCr & p(0) & "," & p(1) & vbCr & vbCr

 

End Sub

 

enjoy.....

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...