macro for intersecting a mesh in CATIA V5R19
macro for intersecting a mesh in CATIA V5R19
(OP)
Hi all,
I have a geometry imported as .stl and I want to intersect it with several planes in order to take the corresponding splines. After importing the file in Digitized shape editor I used the mesh smoothing tool to optimize my geometry. I know that I can use planar sections command and create the splines. The way I prefer is to create the planes that I want and then move to Shape sculpture and use the mesh intersect button from the editing toolbar. My problem is that this command cannot be recorded. What I need is a script that will run the intersect. Does anyone has any ideas of how can I create it?
Thanks a lot
I have a geometry imported as .stl and I want to intersect it with several planes in order to take the corresponding splines. After importing the file in Digitized shape editor I used the mesh smoothing tool to optimize my geometry. I know that I can use planar sections command and create the splines. The way I prefer is to create the planes that I want and then move to Shape sculpture and use the mesh intersect button from the editing toolbar. My problem is that this command cannot be recorded. What I need is a script that will run the intersect. Does anyone has any ideas of how can I create it?
Thanks a lot





RE: macro for intersecting a mesh in CATIA V5R19
Can you use CATIA.StartCommand "The name of the coomand which you can find in View - Commands List... menu" ?
Or maybe I didn't understand what you want and in this case is better to see a sample (or picture)...
Regards
Fernando
https://picasaweb.google.com/102257836106335725208
https://picasaweb.google.com/103462806772634246699...
RE: macro for intersecting a mesh in CATIA V5R19
I really hope the pics will help.
RE: macro for intersecting a mesh in CATIA V5R19
This pic shows the planes
RE: macro for intersecting a mesh in CATIA V5R19
RE: macro for intersecting a mesh in CATIA V5R19
Set hybridShapePlaneOffset1 = hybridShapeFactory1.AddNewPlaneOffset(reference1, 2.000000, False)
............................
hybridBody1.AppendHybridShape hybridShapePlaneOffset1
..............................
Any ideas of what should I use here? How can I define the Item for the mesh?
RE: macro for intersecting a mesh in CATIA V5R19
For the time being I don't have CATIA (I'm at the end of a contract and I'm preparing to go back home) but in few days I can take a look.
Till then, can you try to select everything before using intersect command?
Regards
Fernando
https://picasaweb.google.com/102257836106335725208
https://picasaweb.google.com/103462806772634246699...
RE: macro for intersecting a mesh in CATIA V5R19