Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • 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
Joined
Feb 12, 2003
Messages
2
Location
BY
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!
 
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

Back
Top