Using ChamferSetbackValue1 and ChamferSetbackValue2

Creator
Creator

I'm having no luck using ChamferSetbackValue1 and 2. I have a model with 4 chamfers and I'm trying to change the setbacks to different amounts. Chamfer.count is coming back with 4. I am doing the following and am have no luck. I error out every time.

 

Any advice would greatly be appreciated. 

 

models = partDocument.Models
model = models.Item(1)

chamfers = model.Chamfers

chamfer1 = chamfers.Item(1)
chamfer2 = chamfers.Item(2)

chamfer1.ChamferSetbackValue1 = 0.001
chamfer1.ChamferSetbackValue2 = 0.001

chamfer2.ChamferSetbackValue2 = 0.002
chamfer2.ChamferSetbackValue2 = 0.002

1 REPLY

Re: Using ChamferSetbackValue1 and ChamferSetbackValue2

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Hi @LenC

pls see my answer to your previous post Modifying-4-chamfers-with-Visual-Basic

 

regards

JB
VS2015, SE ST10