×
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

Macros on Adaptive Sweep

Macros on Adaptive Sweep

Macros on Adaptive Sweep

(OP)
Hai pals,

I have problems for  recording a macro with adaptive sweep.

I sketch the profile before entering into Ad-Sweep option and inside the sketch option i select the sketch which i created and say add after and pick the points to place the user sectoins. At the preview of the sweep i'm able to generate the sweep without any probs.
On running the macro i have probs with the selected sketch. it says
Dim Sketch1
No resolution found for object Sketch 1.

do anyone have a solution for this.

Bye
Ashvanth.

RE: Macros on Adaptive Sweep

There is a little more to it than that.

Take a look at some code I use to select a Product
<code>
Dim Sel1(0)
  Sel1(0) = "Product"
            
    ProdDoc.Activate
 
    Dim SelObject As Object
  
      
    Set Selection1 = ProdDoc.Selection
    
    Selection1.Clear
    vRet = Selection1.SelectElement(Sel1, "Select the Part that is a symmetry.", True)
    Set SelObject = Selection1.Item(1)
    Set SymProd = SelObject.Value

</code>

You will just need to replace the type "Product" with "Sketch"

RE: Macros on Adaptive Sweep

(OP)
hi puck

thanx for the codes, but whatever u have given is a CATscript i suppose . but im using VBScript.

somewhat got the logic inside ur code. will try with my macro.

bye
ashvanth

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