×
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

Legacy hole via HoleWizard

Legacy hole via HoleWizard

Legacy hole via HoleWizard

(OP)
Does anyone know how to create a legacy hole by using function IFeatureManager::HoleWizard in Solidworks 2003-2005?
In the API guide the description of this function is very dim and it's not clear how to specify the exact type of my legacy hole and what is so called sketch id that I need to specify.
Thanks!

RE: Legacy hole via HoleWizard


Look to the file
C:\Program Files\SolidWorks\lang\english\Holewzd.idx
for some clues.
The sketchid for each hole type is listed there, as is the dimensions that must be supplied for a particular hole type.
The sketchid is the number in the leftmost column, and for the original legacy holes, it is 0 thru 9.  200 and above are reserved for the hole wizard itself.

The actual sketches are in the
C:\Program Files\SolidWorks\data

You can create your own hole type (such as shaft centers) by making an entry in the *.idx file and creating the appropriate *.ske file to match.

The line:
Part.FeatureManager.HoleWizard 5, -1, 19, "", 0, 0.02, 0.1, 4, 0.04, 0.02, 2.059488517353, -1, -1, -1, -1, -1, -1, -1, -1
for instance, makes a counterdrilled hole with the default dimension values.

If the hole can be a specially scaled version of a standard hole it is much much easier to create a hole wizard favorite, or in 2005, use the [Edit Standards Data] capability to make a new custom hole size.  {proper cbores for precision low head shcs for instance}



DesignSmith
www.DesignSmith-Services.com

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