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