×
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

How to get points from a sketch
2

How to get points from a sketch

How to get points from a sketch

(OP)
Hello,

I am writing a code using CAA API's in C++ I want to get the points from the sketch and find their co-ordinates.

My situation is:
User pattern is created using a sketch consisting of points.
I am getting the User Pattern, and also the sketch used for creating that user pattern.
I am also getting the number of points in the sketch, but I am not able to find their co-ordinates.

How can i get the points and their co-ordinates in sketch?


Please help me if anyone has faced this problem.


Thanks and Regards,
Yashodeep

RE: How to get points from a sketch

Hi,
Try this.Try creating 3d points on the points in the sketch.Try projecting it to the drafting workbench.try finding the co ordinates of the points.

RE: How to get points from a sketch

(OP)
Thanks Sudhakarn,

I will try the method, but do you want me to try this in CATIA or programatically?
Because I want to do this programatically, for this I will need the co-ordinates of points in sketch. How will I able to get those co-ordinates.

I will share the situation, below is the code:

CATListValCATI2DWFGeometry_var ioGeomLst = NULL;
const CATIdent idCATMathPoint = NULL;
oSketch->GetComponents(idCATMathPoint, ioGeomLst);
int SizeGeomLst = ioGeomLst.Size();


In my above code, "ioGeomLst" is my list of all the geometries in the sketch
and this geometries will be always points. I want co-ordinates of this points.

Regards,
Yashodeep

RE: How to get points from a sketch

(OP)
Ok Thanks Fernando for replying to thread.

RE: How to get points from a sketch

Quote (you)

In my above code, "ioGeomLst" is my list of all the geometries in the sketch
and this geometries will be always points. I want co-ordinates of this points

don't know much about CAA but using VB if I look inside a sketch and find points they will be Point2D and I can use .GetCoordinates method on the point2d object.

Eric N.
indocti discant et ament meminisse periti

RE: How to get points from a sketch

(OP)
Thanks Eric N!

RE: How to get points from a sketch

Hi Yashodeep N,

Actually i was talking about generating the 2D out of 3D and then finding out the co ordinates.You can project the sketch directly into drafting ( i blv its possible to project the sketch directly ).In the view properties enable the option show 2D.Hope it helps.

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