Jump to content

Alternative coordinate declaration VB


16horse

Recommended Posts

Hi guys. I have written some code in VB for autocad and for the moment i am declaring the coordinates in xyz axis as following:

Private Sub CreatePoints()
   SidePoints(0) = 400: SidePoints(1) = -105.25: SidePoints(2) = 215
   SidePoints(3) = N( - 400: SidePoints(4) = -105.25: SidePoints(5) = 215
   
   SidePoints(6) = 400: SidePoints(7) = 0: SidePoints( = 215
   SidePoints(9) = N( - 400: SidePoints(10) = 0: SidePoints(11) = 215.......

 

For example sidepoints(0),sidepoints(1),sidepoints(2) (x,y,z) are the coordinates for one point. It would be great if i could just write Sidepoints(400,105.25,215). Is there a simpler way to declare coordinates or that is the only method?

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...