Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Legacy hole via HoleWizard

Status
Not open for further replies.

Vashkevich

Computer
Feb 12, 2003
2
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!
 
Replies continue below

Recommended for you

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor