Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sw 2003 API : Part.FeatureCirPattern

Status
Not open for further replies.

MMisztal

Mechanical
Aug 20, 2007
4
PL
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 ?
 
Replies continue below

Recommended for you

Well, the main thing you're doing wrong is using SW 2003. :p

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.
 
the shape is being created via a macro as well. It's all working now. I'd post the code but it uses user forms - so I'm not sure if all the code + user form layout would make it here.

Nevertheless - It's all working fine now, including the circular pattern.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top