private void buttonCreatePoint_Click(object sender, EventArgs e) { Document doc = CATIA.ActiveDocument; PartDocument partDoc = (PartDocument)doc; Part part = partDoc.Part; HybridShapeFactory factory = (HybridShapeFactory)part.HybridShapeFactory; HybridBodies hybridBodiesCur = part.HybridBodies; HybridBody hybridBodyCur = hybridBodiesCur.Item("Geometrical Set.1"); for (int i = 1; i <= 100000; i++) { HybridShapePointCoord pointCur = factory.AddNewPointCoord(100, 200, 300); hybridBodyCur.AppendHybridShape(pointCur); Reference refPoint = part.CreateReferenceFromObject(pointCur); string sSuffix = i.ToString(); string sName = textBoxSelect.Text + sSuffix; factory.ChangeFeatureName(refPoint, sName); part.Update(); } }