×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

VB macro for points insertion in stock

VB macro for points insertion in stock

VB macro for points insertion in stock

(OP)
Hi all,

I want a VB macro, for inserting points in de middle of the faces

of a rectangular workpiece, as the photo attached. Select the stock execute de VB and points insertion.

And if its possible, in the middle of a circumference too, when I select the stock model.

Thanks.



 

RE: VB macro for points insertion in stock

The attached journal in the zip file (change .txt to .vb) will work for circular and rectangular/square faces.  The journal simply asks you to select faces.  The journal then checks that the face is planar.  If the face has one edge and it is circular then the centre point is created.  If the face has four linear edges then I have assumed they form a rectangle or square (not always the case but should generally be OK) then the journal creates its centre point.

The more general case of creating a planar outline centroid requires the following.
1) Make the face the work plane.
2) Create a boundary entity through the edges.
3) Use the boundary to determine the centroid.
4) Create the point.

To create the boundary (in a program) I would need to have a CAM license (which I don't have)

Hope this helps.

Frank Swinkels  

RE: VB macro for points insertion in stock

(OP)
Thanks Frank,

I was looking for this.

 

RE: VB macro for points insertion in stock

apa berri,eres el puto amo,estos giris solo saben comer donuts y se creen la polla,pero asi va el mundo,todo transgenico y superficial,siempre dependiendo de la puta gasolina,En fin,seguiremkos chuopandoles el culete a estos mamones,chao.

RE: VB macro for points insertion in stock

(OP)
Hi Josemi,

You are the best jajajaja.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources