×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Sw 2003 API : Part.FeatureCirPattern

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 ?

RE: Sw 2003 API : Part.FeatureCirPattern

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

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

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources