Santa123
Mechanical
- Oct 2, 2006
- 80
Hej,
I wan to create macro (vb.net) to turn on "Enable Hybrid Design In body", I tryied different approaches but I failed.
First my macro checks if "Enable hybrid design inside part bodies and bodies" is on, then I would like to turn on "In a body"
Regards
Santa
I wan to create macro (vb.net) to turn on "Enable Hybrid Design In body", I tryied different approaches but I failed.
First my macro checks if "Enable hybrid design inside part bodies and bodies" is on, then I would like to turn on "In a body"
Code:
Dim SettingsConstrolers As SettingControllers
Dim MypartInfrastructureSettings As SettingControllers
SettingsConstrolers = CATIA.SettingControllers
MyHybridDesignMode = MypartInfrastructureSettings.HybridDesignMode
If MyHybridDesignMode = True Then
chkEnableHybrid.Checked = True
Else
chkEnableHybrid.Checked = False
End If
MypartInfrastructureSettings = SettingsConstrolers.Item("CATMmuPartInfrastructureSettingCtrl")
MypartInfrastructureSettings.SurfaceElementsLocation.catXGSLocation = True
' or
MypartInfrastructureSettings.SurfaceElementsLocation = "catXGSLocation"
Regards
Santa