03-16-2017
04:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
03-16-2017
04:03 AM
Hi George,
Please see go through the following sample code. It adds a drilled hole feature using "LinearHolePlacementDefinition"
Dim oLinearPlacementDef As LinearHolePlacementDefinition
Set oLinearPlacementDef = oCompDef.Features.HoleFeatures.CreateLinearPlacementDefinition _
(oFace, oEdge1, "2 cm", oEdge2, "2 cm", oBiasPoint)
' Create the hole feature.
Call oCompDef.Features.HoleFeatures.AddDrilledByThroughAllExtent( _
oLinearPlacementDef, "1 cm", kPositiveExtentDirection)
For definition of "LinearHolePlacementDefinition" requires more parameters like face, edges and base point. So, unable to convert these kind of holefeature.
Thanks and regards,
CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network
