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!

Catia VBA Rectangular Pattern of a point(wireframe component) Help

Status
Not open for further replies.

prajzsolid

Mechanical
Feb 21, 2017
3
SE
Hello, I am working on a code to create a rectangular pattern on a user selected surface.

Currently the code allows the user to pick a face/surface and creates the geometry for the Center of Gravity i.e. the point.

I want to use this point to create a rectangular pattern using this point and a defined direction. I believe the code is something as follows

Set rectPattern1 = hybridShapeFactory1.AddNewSurfacicRectPattern(anyObject1, 2, 1, 20.1, 20.1, 1, 1, reference111, reference222, True, True, 0)

where anyObject1 is the point and the references are directions.

But i am not able to execute this line, and there are not many examples of the surfacic Pattern. Please Help
 
Replies continue below

Recommended for you

Never Mind, I solved it.

It has to be a shapeFactory instead of HybridShapeFactory :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top