×
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

problem in reading the parameters of the points
2

problem in reading the parameters of the points

problem in reading the parameters of the points

(OP)
Hi everyone,
The first problem: I have a part that it is obtained from a CATIA V4 model that contain only points with annotations (the real name of the points).
I want, if somebody can help me, to create a macro in _VBscript to be able to export the points coordinates in relation with the names of the points (the annotations). in the specification tree the name of the points are not the real one (when I opened it from the model the 3d text has being converted  in annotations - I checked the import 3D text from in the Option menu - and the names are Point1, Point2, etc)
I know how to export the point coordinates, by using the Design Table command, but I do not know how to create a link between the points and the annotations, in order to have the coordinates and the real names of the points. If you know how, please let me know!

The second one: Please let me know how to create a macro in VBscript in order to redefine automatically all the points from a body (with a name) from explicit to coordinates.

 
all the best to all,
Cornelia

RE: problem in reading the parameters of the points

My advice would be to start by creating a design table from V5, for which to use as a template.  After you do this, you can create a new design table "from existing values."

The parameters that you want to isolate in your design table, are:

Filter -> "by length"  This gives you only the X, Y, and Z component of each point in the design table.

Next, if you have a plain text document of the Catia V4 point names and coordinates, open it as a tab and space delimted excel doc next to the V5 design table.  You will now take the V5 paramter, and write a simple macro, to replace the name, say "Catia V4 point 1," (and its value - X for this example) for example, with `Points\Catia V4 point.1\X` (mm) (whereas it might have been `Points\Point.527\Y` (mm))  You need to make your macro duplicate each point XYZ value.


This is a really good question, and its one of the scripts and processes that I have been intending to develop.  I have a website (see my signature) that addresses these types of topics, and I'm in the process of putting a list of issues together.  Hopefully this is one that you might see soon.




**************
Check out CATBlog!

RE: problem in reading the parameters of the points

(OP)
The problem is: I don't have a .txt file for CATIA V4 and more important I cannot write it because it is not only for one drawing, I have plenty. It must be a way to be able to export the annotation (like publishing them) or so.

Thank you solid7 for your idea, it should works if I will obtain a txt file with the right names of the points

RE: problem in reading the parameters of the points

My apologies - I misunderstood part of what you were saying.

I cannot answer this.  The 3D annotation in V4, as you know does not rename the points, and I don't know V4 very well from a knowledgeware standpoint.




**************
Check out CATBlog!

RE: problem in reading the parameters of the points

(OP)
Forget about V4. everything now is in V5 transformed as annotation. there is a way to publish or to do something with them in order to obtain a txt file or there is a connection between the points and the annotations? Viceversa I know it is but it doesn;t help me with anything!

the second question: do you have any answers for it, please?
I appologize being so ... and bothering you but if you have any answers please let me know.

Thank you!

RE: problem in reading the parameters of the points

You aren't bothering me, but the best way to find out if there is any parameter associated with the annotations is simply to start a new design table, with "current parameter values," and go through the list, with "filter -> *" as shown in the image below.




If it's there, you'll find it.  Then, if you find what you are looking for, go ahead and create the table.  Annotations values should already be associated, or they are of little worth.  I am not 100% certain, but knowing that they are associative in V4 should tell you that they wouldn't get imported as stand alone objects.  Again, however, the design table should be a good tool for telling you.

I'm not sure if I'm understanding your correctly, but I'm doing the best I can to bridge what appears to be a language barrier.

If any of this helps, please post your results.  Or, better yet, take it one step at a time, and post your progress or problems, and everyone will have a much easier time in assisting you.




**************
Check out CATBlog!

RE: problem in reading the parameters of the points

(OP)
yes, I am sorry for my english but with this method I am able to see the parameters for the points that I defined by coordinate, the rest of them (explicit mode) I am not able to get a table.
This is my problem in fact, I need to define the points by coordinate (edit the point and change it by coordinate)or right click and select the definition of the point and change it.
I don't know VBasic therefore I think I need a macro for this conversion.
can you help?


RE: problem in reading the parameters of the points

Please post your data here. (or something more visible)

I'd like to see your parameters, and know (a little more visually) what we're dealing with.




**************
Check out CATBlog!

RE: problem in reading the parameters of the points

Hi,

In CATIA v4 you can extract the points coordinates from space (I don't remember now if its also possible in drawing) using Analyze command. When the alphanumeric window will appear, you can select Print and a txt file will be created with your selected points and their x,y,z coordinates.

The txt file is created automatically by CATIA with the name  print.txt.

May be this can help you, Cornelia.

Regards
Fernando

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