Hi Fernando, Hi Eric,
it's always nice to find your replies!
Eric, thank you very much for your links, they would be really useful considering that are the two cases in which i had troubles:
about the extraction of vertices' coordinates i used getcoordinates and it didnt work, i will try the...
Hi Fernando, Hi Eric,
Thank you guys for your replies, always useful!
At the beginning i tried using the getcoordinates method, but i got an error (object doesn't support this property or method),
so i thought it was not possible to use it for vertices.
After your replies i tried using a code...
Hi Fernando,
i am really sorry to disturb you again, but if you can i need the last advice.
I finally solved the problem i asked you in the last message, and finally i can extract the vertices for every surface,
i would like to ask you how can i convert a vertex to a point?
because i know...
Hi Fernando,
I am trying to adapt the code you sent me to my part, and considering that i tried so many times but i couldnt succeed in making "selectelement2" working (windows 7 64 bit), i am trying with a loop for every face.
I modified it in this way, it extracts all the faces but then, even...
Hi Fernando,
the books i mean are:
CATIA V5: Macro Programming with Visual Basic Script (Dieter Ziethen)
VB Scripting for CATIA V5 ( Emmett Ross)
The first book is quite big around 700 pages, in the second i guess you cant find anything you dont yet know.
About the first I have the PDF, if...
Hi Fernando,
i really dont know how to thank you, you did a lot for me!
Without your help for me would be impossible, i will try to use it as soon i have time, and will let you know if i succeded.
Can i ask you where did you study it so well? because i bought the only two books i found about...
Hi Fernando,
thank you for the link and the suggestions.
Correct me if i am wrong, your suggestion is set a different color for each face and then for example search using this query?
(Color=Magenta & Topology.Vertex),all
I tried, but doesnt find anything, its like the vertex has not a...
Hi Fernando,
thank again for your reply and your patience with me!
first: thank you for your tip about the "enable hybrid design" i didnt notice it (i am not so good at CATIA, just universitary use)
second: for external surface i mean what you get when you search "Face" in the part.(if i...
Hi Fernando,
thank again for your reply.
i am only considering a part with planar or cylindrical external surfaces on the plans xy-yz-zx or plans parallel to them.
the information i need are:
- number of external surfaces, type of each surface (cylinder or plan )
- positioning plan for each...
From what i understood, to set a specification on a plane the procedure is:
Dim annotation As Annotation
Dim usersurface As UserSurface
Dim reference As Reference
Dim UserSurfaceList As UserSurfaces
Set UserSurfaceList = part1.UserSurfaces
set the plane As selection
set reference...
Sorry, i dont know very well how to upload the picture and the file, i hope this way it workshttp://files.engineering.com/getfile.aspx?folder=d874edc5-fd4e-4bf1-956f-d182ae584ddf&file=Capture_(3).JPG
Hi Fernando,
First of all thank you for your reply!
Attached is the image of the part, do you also need the file?
As you can see it is a simple part with some specifications, and i need to enumerate the surfaces of the part,
and then somehow to understand for each surface if there are...
Hi Guys,
I am new in this forum and first i wanna say hello to all of you!
I am a new VBA user for CATIA V5 and i need your advice. I am not looking for someone who does the project for me but just some tips, so please if you can help me.
I am developing a macro to import in excel the data...