Sw 2003 API : Part.FeatureCirPattern
Sw 2003 API : Part.FeatureCirPattern
(OP)
Hello again,
I'm trying to create a circular pattern and continously fail at it.
Up to this moment I've managed to create a triangular "slice", with one of the vertices in the center, and the edges being 11.5deg away (32 instances planned).
This is a recorded macro fragment that should execure the circular pattern, however it fails.
boolstatus = Part.Extension.SelectByID("", "EDGE", 6.158947769563E-05, -6.159948867435E-05, 0.006609848210815, True, 0, Nothing)
boolstatus = Part.Extension.SelectByID("Extrude1", "BODYFEATURE", 0.002001153902995, 0.01006048004695, 0.004140683984133, True, 0, Nothing)
Part.ActivateSelectedFeature
Part.ClearSelection
boolstatus = Part.Extension.SelectByID("", "EDGE", 6.158947769563E-05, -6.159948867435E-05, 0.006609848210815, False, 1, Nothing)
Part.FeatureCirPattern 32, 0.2617993877992, False, "NULL"
What am I doing wrong ?
I'm trying to create a circular pattern and continously fail at it.
Up to this moment I've managed to create a triangular "slice", with one of the vertices in the center, and the edges being 11.5deg away (32 instances planned).
This is a recorded macro fragment that should execure the circular pattern, however it fails.
boolstatus = Part.Extension.SelectByID("", "EDGE", 6.158947769563E-05, -6.159948867435E-05, 0.006609848210815, True, 0, Nothing)
boolstatus = Part.Extension.SelectByID("Extrude1", "BODYFEATURE", 0.002001153902995, 0.01006048004695, 0.004140683984133, True, 0, Nothing)
Part.ActivateSelectedFeature
Part.ClearSelection
boolstatus = Part.Extension.SelectByID("", "EDGE", 6.158947769563E-05, -6.159948867435E-05, 0.006609848210815, False, 1, Nothing)
Part.FeatureCirPattern 32, 0.2617993877992, False, "NULL"
What am I doing wrong ?






RE: Sw 2003 API : Part.FeatureCirPattern
Seriously, though, How are you creating this wedge shape? With a macro, or manually? If you're using a macro can you post that code as well? There may be an easier way of making the selections you need to make based on objects/entities created previously rather than by selecting them blindly using SelectByID. Once again, I've never been able to get SelectByID to work satisfactorily. You pretty much need to know its exact ID or location in XYZ space. Usually if you're trying to create a macro you don't really know that stuff. I haven't found the SW macro recorder to be of much use either. It rarely produces a macro that works the way you want. It's not nearly as useful as Excel's recorder.
RE: Sw 2003 API : Part.FeatureCirPattern
Nevertheless - It's all working fine now, including the circular pattern.