3DCADWorld Network | 3DCADTips | 3DCADTutorials | 3DCADForums | 3DCADSearch | 3DCADBooks | Design World






Get CAD tips and tutorials on your desktop when you register at 3DCADTips.com!

3DCADTips Weekly
Latest Issue
Archive

3DCADTips Forum Update
Latest Issue
Archive






Visit 3DCADSearch.com - The CAD & Graphics Search Engine!!




  #1 (permalink)  
Old February 18th, 2008, 01:58 PM
dbwalters dbwalters is offline
Junior Member
 
Join Date: Feb 2008
Posts: 4
Question Create a chamfer in V5 with VB

Hello, I am trying to create a chamfer via VB and have been running into a problem using a BRep function:
Code:
            Set myRef = myPart.CreateReferenceFromName("")
            
            Set myChamfer = myShapeFactory.AddNewChamfer(myRef, catTangencyChamfer, catTwoLengthChamfer, catNoReverseChamfer, 1.53924, 2.9972)

            padName = myPad.Name     'previously created
            circleName = "GSM" + myHSCircleCtrRad.Name     'previously created
            planeName = "GSM" + myHSPlnTan.Name     'previously created
            
            Set myNextRef = myPart.CreateReferenceFromBRepName("REdge:(Edge:(Face:(Brp:(padName;2);None:();Cf11:());Face:(Brp:(padName;0:(Brp:(circleName;(Brp:(planeName)))));None:();Cf11:());None:(Limits1:();Limits2:());Cf11:());WithTemporaryBody;WithoutBuildError;WithSelectingFeatureSupport;MFBRepVersion_CXR15)", myPad)
            myChamfer.AddElementToChamfer myNextRef
            myChamfer.Mode = catTwoLengthChamfer
            myChamfer.Propagation = catTangencyChamfer
            myChamfer.Orientation = catNoReverseChamfer
            
            myPart.Update
I am able to previously create the a plane, the circle on the plane for the pad, and the pad itself. But, for some reason I am unable to chamfer the pad. Any help would be appreciated. Thanks in advance.

Last edited by dbwalters : March 4th, 2008 at 07:53 AM. Reason: Thread no longer required.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Link


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 12:28 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0