Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

SettingsConstrolers

Status
Not open for further replies.

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"

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor