[highlight #EF2929]From the chm file:[/highlight]
HybridShapeDirection (Object)
Represents the hybrid shape direction feature object.
Role: To access the data of the hybrid shape direction feature object. A direction can be specified using:
A line: the direction is tangent to the line
A plane: the direction is normal to the plane
Its components
see
' 5.1- Creates a cylinder, later which will be used for opening creation as a intersecting profile
Set ObjHybridShapeFactory = ObjPart.HybridShapeFactory
Set ObjHybridShapePointCoord = ObjHybridShapeFactory.AddNewPointCoord(90000, 10000, 0)
Set PointRef = ObjPart.CreateReferenceFromObject(ObjHybridShapePointCoord)
Set Manager = CATIA.ActiveEditor.GetService("RfgService")
Set ObjDirection = Manager.GetReferencePlane(ObjPart, 1, "DECK.2")
Set Direction = ObjPart.CreateReferenceFromObject(ObjDirection)
Set ObjHybridShapeDirection = ObjHybridShapeFactory.AddNewDirection(Direction)
Set ObjHybridShapeCylinder = ObjHybridShapeFactory.AddNewCylinder(PointRef, 2000, 32800, 20, ObjHybridShapeDirection)
Set CylinderRef = ObjPart.CreateReferenceFromObject(ObjHybridShapeCylinder)
Eric N.
indocti discant et ament meminisse periti