Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Oct 2, 2006
Messages
80
Location
PL
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

Back
Top