Creating a Planar Multilayer Substrate
Create a planar multilayer substrate using the properties method that contains two layers. Layer 1 is set to substrate2 and Layer2 is set to substrate1. The second layer has a PEC ground plane.
myProp = myProject.Contents.SolutionSettings.GroundPlane:GetProperties() myProp.DefinitionMethod = cf.Enums.GroundPlaneDefinitionMethodEnum.MultilayerSubstrate myProp.ZValue = "0.0" myProp.Layers[1].Thickness = "0.351" myProp.Layers[1].Medium = myDiel2 myProp.Layers[2] = {} myProp.Layers[2].Thickness = "0.2" myProp.Layers[2].Medium = myDiel1 myProp.Layers[1].GroundBottom = cf.Enums.GroundBottomTypeEnum.None myProp.Layers[2].GroundBottom = cf.Enums.GroundBottomTypeEnum.PEC myProject.Contents.SolutionSettings.GroundPlane:SetProperties(myProp)

- Since we want to know the properties for a ground plane, search for GroundPlane (object) in the Help1.
-
In the Help, under
, note the following:
GetProperties ()
-
Use
GetProperties()
method to obtain the properties of a ground plane:GroundPlane:GetProperties()
-
Determine the syntax to prepend to GroundPlane:
-
Set the ground plane type to planar multilayer substrate:
-
Next we want to specify the two layers:
-
To specify the layers, search for PlanarSubstrate (object)
in the Help.
-
Update myProp with its new properties using
SetProperties ()
:application.Project.Contents.SolutionSettings.GroundPlane:SetProperties(myProp)