×
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

Constraints in drawing.

Constraints in drawing.

Constraints in drawing.

(OP)
I can draw a line in the Main View of a DrawingSheet.

Now I can't figure out [using VB(A)] how to:

1. Apply horizontal constraint to this line?
2. Draw line vertical to this line such that end point of the first line is constrained to the start point of the second line.
3. Draw a (third) line parallel to the first line from the end point of the second line.

My aim is that if I select any line, all three lines should be automatically selected.

A. If I move any one line, other two lines should also move by exactly the same amount.
B. If I delete any one line, all three lines should get deleted.

In short, I am trying to emulate a pline in AutoCAD.

Any hints are welcome.

RE: Constraints in drawing.

1. Create a line; with MB3 select "Horizontal"
2. Create another line, using the end point of the first line; with MB3 select "Vertical"
3. Create another line, parallel to the first line from the end point of the second line(Catia will "suggest" a "parallel" constrain for you......

A. You may select all lines by:MB3/Auto Search
B. If you want to move all the lines, you need to give them dimensions
CAD 2015

RE: Constraints in drawing.

(OP)
Thanks but I want to do it using VB(A). Nothing is recorded in Macro.

RE: Constraints in drawing.

Sorry, I am not such fancy.
I always use the simple stuff.
Good lock!
bigsmile

CAD 2015

RE: Constraints in drawing.

I am little bit confused as I don't see the application of such a code.
I would say that maybe you could create a detail and inside you could create whatever you wantcomputing the points of lines using some basic algebra.
You would be able to move the details as you need in the ned.

RE: Constraints in drawing.

You can have a look into Constraints collection and Constraint object in V5 automation reference.

Tesak
http://scripts4all.eu/txtoncurve/ - Text along a curve for Catia V5

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! Already a Member? Login


Resources


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close