×
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

for the API gurus

for the API gurus

for the API gurus

(OP)
I would like to write a macro or VB program to do this:

1. Select a view in a drawing
2. run macro
3. macro creates a rectangle around the view at 1/8" distance from the extremities of the part.

Is that possible? What API fuctions should I look into?

The view will be a flat pattern of a sheet metal. The resulting drawing will be saved as dwg and will be used to generate the program for a laser cutting machine. At the moment we export the view in AutoCAD and manually draw the box around the part, offset at 1/8" from the extremities. I would like to eliminate AutoCAD from the process but creating of the box in SW is a little harder than in AutoCAD.

RE: for the API gurus

Curious, what does the box do for you in laser cutting?
Why not create a dwg without a format and send to cutting?
If you need a macro, record it adding the lines, dim them, then hide dims, save macro.

Chris
Systems Analyst
SolidWorks/PDMWorks 05
AutoCAD 05
ctopher's home site (updated 06-21-05)
FAQ559-1100
FAQ559-716

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