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!

problem in reading the parameters of the points 2

Status
Not open for further replies.

corlupu

Mechanical
Jan 8, 2005
5
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
 
Replies continue below

Recommended for you

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!
 
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
 
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!
 
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!
 
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.

design_param1.jpg



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!
 
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?




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

Part and Inventory Search

Sponsor