albie0803
Alibre Super User
Warning! [Rant]
Once again, scripting has frustrated me. I have a 'keyway in a shaft' script that requires the origin face (which needs to be collinear to the origin point) to be selected in order to get a distance (as I can measure from face to face but not face to plane) to put a keyway from a selected face.
I recently read the section on face and plane mapping and thought great! I can map points off the end faces of the cylinder I want the key in but map plane needs XYZ positions of points to work, not an actual point! ARRRRGH!!!
If a script can identify a face and a point and a vertex, why can't it read where they are?
My point being, if I knew where the points were, I wouldn't be trying to establish a zero point to sketch from.
[/Rant]
I DO appreciate all the effort that has gone into creating scripting, but things like this that scuttle scripting ideas just drives me nuts. Helicals is the other big one.
I had an idea for cutting a thread in any hole perpendicular to a flat face via script.
1 Select hole face > add axis
2 Select flat face > add plane1
3 Add plane2 thread depth distance below plane1
4 Create Point1 at intersection of axis and plane1
5 Create Point2 at intersection of axis and plane2
6 Create Above Axis Point
7 Use 3 points to Create Plane3 > Create sketch
8 Plane Map sketch using above 3 generated points
9 Draw tooth shape and Helical cut to depth
Steps 8&9 are not possible.
Once again, scripting has frustrated me. I have a 'keyway in a shaft' script that requires the origin face (which needs to be collinear to the origin point) to be selected in order to get a distance (as I can measure from face to face but not face to plane) to put a keyway from a selected face.
I recently read the section on face and plane mapping and thought great! I can map points off the end faces of the cylinder I want the key in but map plane needs XYZ positions of points to work, not an actual point! ARRRRGH!!!
If a script can identify a face and a point and a vertex, why can't it read where they are?
My point being, if I knew where the points were, I wouldn't be trying to establish a zero point to sketch from.
[/Rant]
I DO appreciate all the effort that has gone into creating scripting, but things like this that scuttle scripting ideas just drives me nuts. Helicals is the other big one.
I had an idea for cutting a thread in any hole perpendicular to a flat face via script.
1 Select hole face > add axis
2 Select flat face > add plane1
3 Add plane2 thread depth distance below plane1
4 Create Point1 at intersection of axis and plane1
5 Create Point2 at intersection of axis and plane2
6 Create Above Axis Point
7 Use 3 points to Create Plane3 > Create sketch
8 Plane Map sketch using above 3 generated points
9 Draw tooth shape and Helical cut to depth
Steps 8&9 are not possible.
Last edited: