ChrisHod
Aerospace
- Jun 9, 2014
- 4
Hi All,
I've recently started creating a few macros to help my team with some of the more tedious aspects of our work within CATIA. Mainly to aid with the Airbus HnF tool.
One of the Parameters generated by the tool is set to "Constant" by default, as a means to "lock" the parameter. Does anyone know the correct code term I would use to remove the "Constant" Lock, change the value and then reapply the "Constant" Lock?
I've been trawling the net/forums for any hint as to the correct syntax for setting constant to false on a parameter but to no avail!!!!
I thought it would be simple as:
Set parm = objShape.GetParameter("Synchronized")
parm.Constant = false
parm.Value = "True"
Any help would be much appreciated.
Cheers
Chris
I've recently started creating a few macros to help my team with some of the more tedious aspects of our work within CATIA. Mainly to aid with the Airbus HnF tool.
One of the Parameters generated by the tool is set to "Constant" by default, as a means to "lock" the parameter. Does anyone know the correct code term I would use to remove the "Constant" Lock, change the value and then reapply the "Constant" Lock?
I've been trawling the net/forums for any hint as to the correct syntax for setting constant to false on a parameter but to no avail!!!!
I thought it would be simple as:
Set parm = objShape.GetParameter("Synchronized")
parm.Constant = false
parm.Value = "True"
Any help would be much appreciated.
Cheers
Chris