Sub CATMain ()
Dim Params As Parameters
Set Params = CATIA.ActiveDocument.Part.Parameters
Dim Reell As RealParam
Set Reell = Params.CreateReal ("Pi", 3.14159)
Dim Laenge, Winkel As Dimension
Set Laenge = Params.CreateDimension ("Hoehe", "Length", 200)
Set Winkel = Params.CreateDimension ("Anschluss", "Angle", 100)
End Sub
这是我调试通过的程序,供参考。软件环境V5R19, English |