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!

get coordinates from segments and curves

Status
Not open for further replies.

julym

New member
Aug 20, 2013
11
MX
I want to know if there is any way to get the coordinates of a segment and curves in a macro, thank you so much for your time,
 
Replies continue below

Recommended for you

the lines are under a Geometrical set, what I have done so far is, to get the points coordinates, but I'm lost getting the segments and lines coordinates, hope you can help me, thank you.
 
I have to clarify that, I guess, does the code change if I created the lines by two references (faces), or if i created them on the sketch? because I did it by the two faces. but what I did was creating the coordinates of points and I thought it was the same for lines, but I guess im wrong, that's why im looking for a segment of code that identify those coordinates. tell me if I doing this complicated, sorry for not expressing my self properly. thank you for your help.
 
You have to understand that CATIA is working in different ways for different workbenches (Sketcher, GSD, Part a.s.o.) and also different when you have CATPart created with "Enable hybrid design" (your sample part is done like this, if I remember correctly).

Macros done for parts created without "Enable hybrid design" (PartBody with green color) can fail very well for the other kind of parts (Partbody with yellow color, to be very clear) even if the parts are looking in the same way (one example is that macro which is creating a surrounding box with surfaces for a catpart).

Usually, when users ask me to create something, I'm going to their desk just to see how they are doing manually their task and try to understand different ways of work to accomplish that task.

For someone who wants to create a macro all inputs should be very clear, otherwise is wasting of time.

Coming to your problem to identify coordinates...Eric's macro in FAQ is giving exactly the coordinates of the points (hope my English is good enough and I understood well what you want).

Is also good to use search function in this forum, there are a lot of code pieces here, during last month, more users come with different solution sharing their knowledge.



Regards
Fernando

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Top