×
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

reusing created catia parameter in vba

reusing created catia parameter in vba

reusing created catia parameter in vba

(OP)
i am trying to create a visul basic code with using parameters.
after i execute the macro i can see theese created parameters under the parameters tree. also i am using these parameters for sweep operation but the sweep operation is taking only the parameter value itself. it is no more related with the parameter. how can i keep the relation between the parameter and the sweep value?

thanks
akilic

RE: reusing created catia parameter in vba

Maybe we can help you a little bit more if you will post the code and a sample CATPart (saying also in which version is done, because I'm stuck in r18 for example).

Regards
Fernando

https://picasaweb.google.com/102257836106335725208

RE: reusing created catia parameter in vba

(OP)

I found how to relate feature with the predefined parameter

Set formula1 = relations1.CreateFormula("", "", hybridShapeLineAngle2.Angle, "`Prism[1-1]\Prism[1-1]_i3`")
hybridShapeLineAngle2.Angle is my angle value used in the feature and

`Prism[1-1]\Prism[1-1]_i3` is my predefined parameter.

thanks
akilic

RE: reusing created catia parameter in vba

Hi
I am after fetching parameters under part properties. Please find the code below, which will fetch all parameters in the part. (in my case there are more than 10000, which slows down the process). I want to get all parameters under "Part1\Properties\Para.1, Para.2, Para.3....etc. Any idea?

Dim partDoc As Document
Dim paras As Parameters

Set partDoc = CATIA.ActiveDocument
Set paras = partDoc.Product.Parameters
For i = 1 To paras.Count
MsgBox paras.Item(i).Name
Next i
Please find attached screen shot.

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