×
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

Catia Macro Sectioning Direction

Catia Macro Sectioning Direction

Catia Macro Sectioning Direction

(OP)
Hello All I am using Catia V5 and am attempting to write a macro that increments section cuts along a specified axis and measures the inertial values of each of those sections (but that is another topic)

Using the code that is in the help documentation the sections that are created are only in the Z direction. Does anyone know how to make these sections be taken in any other direction?

Thanks

JB

RE: Catia Macro Sectioning Direction

(OP)
Well I have an update. I was able to figure out a way to change the axis that the sections are created. You have to change the Position values

The position array can be obtained by using the GetPosition command and it gives an 12 element array that is as follows

iComponents( 0) is the X component of the X-axis
iComponents( 1) is the Y component of the X-axis
iComponents( 2) is the Z component of the X-axis
iComponents( 3) is the X component of the Y-axis
iComponents( 4) is the Y component of the Y-axis
iComponents( 5) is the Z component of the Y-axis
iComponents( 6) is the X component of the Z-axis
iComponents( 7) is the Y component of the Z-axis
iComponents( 8) is the Z component of the Z-axis
iComponents( 9) is the X component of the origin
iComponents(10) is the Y component of the origin
iComponents(11) is the Z component of the origin


Originally the positions 0,4, and 8 had a value of 1. In order to change the direction these need to be changed. I have found that there always has to be 1 of each the x,y, and z components and they all have to be with respect to different axis. If that is not clear (which is a good possibility) please let me know so that I can try to explain it better.

I hope this helps anyone that may be having trouble with this as I was unable to find any information on it.

-J

RE: Catia Macro Sectioning Direction

Hi,

Is it possible to indicate the name of the original script in the help docs?

Thanks for sharing info. Also, did you manage to measure the inertial values of each of those sections?

Regards
Fernando
 

RE: Catia Macro Sectioning Direction

(OP)
Yeah the script in the help docs is CAASpaSectionNetwork.CATScript

I am still working on measuring the inertial values of each section. The problem that I am having with that is figuring out how to set each section to the active document after it is created so that the value can actually be read. Any ideas there?

-J

RE: Catia Macro Sectioning Direction

There is a CATScript in my CATIA Portable Script Center called Inertia in 2D, maybe will give you some ideas.

Regards
Fernando
 

RE: Catia Macro Sectioning Direction

(OP)
Thanks that Script center is great. It looks like in that CATScript the user selects what to copy. Do you know how to do this without acctually needing and user input? Basically I want the section to be active so that the inertia can be taken for each section.

I am relatively new to VBA so any help would be appriciated.

Thanks

-J

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