Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Constraints in drawing. 1

Status
Not open for further replies.

NirVidP

Industrial
May 10, 2010
45
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.
 
Replies continue below

Recommended for you

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
 
Thanks but I want to do it using VB(A). Nothing is recorded in Macro.
 
Sorry, I am not such fancy.
I always use the simple stuff.
Good lock!
[bigsmile]

CAD 2015
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor