EditWithComps [component manager]
Edit an existing component.
| UI Access | Not available | |||||||||||||||||||||||||||||||||
| Parameters |
|
|||||||||||||||||||||||||||||||||
| Return Value |
Composite name of the component in the form of a string. If the name requested conflicts with the name of an existing component, the requested name is altered to be unique, and the name returned reflects that change. |
| Python Syntax | EditWithComps (<ComponentName>, [ <Name>, <ModTime>, <Library>, <LibLocation>, <PinDefInfo>,<GraphicsDataInfo>, <PropDisplayMapInfo>],<ListOfComponentNames>) |
| Python Example |
oComponentManager.EditWithComps ("Nexxim Circuit Elements\Distributed\Distributed:bendo", ["NAME:bendo new name", "ModTime:=", 1152722165, "Library:=", "Nexxim Circuit Elements\Distributed\Distributed", "LibLocation:=", "SysLibrary", ["NAME:PinDef", "Pin:=", ["n1", -0.00254, 0.00254, 0, "N", 0, 0, false, 0, true, "", false, false] ], ["NAME:PinDef", "Pin:=", [ "n2", 0.00254, -0.00254, 1.5708, "N", 0, 0, false, 0, true, "", false, false] ], ["NAME:Graphics", "Polygon:=", [ 0, 0, 12566272, 0, 0.00381, 0, .00127, 0.00127, _ 0.00127, 0.00127, 0, 0.00381, 0, 0.00381, _ 0.002032, 0.00127, 0.00381], "Line:=", [0, 1, 12566272, -0.00254, 0.00254, 0, .00254], "Line:=", [0, 1, 12566272, 0.00254, -0.00254, .00254, 0] ], ["NAME:PropDisplayMap", "W:=", [3, 5, 0, "Text:=", [ 2.1684E-019, 0.00504119, 0, 1, 5, false, "Arial", 0, _ "W=***"]] ] ], ["MY_COMP"]) |
<PinDefInfo>:
["NAME:PinDef",
"Pin:=", [<string>, # pin name
<real>, # x location
<real>, # y location
<real>, # angle in radians
<PinType>,
<real>, # line width
<real>, # line length
<bool>, # mirrored
<int>, # color
<bool>, # True if visible, False if not
<string>, # hidden net name
<OptionalPinInfo>, # optional info
<PropDisplayMapInfo>]] # optional
<PinType> – defined as a string
# "N" : normal pin
# "I" : input pin
# "O" : output pin
<OptionalPinInfo>:
# Specify both or neither
<bool>, # True if name is to be shown
<bool>, # True if number is to be shown
<PropDisplayMapInfo>: # optional
["NAME:PropDisplayMap", <PropDisplayInfo>, <PropDisplayInfo>,...]
<PropDisplayInfo>:
[ <NameString>, [<DisplayTypeInfo>,
<DisplayLocationInfo>,
<int>, # optional, level number
<TextInfo>]]
<NameString>: <string> # PropertyName:=, where PropertyName is the name of the property to be displayed
<DisplayTypeInfo> – defined as an integer
# 0 : No display
# 1 : Display name only
# 2 : Display value only
# 3 : Display both name and value
# 4: Display evaluated value only
# 5: Display both name and evaluated value
<DisplayLocationInfo> – defined as an integer
# 0 : Left
# 1 : Top
# 2 : Right
# 3 : Bottom
# 4 : Center
# 5 : Custom placement
<GraphicsDataInfo>
["NAME:Graphics",
# one or more of the following
<RectInfo>,
<CircleInfo>,
<ArcInfo>,
<LineInfo>,
<PolygonInfo>,
<TextInfo>,
<ImageInfo>]
<RectInfo>:
"Rect:=", [<real>, # line width
<int>, # fill pattern
<int>, # color
<real>, # angle, in radians
<real>, # x position of center
<real>, # y position of center
<real>, # width
<real>] # height
<CircleInfo>:
"Circle:=", [<real>, # line width
<int>, # fill pattern
<int>, # color
<real>, # x position of center
<real>, # y position of center
<real>] # radius
<ArcInfo>:
"Arc:=", [<real>, # line width
<int>, # line pattern
<int>, # color
<real>, # x position of center
<real>, # y position of center
<real>, # radius
<real>, # start angle, in radians
<end>] # end angle, in radians
<LineInfo>:
"Line:=", [<real>, # line width
<int>, # line pattern
<int>, # color
<PointInfo>, # must specify at least 2 points
<PointInfo>...]
<PointInfo>:
<real>, # x position
<real> # y position
<PolygonInfo>:
"Polygon:=", [<real>, # line width
<int>, # fill pattern
<int>, # color
<PointInfo>, # must specify at least 3 points
<PointInfo>...]
<TextInfo>:
"Text:=", [<real>, # x position
<real>, # y position
<real>, # angle, in radians
<Justification>,
<bool>, # is plotter font
<string>, # font name
<int>, # color
<string>] # text string
<Justification> – defined as an integer
# 0 : left top
# 1 : left base
# 2 : left bottom
# 3 : center top
# 4 : center base
# 5 : center bottom
# 6 : right top
# 7 : right base
# 8 : right bottom
<ImageInfo>:
"Image:=", [<RectInfo>,
<ImageData>,
<bool>] # is mirrored
<ImageData>:
<string>, # file path
<int>, # 0 : use the file path and link to it
# 1 : ignore file path and use next parameter
<string> # text data, only present if preceding int is 1